Skip to main content
PUT
/
transactions
/
inflight
/
{transaction_id}
curl -X PUT "http://localhost:5001/transactions/inflight/{transaction_id}" \
  -H "X-blnk-key: <api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "commit"
  }'
{
  "transaction_id": "txn_f482a1b3-6c2d-4e89-a17b-3d5e8f2a1c94",
  "status": "INFLIGHT",
  "queued": true
}
If you’re using the auto-provisioned Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: 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: Scoped API keys and Secure your Blnk server.

Path

transaction_id
string
required
The unique id of the inflight transaction.

Body

status
string
required
Specifies the instruction for the inflight.
  • commit means the conditions were met and transaction should be processed.
  • void means the conditions were not met and amount should be rolled back.
precise_amount
integer
The commit amount in its smallest unit for a partial commit (recommended). Learn more: Partial commits for inflight transactions.
amount
integer
Optional float amount to commit for a partial commit. Blnk converts it using the inflight transaction’s precision. When both are set, precise_amount takes precedence over amount.
skip_queue
boolean
default:"false"
When false (default), the commit or void is enqueued for asynchronous processing and the response includes queued: true. When true, Blnk processes the action synchronously and returns an immediate APPLIED or VOID child. See Commit & void inflight.
To commit or void multiple independently-created inflight transactions in one request, use Bulk commit inflight or Bulk void inflight.

Response

Same JSON structure as Record a transaction
curl -X PUT "http://localhost:5001/transactions/inflight/{transaction_id}" \
  -H "X-blnk-key: <api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "commit"
  }'
{
  "transaction_id": "txn_f482a1b3-6c2d-4e89-a17b-3d5e8f2a1c94",
  "status": "INFLIGHT",
  "queued": true
}

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.