Transaction Ledger
GET
/v1/transactions/{id}/ledgerOptionalThe balanced double-entry ledger legs posted for a transaction, joined with account types.
Authentication
Signature Pattern
HMAC-SHA256(secretKey, "{timestamp}\nGET\n/v1/transactions/{id}/ledger\n{sha256(\"\")}")| Header | Value | Description |
|---|---|---|
X-Api-Key | pk_live_a1b2c3d4e5f6g7h8 | Merchant public API key |
X-Signature | {hmac_sha256_hex} | Hex HMAC-SHA256 request signature |
X-Timestamp | 2026-04-13T10:00:00Z | ISO 8601 UTC request time (±5 min) |
Response Parameters
| Field | Type | Example |
|---|---|---|
items | array | […] |
items[].accountType | string | "buyer_pending" |
items[].direction | string | "DEBIT" |
items[].amount | integer | 15000 |
items[].currency | string | "TRY" |
Response Example
JSONResponse
{
"items": [
{
"accountType": "buyer_pending",
"direction": "DEBIT",
"amount": 15000,
"currency": "TRY"
},
{
"accountType": "merchant_reserve",
"direction": "CREDIT",
"amount": 14551,
"currency": "TRY"
},
{
"accountType": "platform_commission",
"direction": "CREDIT",
"amount": 449,
"currency": "TRY"
}
]
}Status Codes
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
Try itMock
GEThttps://api.pay.sandbox.kvell.group