Skip to main content
POST
/
transactions
/
inflight
/
bulk
/
void
Bulk void inflight
curl --request POST \
  --url http://localhost:5001/transactions/inflight/bulk/void \
  --header 'X-blnk-key: <api-key>'
Use client.Transaction.BulkVoidInflight to void multiple inflight transactions.
1

Call the method

client.Transaction.BulkVoidInflight
result, resp, err := client.Transaction.BulkVoidInflight(
	blnkgo.BulkVoidInflightRequest{
		TransactionIDs: []string{
			"txn_c4e70eb8-e4d6-4e04",
			"txn_6164573b-6cc8-45a4",
		},
	},
)
FieldTypeDescription
TransactionIDs[]stringUp to 100 inflight transaction IDs to void.
SkipQueueboolWhen true, process synchronously instead of queuing.
2

Review per-item results

Check result.Results for each transaction’s outcome. Failed items include a code and message without stopping the rest of the batch.
3

Response

200 OK
{
  "succeeded": 2,
  "failed": 1,
  "results": [
    {
      "transaction_id": "txn_c4e70eb8-e4d6-4e04-a2e2-92a43b969e0c",
      "status": "succeeded"
    },
    {
      "transaction_id": "txn_6164573b-6cc8-45a4-ad2e-7b4ba6a60f7d",
      "status": "succeeded"
    },
    {
      "transaction_id": "txn_0b59f6e6-6c4a-4efa-915c-526f77ef61ab",
      "status": "failed",
      "code": "ALREADY_COMMITTED",
      "message": "cannot void. Transaction already committed"
    }
  ]
}
FieldTypeDescription
succeedednumberNumber voided successfully.
failednumberNumber that failed.
resultsobject[]Per-transaction outcome in request order.
results[].statusstringsucceeded or failed.
results[].codestringFailure code (for example NOT_FOUND, ALREADY_COMMITTED, NOT_INFLIGHT).
results[].messagestringHuman-readable failure message.

Bulk inflight updates

Per-item failure codes and rollback behavior.

Bulk void inflight

HTTP request and response schema.

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.