Ledger balances
Historical balances
Retrieve accurate historical balance information with the Go SDK.
GET
Historical balances
Use
client.LedgerBalance.GetHistorical to retrieve a balance at a specific point in time.
Call the method
client.LedgerBalance.GetHistorical
| Field | Type | Description |
|---|---|---|
balanceID | string | Balance ID to query. |
timestamp | time.Time | Point in time for the historical balance. Parse ISO 8601 strings with time.Parse(time.RFC3339, "..."). |
fromSource | bool | When true, reconstruct from transactions instead of snapshots. |
Use the historical amounts
Read
historical.Balance for net, credit, and debit totals at the requested timestamp. Compare with the current balance if you are auditing or reconciling.Response
200 OK
| Field | Type | Description |
|---|---|---|
timestamp | string | Point in time you queried (ISO 8601). |
from_source | boolean | Whether the balance was reconstructed from transactions. |
balance.balance_id | string | Balance you queried. |
balance.balance | number | Net amount at that timestamp. |
balance.credit_balance | number | Total credits at that timestamp. |
balance.debit_balance | number | Total debits at that timestamp. |
balance.currency | string | Currency of the balance. |
Related docs
Retrieving historical balances
How point-in-time balance queries work.
Historical balances
HTTP request and response schema.