Ledger balances
View balance lineage
See a balance’s provider breakdown when fund lineage is enabled with the Python SDK.
GET
View balance lineage
Use
blnk.ledger_balances.get_lineage to inspect a balance’s fund breakdown.
Fund lineage must be enabled on the balance when it was created. See Fund lineage.
Call the method
blnk.ledger_balances.get_lineage
| Field | Type | Description |
|---|---|---|
balanceId | str | Balance ID with fund lineage enabled. |
Use the provider breakdown
Read
response.data["providers"] to see how much each provider contributed, spent, and has available. Use total_with_lineage for the aggregate tracked amount.Response
200 OK
| Field | Type | Description |
|---|---|---|
balance_id | str | Balance you queried. |
aggregate_balance_id | str | Internal aggregate balance ID for combined provider funds. |
total_with_lineage | str | Total available funds tracked by lineage (minor units). |
providers | list[dict] | Provider-by-provider breakdown of received and spent funds. |
Related docs
Fund lineage
Tagged funds and allocation strategies.
View balance lineage
HTTP request and response schema.