Added
Ledger transactions on orders and withdrawals
7 months ago by CoinGate
See exactly how an order or a withdrawal moved your balance. Orders and withdrawals now include their ledger transactions, and you can look up the ledger transactions for any order or withdrawal.
On orders and withdrawals
Get order and Get withdrawal now return a ledger_transactions array with the completed entries for that order or withdrawal, fees included.
| Field | Description |
|---|---|
id | The ledger transaction ID |
type | The transaction type |
credited_amount | Amount credited, or 0 |
debited_amount | Amount debited, or 0 |
purpose | What the entry is for |
Find ledger transactions by source
List ledger transactions now takes source_type and source_id. Send both to get the transactions for one order or withdrawal.
GET https://api.coingate.com/v2/ledger/transactions?source_type=Order&source_id={order_id}
Trace a transaction to its sourceList ledger transactions and Get ledger transaction now return
source_typeandsource_idon every transaction, so you can trace it back to the order or withdrawal it came from.
