Handle bulk transactions in your Blnk Ledger.
curl --request POST \
--url http://localhost:5001/transactions/bulk \
--header 'Content-Type: application/json' \
--header 'X-blnk-key: <api-key>' \
--data '
{
"atomic": true,
"inflight": true,
"run_async": true,
"skip_queue": true,
"transactions": [
{}
]
}
'{
"batch_id": "bulk_c62f200b-905f-4983-a349-cadd279234aa",
"status": "applied",
"transaction_count": 4
}
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
true, either all transactions succeed or all fail. When false, transactions are processed independently.true, transactions are created in INFLIGHT status and require a separate commit. When false, transactions are applied immediately.true, processing happens in the background and results are delivered via webhook. When false or not provided, processing happens synchronously and results are returned in the response.true, transactions bypass the queue system. Learn more: Why we use queueing.{
"amount": 358.90,
"precision": 100,
"reference": "unique_reference_1",
"description": "Transaction description",
"currency": "USD",
"source": "@source_account",
"destination": "@destination_account",
"allow_overdraft": true
}
parent_transaction when searching for child transactions, or when committing or voiding an inflight batch.run_async is false, value is applied if transactions posted immediately, or inflight if the batch was created in inflight status. When run_async is true, value is queued while the batch runs in the background.run_async is true (for example, confirming that background processing started).{
"batch_id": "bulk_c62f200b-905f-4983-a349-cadd279234aa",
"status": "applied",
"transaction_count": 4
}
Was this page helpful?
curl --request POST \
--url http://localhost:5001/transactions/bulk \
--header 'Content-Type: application/json' \
--header 'X-blnk-key: <api-key>' \
--data '
{
"atomic": true,
"inflight": true,
"run_async": true,
"skip_queue": true,
"transactions": [
{}
]
}
'{
"batch_id": "bulk_c62f200b-905f-4983-a349-cadd279234aa",
"status": "applied",
"transaction_count": 4
}