Ledger balances
View balance lineage
See a balance’s provider breakdown when fund lineage is enabled with the Go SDK.
GET
View balance lineage
Use
client.LedgerBalance.GetLineage 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
client.LedgerBalance.GetLineage
| Field | Type | Description |
|---|---|---|
balanceID | string | Balance ID with fund lineage enabled. |
Use the provider breakdown
Read
lineage.Providers to see how much each provider contributed, spent, and has available. Use TotalWithLineage for the aggregate tracked amount.Response
200 OK
| Field | Type | Description |
|---|---|---|
balance_id | string | Balance you queried. |
aggregate_balance_id | string | Internal aggregate balance ID for combined provider funds. |
total_with_lineage | string | Total available funds tracked by lineage (minor units). |
providers | object[] | 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.