See a balance’s provider breakdown (received, spent, available) when fund lineage is enabled.
curl --request GET \
--url http://localhost:5001/balances/{balance_id}/lineage \
--header 'X-blnk-key: <api-key>'
{
"balance_id": "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
"aggregate_balance_id": "bln_aggregate_shadow_balance_id",
"total_with_lineage": "7500",
"providers": [
{
"provider": "stripe",
"amount": "10000",
"available": "7500",
"spent": "2500",
"shadow_balance_id": "bln_shadow_balance_id"
}
]
}
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
precise_amount).curl --request GET \
--url http://localhost:5001/balances/{balance_id}/lineage \
--header 'X-blnk-key: <api-key>'
{
"balance_id": "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
"aggregate_balance_id": "bln_aggregate_shadow_balance_id",
"total_with_lineage": "7500",
"providers": [
{
"provider": "stripe",
"amount": "10000",
"available": "7500",
"spent": "2500",
"shadow_balance_id": "bln_shadow_balance_id"
}
]
}
Was this page helpful?
curl --request GET \
--url http://localhost:5001/balances/{balance_id}/lineage \
--header 'X-blnk-key: <api-key>'
{
"balance_id": "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
"aggregate_balance_id": "bln_aggregate_shadow_balance_id",
"total_with_lineage": "7500",
"providers": [
{
"provider": "stripe",
"amount": "10000",
"available": "7500",
"spent": "2500",
"shadow_balance_id": "bln_shadow_balance_id"
}
]
}