Commit multiple independently-created inflight transactions.
curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/commit \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"amount": 40
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"precise_amount": 125034
}
]
}'
{
"succeeded": 2,
"failed": 1,
"results": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111",
"status": "succeeded"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"status": "succeeded"
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"status": "failed",
"code": "INVALID_AMOUNT",
"message": "cannot commit more than inflight amount"
}
]
}
Documentation Index
Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
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 takes precedence over amount.succeeded or failed.NOT_FOUND, ALREADY_VOIDED, ALREADY_COMMITTED, NOT_INFLIGHT, INVALID_AMOUNT, LOCKED, or INTERNAL_ERROR.curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/commit \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"amount": 40
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"precise_amount": 125034
}
]
}'
{
"succeeded": 2,
"failed": 1,
"results": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111",
"status": "succeeded"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"status": "succeeded"
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"status": "failed",
"code": "INVALID_AMOUNT",
"message": "cannot commit more than inflight amount"
}
]
}
Was this page helpful?
curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/commit \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"amount": 40
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"precise_amount": 125034
}
]
}'
{
"succeeded": 2,
"failed": 1,
"results": [
{
"transaction_id": "txn_11111111-1111-4111-8111-111111111111",
"status": "succeeded"
},
{
"transaction_id": "txn_22222222-2222-4222-8222-222222222222",
"status": "succeeded"
},
{
"transaction_id": "txn_33333333-3333-4333-8333-333333333333",
"status": "failed",
"code": "INVALID_AMOUNT",
"message": "cannot commit more than inflight amount"
}
]
}