Skip to main content
GET
http://localhost:5001
/
transactions
/
{transaction_id}
/
lineage
curl --request GET \
  --url http://localhost:5001/transactions/{transaction_id}/lineage \
  --header 'X-blnk-key: <api-key>'
{
  "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"
    }
  ]
}

Authorization

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: Secure your Blnk server

Path

transaction_id
string
required
Specifies the unique ID of the transaction whose lineage you want to retrieve.

Response

transaction_id
string
required
The ID of the transaction being queried.
fund_allocation
array
Fund allocation breakdown for debit transactions from a lineage-enabled balance.
shadow_transactions
array
required
Internal shadow transactions created for lineage tracking (each item is a transaction object).
fund_allocation[].amount values are returned as strings in minor units.
curl --request GET \
  --url http://localhost:5001/transactions/{transaction_id}/lineage \
  --header 'X-blnk-key: <api-key>'
{
  "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"
    }
  ]
}

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.
Tip: Connect to Blnk Cloud to see your Core data.You can view your transactions, manage identities, create custom reports, invite other team members to collaborate, and perform operations on your Core — all in one dashboard.Check out Blnk Cloud →