Skip to main content
GET
Retrieve Balance History by Account

Headers

Content-Type
string

The type of media of the resource. Recommended value is application/json.

X-Request-Id
string<uuid>

A unique identifier used to trace and track each request.

Authorization
string

Bearer JWT token for authentication. Required when PLUGIN_AUTH_ENABLED=true (enforced in multi-tenant deployments). Optional in default OSS single-tenant mode. Format: Bearer <token>

Path Parameters

organization_id
string<uuid>
required

The unique identifier of the Organization associated with the Ledger.

ledger_id
string<uuid>
required

The unique identifier of the associated Ledger.

account_id
string<uuid>
required

The unique identifier of the account.

Query Parameters

date
string
required

The date and time to query the balance state. Format: yyyy-mm-dd hh:mm:ss (e.g., 2026-01-15 10:30:00).

Pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$

Response

Indicates that the request was successful and the response contains all balance states at the specified point in time.

id
string<uuid>

The unique identifier of the Balance.

organizationId
string<uuid>

The unique identifier of the Organization.

ledgerId
string<uuid>

The unique identifier of the Ledger.

accountId
string<uuid>

The unique identifier of the Account.

alias
string

The alias for the account (e.g., @conta_corrente).

key
string

The unique key for the balance in the context of the account (e.g., default, asset-freeze).

assetCode
string

The code of the asset (e.g., BRL, USD).

available
string

The available balance at the queried point in time. Represented as a decimal string with arbitrary precision (e.g., "1500.75").

onHold
string

The on-hold (reserved) balance at the queried point in time. Represented as a decimal string with arbitrary precision (e.g., "250.00").

version
integer

The balance version at the queried point in time.

accountType
string

The type of the account (e.g., deposit, creditCard).

direction
enum<string>

The accounting direction of the balance at the queried point in time.

Available options:
credit,
debit
overdraftUsed
string

The amount of overdraft consumed at the queried point in time, as a decimal string. Always non-negative.

settings
object

The per-balance configuration snapshot at the queried point in time. null for legacy balances without custom settings.

position
object
read-only

Computed view of the balance state at the queried point in time. Always present; never persisted. Mirrors the live balance position shape so historical responses carry the same wire surface as live reads.

createdAt
string<date-time>

Timestamp of balance creation (UTC).

updatedAt
string<date-time>

Timestamp of last update at the queried point in time (UTC).