Ledger balances
Balance from source
Compute balance directly from transactions with the TypeScript SDK.
GET
Balance from source
Use
blnk.LedgerBalances.get to reconstruct a balance from its transactions.
blnk.LedgerBalances.get
| Field | Description |
|---|---|
id | Balance ID to compute from source. |
from_source | Must be true to reconstruct from transactions. |
Response shape
200 OK
| Field | Description |
|---|---|
balance.balance | Net amount computed from all transactions. |
balance.balance_id | Unique ID for the balance. |
balance.credit_balance | Total computed from credit transactions. |
balance.debit_balance | Total computed from debit transactions. |
balance.currency | Currency of the balance. |
balance.ledger_id | Ledger this balance belongs to. |
balance.identity_id | Linked identity, if any. |
balance.created_at | Date and time the balance was created. |
balance.meta_data | Optional metadata on the balance. |
Related docs
Balance from source guide
Transaction-based balance computation.
Balance from source
HTTP request and response schema.