Transactions
Create transaction
Post a transaction with the TypeScript SDK.
POST
Create transaction
Use
blnk.Transactions.create to post a transaction between a source and destination balance.
Call the method
- Single transaction
- Inflight transaction
- Split transaction
- Scheduled transaction
- Backdated transaction
Move money from one source balance to one destination in a single call.
blnk.Transactions.create
| Field | Type | Description |
|---|---|---|
precise_amount | number | Amount in minor units. Use with precision. |
amount | number | Float amount. Blnk applies precision. Use one of amount or precise_amount. |
precision | number | Precision for the currency (for example 100 for cents). |
currency | string | Currency of the transaction. |
reference | string | Unique reference for the transaction. |
source | string | Balance sending the amount. Prefix @ for an internal balance. |
destination | string | Balance receiving the amount. |
description | string | Narration of the transaction. |
allow_overdraft | boolean | Allow the source balance to go negative. See Overdrafts. |
skip_queue | boolean | Bypass the transaction queue and process directly. |
Response
- Single transaction
- Inflight transaction
- Split transaction
- Scheduled transaction
- Backdated transaction
201 Created
| Field | Type | Description |
|---|---|---|
transaction_id | string | Unique ID for the transaction. |
status | string | Transaction status (for example QUEUED, APPLIED). |
precise_amount | number | amount × precision. |
source | string | Resolved source balance. |
destination | string | Resolved destination balance. |
hash | string | Hash of the transaction details. |
created_at | string | Date and time the transaction was created. |
Related docs
How transactions work
Money movement, statuses, and the transaction lifecycle.
Create new transaction
HTTP request and response schema.