Transactions
Get transaction lineage
See how a transaction's spend was allocated across providers with the Go SDK.
GET
/transactions/{transaction_id}/lineageUse client.Transaction.GetLineage to inspect a transaction’s fund breakdown.
Call the method
lineage, _, _ := client.Transaction.GetLineage(
"txn_8d2ce2f0-0d75-4a91-9d43-2ad2c2e6b9ad",
)
| Field | Type | Description |
|---|---|---|
transactionID | string | Transaction ID with fund lineage enabled. |
Response
{
"transaction_id": "txn_8d2ce2f0-0d75-4a91-9d43-2ad2c2e6b9ad",
"fund_allocation": [
{
"provider": "stripe",
"amount": "2500"
}
],
"shadow_transactions": [
{
"transaction_id": "txn_shadow_123",
"reference": "ref_002_release_stripe_0",
"precise_amount": "2500",
"currency": "USD",
"status": "APPLIED"
}
]
}Go response (*blnkgo.TransactionLineage)
| Field | Type | Description |
|---|---|---|
TransactionID | string | Transaction you queried. |
FundAllocation | []map[string]interface{} | How much of the spend came from each provider. Amounts are strings in minor units. May be empty when no tagged funds were used. |
ShadowTransactions | []map[string]interface{} | Internal records Blnk creates to track each provider’s share of the spend. May be empty. |