Ledger balances
Balance from Source
How to compute balance directly from transactions.
GET
If you’re using the auto-provisioned
Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.Authorization
If set, the API uses an API key for authentication. Include the following header in your requests:X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Secure your Blnk server
Path
Specifies the unique ID of the balance whose balance should be computed from source transactions.
Query
When set to
true, indicates that the balance should be reconstructed directly from its transactions, bypassing balance snapshots and the default running balance.Response
The computed balance object containing all balance details.
The net amount computed from all transactions (credit_balance - debit_balance).
The unique identifier of the balance.
Total amount computed from all credit transactions (money moving into the balance).
Total amount computed from all debit transactions (money moving out of the balance).
The currency code of the balance.
The unique identifier of the ledger this balance belongs to.
This endpoint computes the balance by processing all transactions from genesis. For balances with extensive transaction history, this may take longer than the standard balance endpoint.