Skip to main content
POST
/
transactions
/
inflight
/
bulk
/
commit
Bulk commit inflight
curl --request POST \
  --url http://localhost:5001/transactions/inflight/bulk/commit \
  --header 'X-blnk-key: <api-key>'
Use blnk.Transactions.bulkCommitInflight to commit multiple inflight transactions.
blnk.Transactions.bulkCommitInflight
const response = await blnk.Transactions.bulkCommitInflight({
  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 },
  ],
});
FieldDescription
transactionsUp to 100 inflight transactions to commit.
transactions[].transaction_idInflight transaction ID to commit.
transactions[].amountPartial commit amount. Omit to commit the full remaining inflight amount.
transactions[].precise_amountPrecision-applied partial commit amount. Takes precedence over amount.

Response shape

200 OK
{
  "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"
    }
  ]
}
FieldDescription
succeededNumber committed successfully.
failedNumber that failed.
resultsPer-transaction outcome in request order.
results[].statussucceeded or failed.
results[].codeFailure code (for example NOT_FOUND, ALREADY_VOIDED, INVALID_AMOUNT).
results[].messageHuman-readable failure message.

Bulk inflight updates

Per-item failure codes and when to use batch updates.

Bulk commit 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.