Transactions
Create transaction
Post a transaction with the Go SDK.
POST
Create transaction
Use
Use
client.Transaction.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.
client.Transaction.Create
| Field | Type | Description |
|---|---|---|
PreciseAmount | *big.Int | Amount in minor units. Use with Precision. |
Amount | float64 | Float amount. Blnk applies Precision. Use one of Amount or PreciseAmount. |
Precision | int64 | 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. |
AllowOverdraft | bool | Allow the source balance to go negative. See Overdrafts. |
SkipQueue | bool | 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. |
transaction.TransactionID and other fields on the returned *blnkgo.Transaction struct.Related docs
How transactions work
Money movement, statuses, and the transaction lifecycle.
Create new transaction
HTTP request and response schema.