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
id RequiredstringIdentifier of the account resource.
type RequiredstringType of the account resource. Always account.
attributes RequiredJSON ObjectJSON object representing the account data.

Attributes

NameTypeDescription
id RequiredstringThe unique identifier of the account.
routingNumber RequiredstringThe routing number of the account.
accountNumber RequiredstringThe account number.
status RequiredstringThe status of the account (Open, Frozen, or Closed).
balance RequiredintegerThe current balance in cents.
userIds RequiredarrayList 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
data RequiredArray 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
}
}
}