Skip to main content
PUT
/
transactions
/
inflight
/
{transaction_id}
Update inflight
curl --request PUT \
  --url http://localhost:5001/transactions/inflight/{transaction_id} \
  --header 'X-blnk-key: <api-key>'
Use blnk.Transactions.updateStatus to commit or void an inflight transaction or batch.
blnk.Transactions.updateStatus
const response = await blnk.Transactions.updateStatus(
  'txn_c4e70eb8-e4d6-4e04-a2e2-92a43b969e0c',
  { status: 'commit' },
);
FieldDescription
transactionOrBatchIdInflight transaction_id, or batch_id from createBulk.
statuscommit to apply funds, or void to cancel and roll back.
amountPartial commit amount. See Partial commits.
precise_amountPrecision-applied partial commit amount. Takes precedence over amount.

Response shape

200 OK
{
  "amount": 1250.34,
  "rate": 0,
  "precision": 100,
  "precise_amount": 125034,
  "transaction_id": "txn_c4e70eb8-e4d6-4e04-a2e2-92a43b969e0c",
  "parent_transaction": "txn_c4e70eb8-e4d6-4e04-a2e2-92a43b969e0c",
  "source": "bln_f344b673-e855-4bda-b769-3e94a02c1941",
  "destination": "@WorldUSD",
  "reference": "ref_2ye281ewiu",
  "currency": "USD",
  "description": "Card payment on Stripe",
  "status": "COMMIT",
  "hash": "0b9c25fb5b00d6c71cb4ca87026bf6dc316e63353d3330deb588bd0b3d74dcc0",
  "created_at": "2024-11-26T09:33:35.265582042Z"
}
FieldDescription
transaction_idID of the new transaction created by the commit or void.
parent_transactionOriginal inflight transaction this resolves.
statusCOMMIT or VOID.
precise_amountAmount applied (amount × precision).

Inflight transactions

Holds, commits, voids, and partial commits.

Update 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.