Skip to main content

Accounts

Get Account​

Get a specific account by its ID.

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

Example Request:

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

Response​

Returns account details including routing number, account number, status, and current balance (in cents).

Response is a JSON:API document.

200 OK​

NameTypeDescription
idstringIdentifier of the account resource.
typestringType of the account resource. Always account.
attributesJSON ObjectJSON object representing the account data.

Attributes​

NameTypeDescription
idstringThe unique identifier of the account.
routingNumberstringThe routing number of the account.
accountNumberstringThe account number.
statusstringThe status of the account (Open, Frozen, or Closed).
closeReasonstringPresent only when the account is Closed. The reason the account was closed, one of ByCustomer, Fraud, Overdue, NegativeBalance, NegativeBalanceAutomatically, ByBank, BreachOfTermsAndConditions, NoAccountActivity, ProgramChange, ProgramClosed, or CustomerDeceased.
balanceintegerThe current balance in cents.
userIdsarrayList of user IDs associated with this account.

Example Response:

{
"data": {
"type": "account",
"id": "10004",
"attributes": {
"routingNumber": "812345678",
"accountNumber": "1000000001",
"status": "Open",
"balance": 150000,
"userIds": ["user_12345", "user_67890"]
}
}
}

List Accounts​

List deposit accounts.

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

Query Parameters​

NameTypeDefaultDescription
filter[customerId]string(empty)Filter accounts by customer ID. Required if userId not provided.
filter[userId]string(empty)Filter accounts by user ID. Required if customerId not provided.
page[limit]integer100Optional. Maximum number of resources to return. Maximum is 10000 resources.
page[offset]integer0Optional. Number of resources to skip. See Pagination.
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/accounts?filter[customerId]=10000' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Returns a paginated list of deposit accounts with their details.

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataArray of accountsArray of account resources.

Example Response:

{
{
"data": [
{
"type": "account",
"id": "10020",
"attributes": {
"routingNumber": "406735154",
"accountNumber": "864800000014",
"status": "Open",
"balance": 6000,
"userIds": ["user_12345"]
}
}
],
"meta": {
"pagination": {
"total": 1,
"limit": 100,
"offset": 0
}
}
}