Create a transaction to transfer funds from a source balance to a destination balance. Transactions are applied asynchronously and update both balances.
For in-depth information about Blnk’s ledger, balance, transaction, and identity APIs, see the Blnk Core docs.
Request structure
curl -X POST "https://api.cloud.blnkfinance.com/proxy/transactions?instance_id=YOUR_INSTANCE_ID" \
-H "Authorization: Bearer blnk_at_YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": 100.50,
"currency": "USD",
"precision": 100,
"reference": "ref_myApp-integration-test-001",
"source": "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
"destination": "bln_ANOTHER_BALANCE_ID",
"description": "Integration test: transfer from Balance A to Balance B",
"allow_overdraft": true
}'
Bearer token for authentication. Format: Bearer <access_token>. Your OAuth key must include proxy:write scope (or *).
Currency code for the transaction (e.g., USD, EUR, GBP).
Balance ID to debit from.
Precision multiplier for the amount. Defaults to 100 (e.g., 100.50 becomes 10050).
Optional reference identifier for the transaction.
Optional description of the transaction.
Optional metadata object for custom key-value data. Use a top-level key (e.g., your app name) to avoid conflicts.
Query parameters
The Blnk Core instance ID to target. Find this in Blnk Cloud under Instances.
Response structure
{
"amount": 100.50,
"rate": 0,
"precision": 100,
"precise_amount": 10050,
"transaction_id": "txn_c4e70eb8-e4d6-4e04-a2e2-92a43b969e0c",
"parent_transaction": "",
"source": "bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f",
"destination": "bln_ANOTHER_BALANCE_ID",
"reference": "ref_myApp-integration-test-001",
"currency": "USD",
"description": "Integration test: transfer from Balance A to Balance B",
"status": "QUEUED",
"hash": "hash_...",
"allow_overdraft": true,
"inflight": false,
"created_at": "2024-11-26T08:40:00.000000000Z",
"scheduled_for": "0001-01-01T00:00:00Z",
"inflight_expiry_date": "0001-01-01T00:00:00Z"
}
Unique identifier for the created transaction.
Amount multiplied by precision (e.g., 100.50 * 100 = 10050).
Currency code for the transaction.
Current status of the transaction (e.g., QUEUED, APPLIED, FAILED).
Reference identifier for the transaction, if provided.
Description of the transaction, if provided.
Precision multiplier used for the amount.
ISO 8601 formatted timestamp of when the transaction was created.
Need help?
If you’re having trouble with Blnk Cloud, don’t hesitate to send us a message via email at [email protected] or send us a message here.