Transactions
Get transaction lineage
See how a transaction’s spend was allocated across providers with the Python SDK.
GET
Get transaction lineage
Use
blnk.transactions.get_lineage to inspect a transaction’s fund breakdown.
Call the method
blnk.transactions.get_lineage
| Field | Type | Description |
|---|---|---|
transactionId | str | Transaction ID with fund lineage enabled. |
Use the provider breakdown
Read
fund_allocation for how much came from each provider. Read shadow_transactions for the internal records Blnk created to track each provider’s share.Response
200 OK
| Field | Type | Description |
|---|---|---|
transaction_id | str | Transaction you queried. |
fund_allocation | list[dict] | How much of the spend came from each provider. Amounts are strings in minor units. May be empty when no tagged funds were used. |
shadow_transactions | list[dict] | Internal records Blnk creates to track each provider’s share of the spend. May be empty. |
Related docs
Fund lineage
Tagged funds, allocation strategies, and shadow transactions.
View transaction lineage
HTTP request and response schema.