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.
blnk.Transactions.create
| Field | Description |
|---|---|
amount | Transaction amount. Use precise_amount for values with more than 15 digits. |
precise_amount | Amount with precision already applied. |
currency | Currency of the transaction. |
precision | Precision for the currency (for example 100 for cents). |
reference | Unique reference for the transaction. |
source | Balance sending the amount. Prefix @ for an internal balance. |
destination | Balance receiving the amount. |
description | Narration of the transaction. |
allow_overdraft | Allow the source balance to go negative. See Overdrafts. |
inflight | Hold the transaction until you commit or void it. See Inflight. |
inflight_expiry_date | When an inflight transaction expires and rolls back. |
inflight_commit_date | When Core auto-commits the inflight transaction. |
scheduled_for | Date and time to post a scheduled transaction. |
effective_date | Actual date the transaction occurred. See Backdated transactions. |
skip_queue | Bypass the transaction queue and process directly. |
atomic | For split legs, apply all legs together or none. |
meta_data | Optional metadata. Tag funds with BLNK_LINEAGE_PROVIDER for fund lineage. |
Response shape
201 Created
| Field | Description |
|---|---|
transaction_id | Unique ID for the transaction. |
status | Transaction status (for example QUEUED, APPLIED). |
precise_amount | amount × precision. |
source | Resolved source balance. |
destination | Resolved destination balance. |
hash | Hash of the transaction details. |
created_at | 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.