Ledger balances
View balance lineage
See a balance’s provider breakdown (received, spent, available) when fund lineage is enabled.
/balances/{balance_id}/lineageAuthorization
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: Core API key.
Path
balance_idstring
Specifies the unique ID of the balance whose lineage you want to retrieve.
Response
All amounts are returned as strings in minor units.
balance_idstring
The ID of the balance being queried.
aggregate_balance_idstring
The internal aggregate balance ID used to track combined provider funds.
total_with_lineagestring
Total available funds tracked by lineage (in minor units, like precise_amount).
providersarray
Provider-by-provider breakdown of received and spent funds.