Void multiple independently-created inflight transactions.
curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/void \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transaction_ids": [
"txn_11111111-1111-4111-8111-111111111111",
"txn_22222222-2222-4222-8222-222222222222",
"txn_33333333-3333-4333-8333-333333333333"
]
}'
{
"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": "ALREADY_COMMITTED",
"message": "cannot void. Transaction already committed"
}
]
}
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
succeeded or failed.NOT_FOUND, ALREADY_VOIDED, ALREADY_COMMITTED, NOT_INFLIGHT, LOCKED, or INTERNAL_ERROR.curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/void \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transaction_ids": [
"txn_11111111-1111-4111-8111-111111111111",
"txn_22222222-2222-4222-8222-222222222222",
"txn_33333333-3333-4333-8333-333333333333"
]
}'
{
"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": "ALREADY_COMMITTED",
"message": "cannot void. Transaction already committed"
}
]
}
Was this page helpful?
curl --request POST \
--url http://localhost:5001/transactions/inflight/bulk/void \
--header 'X-blnk-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"transaction_ids": [
"txn_11111111-1111-4111-8111-111111111111",
"txn_22222222-2222-4222-8222-222222222222",
"txn_33333333-3333-4333-8333-333333333333"
]
}'
{
"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": "ALREADY_COMMITTED",
"message": "cannot void. Transaction already committed"
}
]
}