List Account Balances
/v1/account-balancesReturns a cursor-paginated list of account balances for the active workspace. Read only, no side effects. Results are scoped by workspace via row-level security; for example a daily closing balance snapshot for the Mercury account. Attributes mirror the records field set for this root. ## Filtering & sorting Filter via `POST /v1/records/query` (root `account_balances`) or the `filters` model; operators are gated by each field's data type. See [Filtering & sorting](../filtering-and-sorting). **Filterable fields** | Field | Type | Allowed operators | |---|---|---| | `account_balance_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `balance_at_from` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `balance_at_to` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `calculated_balance_diff` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `composite_balance_period_summary` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_closing_booked_currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_closing_value_currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_fx_rate` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_opening_booked_currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `composite_opening_value_currency` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `created_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `deleted_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `expected_balance_diff` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `pk` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `updated_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `verification_error` | boolean | `eq` | | `verification_error_detail` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `verification_last_run_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `verified_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | **Sortable fields:** `account_balance_id`, `balance_at_from`, `balance_at_to`, `calculated_balance_diff`, `composite_balance_period_summary`, `composite_closing_booked_currency`, `composite_closing_value_currency`, `composite_fx_rate`, `composite_opening_booked_currency`, `composite_opening_value_currency`, `created_at`, `deleted_at`, `expected_balance_diff`, `pk`, `updated_at`, `verification_error_detail`, `verification_last_run_at`, `verified_at` (via `orderBy` / `sort`, `asc`|`desc`).
Requires a bearer token: Authorization: Bearer <token>.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| cursor | string | No | Opaque pagination cursor returned as links.next on the previous page. Omit to fetch the first page.e.g. eyJwayI6MTI4N30 |
| limit | integer | No | Maximum number of records to return per page (1 to 200, defaults to 50).e.g. 50 |
| orderBy | string | No | Field to sort by, using the records dot path or column name (e.g. created_at).e.g. created_at |
| direction | string | No | Sort direction for orderBy. Defaults to desc.e.g. desc |
| workspaceId | string <uuid> | No | Explicit workspace scope. The authenticated user must hold an active membership in this workspace. Defaults to the session workspace when omitted.e.g. a1b2c3d4-0000-4000-8000-000000000001 |
Request
curl -X GET https://api.wellapp.ai/v1/account-balances \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
200 — A page of account balances.
{
"data": [
{
"type": "account_balance",
"id": "c3d4e5f6-0000-4000-8000-0000000000a3",
"attributes": {
"account_balance_id": "c3d4e5f6-0000-4000-8000-0000000000a3",
"accounting_balance": {
"closing_booked": {
"amount": 182340.18,
"currency": "USD"
}
},
"balance_at_from": "2026-04-26T00:00:00Z",
"balance_at_to": "2026-04-27T00:00:00Z",
"calculated_balance_diff": 4820.5,
"expected_balance_diff": 4820.5,
"foreign_exchange": null,
"verified_at": "2026-04-27T03:00:00Z",
"verification_error": false,
"verification_error_detail": null,
"created_at": "2026-04-27T03:00:05Z",
"updated_at": "2026-04-27T03:00:05Z",
"deleted_at": null
},
"relationships": {
"account": {
"data": {
"type": "Account",
"id": "00000000-0000-4000-8000-000000000001"
}
},
"transactions": {
"data": [
{
"type": "Transaction",
"id": "00000000-0000-4000-8000-000000000001"
}
]
}
}
}
],
"meta": {
"total": 1,
"count": 1
},
"links": {
"next": null
}
}400 — Bad request
{
"code": "BAD_REQUEST",
"status": 400,
"title": "Bad Request",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}401 — Unauthorized
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}Filtering & sorting on related objects
This resource's related objects (the ones you can include) and how to filter or sort on each:
| Relationship | Cardinality | Filter on a field | Sort by a field |
|---|---|---|---|
account | to-one (Account) | { "account": { "field_name": { "_eq": … } } } | "field": "account.field_name" ✅ |
workspace | to-one (Workspace) | { "workspace": { "field_name": { "_eq": … } } } | "field": "workspace.field_name" ✅ |
transactions | to-many (Transaction) | { "transactions": { "_some": { "field_name": { "_eq": … } } } } | aggregate proxy only ⚠️ |
Replace field_name with any field of the related object. See its object-reference page for the full field list.
Filter by a to-one relation (and sort by it):
{
"root": "account_balances",
"whereClause": { "account": { "field_name": { "_ilike": "%acme%" } } },
"orderBy": { "field": "account.field_name", "direction": "asc" }
}Filter by a to-many relation (quantified — bare nesting is invalid):
{
"root": "account_balances",
"whereClause": { "transactions": { "_some": { "field_name": { "_gt": 0 } } } }
}