Skip to main content

Transactions

Get Transaction​

Get a transaction by transaction id and account id.

VerbGET
URLhttps://api.s.unit.sh/ready-to-launch/accounts/:accountId/transactions/:transactionId
Required Scopetransactions
Timeout (Seconds)5

Example Request:

curl -X GET 'https://api.s.unit.sh/ready-to-launch/accounts/12345/transactions/12345' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Returns the transaction details. Amounts and balances are in cents.

Response is a JSON:API document.

200 OK​

NameTypeDescription
idstringIdentifier of the transaction resource.
typestringType of the transaction resource. The value is always transaction.
attributesJSON ObjectJSON object representing the transaction data.
relationshipsJSON:API RelationshipsDescribes relationships between the transaction resource and other resources.

Attributes​

NameTypeDescription
createdAtstringThe date the transaction was created. Common to all transaction types.
directionstringThe direction in which the funds flow. Common to all transaction types.
amountintegerThe amount (cents) of the transaction. Common to all transaction types.
balanceintegerThe account balance (cents) after the transaction. Common to all transaction types.
transactionTypestringThe type of the transaction.
summarystringA brief summary of the transaction.
tags OptionalobjectSee Tags.
counterparty OptionalobjectThe counterparty of the transaction. See Counterparty
userIdsarrayList of user IDs associated with this transaction.
addenda OptionalstringACH only. Additional payment description (maximum of 80 characters), not all institutions present that.
atmName OptionalstringATM only. The name of the ATM.
atmLocation OptionalstringATM only. The location (city, state, etc.) of the ATM.
merchant.name OptionalstringPurchase/Card only. The name of the merchant.
merchant.type OptionalintegerPurchase/Card only. The 4-digit ISO 18245 merchant category code (MCC).
merchant.location OptionalstringPurchase/Card only. The location (city, state, etc.) of the merchant.
merchant.id OptionalstringPurchase/Card only. The unique network merchant identifier.

Relationships​

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account of the customer.
customerOptional, JSON:API RelationshipThe Customer the deposit account belongs to.
customersOptional, Array of JSON:API RelationshipThe list of Customers the deposit account belongs to.

Example Response:

{
"data": {
"type": "transaction",
"id": "12345",
"attributes": {
"amount": 50000,
"direction": "Credit",
"transactionType": "ACH",
"createdAt": "2021-06-02T10:15:22.123Z",
"balance": 150000,
"summary": "ACH payment from John Doe",
"tags": {
"purpose": "invoice-payment"
},
"counterparty": {
"name": "John Doe",
"routingNumber": "812345678",
"accountNumber": "1000000002",
"accountType": "Checking"
},
"userIds": ["user_12345"]
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10004"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"customers": {
"data": [
{
"type": "customer",
"id": "10000"
}
]
}
}
}
}

List Transactions​

List transactions with optional filtering and pagination.

VerbGET
URLhttps://api.s.unit.sh/ready-to-launch/transactions/
Required Scopetransactions
Timeout (Seconds)5

Query Parameters​

NameTypeDefaultDescription
filter[userId]string(empty)Filter transactions by user ID. Required if customerId not provided.
filter[customerId]string(empty)Filter transactions by customer ID. Required if userId not provided.
filter[accountId]string(empty)Optional. Filter transactions by account ID.
filter[since]string(empty)Optional. Start date for filtering (ISO 8601).
filter[until]string(empty)Optional. End date for filtering (ISO 8601).
filter[query]string(empty)Optional. Free-text search across transaction fields (summary, counterparty name, etc.).
filter[fromAmount]integer(empty)Optional. Minimum transaction amount in cents (inclusive). Use with filter[toAmount] for range filtering.
filter[toAmount]integer(empty)Optional. Maximum transaction amount in cents (inclusive). Use with filter[fromAmount] for range filtering.
filter[type]string(empty)Optional. Filter by transaction type(s). Comma-separated list or repeated param. Multiple types allowed. Valid values: transaction type identifiers (e.g. originatedAchTransaction, bookTransaction, wireTransaction).
filter[direction]string(empty)Optional. Filter by direction (Credit or Debit). Single value or repeated param for multiple directions.
sortstring-createdAtOptional. Sort order. Use createdAt for ascending or -createdAt for descending by creation date.
page[limit]integer100Optional. Maximum number of resources to return.
page[offset]integer0Optional. Number of resources to skip.
Note

At least one of filter[customerId] or filter[userId] must be provided.

Example Request:

curl -X GET 'https://api.s.unit.sh/ready-to-launch/transactions?filter[userId]=user_12345' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Returns a paginated list of transactions with their details. Amounts and balances are in cents.

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataArray of transactionsArray of transaction resources.

Example Response:

{
"data": [
{
"type": "transaction",
"id": "12345",
"attributes": {
"amount": 50000,
"direction": "Credit",
"transactionType": "ACH",
"createdAt": "2021-06-02T10:15:22.123Z",
"balance": 150000,
"userIds": ["user_12345"]
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10004"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"customers": {
"data": [
{
"type": "customer",
"id": "10000"
}
]
}
}
}
],
"meta": {
"pagination": {
"total": 1,
"limit": 10,
"offset": 0
}
}
}