Skip to main content
GET
/
v1
/
organizations
/
{organization_id}
/
ledgers
/
{ledger_id}
/
balances
/
{balance_id}
/
history
Retrieve Balance History
curl --request GET \
  --url https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/ledgers/{ledger_id}/balances/{balance_id}/history \
  --header 'Authorization: Bearer <token>'
{
  "id": "019c96a0-0c0d-7915-84b9-e497bfee9916",
  "organizationId": "019c96a0-0a98-7287-9a31-786e0809c769",
  "ledgerId": "019c96a0-0ac0-7de9-9f53-9cf842a2ee5a",
  "accountId": "019c96a0-0c0c-7221-8cf3-13313fb60081",
  "alias": "@conta_corrente",
  "key": "default",
  "assetCode": "BRL",
  "available": 150000,
  "onHold": 25000,
  "version": 42,
  "accountType": "deposit",
  "createdAt": "2025-06-01T10:00:00Z",
  "updatedAt": "2026-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string

The authorization token. This header is required if your environment has Access Manager enabled.

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.

Path Parameters

organization_id
string
required

The unique identifier of the Organization associated with the Ledger.

ledger_id
string
required

The unique identifier of the associated Ledger.

balance_id
string
required

The unique identifier of the balance that you want to retrieve.

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 the balance state at the specified point in time.

The state of a balance at a specific point in time. Does not include allowSending and allowReceiving fields.

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
integer

The available balance at the queried point in time.

onHold
integer

The on-hold (reserved) balance at the queried point in time.

version
integer

The balance version at the queried point in time.

accountType
string

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

createdAt
string<date-time>

Timestamp of balance creation (UTC).

updatedAt
string<date-time>

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