İşlem Defteri
GET
/v1/transactions/{id}/ledgerOptionalBir işlem için oluşturulan, hesap türleriyle ilişkilendirilmiş dengeli çift taraflı defter kayıtları.
Kimlik Doğrulama
İmza Deseni
HMAC-SHA256(secretKey, "{timestamp}\nGET\n/v1/transactions/{id}/ledger\n{sha256(\"\")}")| Başlık | Değer | Açıklama |
|---|---|---|
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) |
Yanıt Parametreleri
| Alan | Tür | Örnek |
|---|---|---|
items | array | […] |
items[].accountType | string | "buyer_pending" |
items[].direction | string | "DEBIT" |
items[].amount | integer | 15000 |
items[].currency | string | "TRY" |
Yanıt Örneği
JSONYanıt
{
"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"
}
]
}Durum Kodları
200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
DeneSahte
GEThttps://api.pay.sandbox.kvell.group