Resources
This page documents the JSON:API resource schemas related to deposit accounts.
DepositAccount
The DepositAccount resource represents a deposit account.
For the complete resource schema including all attributes and relationships, see DepositAccount.
Top-level fields
Key Attributes
| Name | Type | Description |
|---|---|---|
| createdAt | RFC3339 date-time string | Resource creation time. |
| updatedAt | RFC3339 date-time string (optional) | Last update time. |
| name | string | Account holder / account display name. |
| depositProduct | string | Deposit product name. |
| routingNumber | string | Routing number (9 digits). |
| accountNumber | string (optional) | Account number (10-12 digits), together with routing number identifies the account on ACH rails. |
| secondaryAccountNumber | object (optional) | Secondary account/routing pair. |
| secondaryAccountNumber.routingNumber | string | Secondary routing number (9 digits). |
| secondaryAccountNumber.accountNumber | string | Secondary account number (10-12 digits). |
| currency | string | Currency (currently always USD). |
| balance | integer | Balance in cents. |
| hold | integer | Held amount in cents. |
| available | integer | Available amount in cents (balance - hold). |
| overdraftLimit | integer (optional) | Overdraft limit in cents. |
| tags | object | See Tags. |
| status | string | Open, Frozen, or Closed. |
| interestTerms | object (optional) | Interest terms. Included when extraFields[account]=interestTerms is requested. |
| freezeReason | string (optional) | Human-readable freeze reason. |
| closeReason | string (optional) | Close reason code (for example ByCustomer, Fraud, ByBank, NegativeBalance, etc.). |
| closeReasonText | string (optional) | Optional free-text close reason details. |
| fraudReason | string (optional) | Fraud subtype when close reason is fraud. |
| maskedAccountNumber | string (optional) | Masked account number. Included when extraFields[account]=maskedAccountNumber is requested. |
| isOverdrawnWithinLimit | boolean (optional) | Whether account is overdrawn but still within configured overdraft limit. |
| dacaStatus | string (optional) | DACA status: Entered or Activated. |
| dacaOperators | array of strings (optional) | DACA operators, values from Org, Unit, Bank. |
Note
Monetary values are in cents.
Relationships
| Name | Type | Description |
|---|---|---|
| customer | JSON:API relationship (optional) | Present for single-owner account. |
| customers | JSON:API relationship array (optional) | Present for multi-owner account. |
Exactly one of customer or customers is expected for a deposit account owner model.
Example DepositAccount
{
"type": "depositAccount",
"id": "1",
"attributes": {
"createdAt": "2000-05-11T10:19:30.409Z",
"updatedAt": "2000-05-12T10:19:30.409Z",
"name": "Peter Parker",
"status": "Open",
"depositProduct": "checking",
"routingNumber": "812345678",
"accountNumber": "1000000002",
"currency": "USD",
"balance": 10000,
"hold": 0,
"available": 10000,
"overdraftLimit": 0,
"tags": {
"purpose": "checking"
}
},
"relationships": {
"customer": {
"data": {
"type": "customer",
"id": "45555"
}
}
}
}
AccountEndOfDay
The AccountEndOfDay resource represents an account's balance at the end of a business day. This is useful for tracking balance history over time and creating balance charts.
For the complete resource schema including all attributes and relationships, see AccountEndOfDay.
Key Attributes
| Attribute | Type | Description |
|---|---|---|
| date | ISO Local Date string | The date of the end-of-day balance. |
| balance | integer | The account balance (in cents) at the end of the day. |
| available | integer | The available balance (in cents) at the end of the day. |
| hold | integer | The held amount (in cents) at the end of the day. |