Finance / API v1
List ledger entries
/api/partner/v1/ledgerPaged ledger for the authenticated partner and key environment.
Authorization: Bearer <PARTNER_API_KEY>
Query parameters
pageintegeroptionaldefault: 1 · min: 1
sizeintegeroptionaldefault: 20 · min: 1 · max: 100
typestringoptional"TOP_UP" · "ORDER_CHARGE" · "ORDER_REVERSAL" · "RETURN" · "ADJUSTMENT" · "SETTLEMENT_PAYMENT"
directionstringoptional"CREDIT" · "DEBIT"
fromstringoptionalInclusive UTC instant. When both bounds are supplied, from must be earlier than to and the range must not exceed 366 days. Either bound may be supplied alone.
date-time
tostringoptionalExclusive UTC instant. When both bounds are supplied, to must be later than from and the range must not exceed 366 days. Either bound may be supplied alone.
date-time
Response
Paged ledger for the authenticated partner and key environment.
Cache-Control no-store
dataobjectrequiredShow fields
itemsarrayrequiredShow fields
entryIdstringrequireduuid
modestringrequired"LIVE" · "TEST"
directionstringrequired"CREDIT" · "DEBIT"
typestringrequired"TOP_UP" · "ORDER_CHARGE" · "ORDER_REVERSAL" · "RETURN" · "ADJUSTMENT" · "SETTLEMENT_PAYMENT"
amountMinorintegerrequiredint64 · min: 1 · max: 9007199254740991
balanceAfterMinorintegerrequiredint64 · min: -9007199254740991 · max: 9007199254740991
currencystringrequired"SAR"
orderIdstring | nullrequireduuid
externalReferencestring | nullrequiredmax length: 160
createdAtstringrequireddate-time
allocatedMinorintegerrequiredint64 · min: 0 · max: 9007199254740991
unallocatedMinorintegerrequiredint64 · min: 0 · max: 9007199254740991
paginationobjectrequiredShow fields
pageintegerrequiredsizeintegerrequiredtotalintegerrequiredint64
totalPagesintegerrequired
requestIdstringrequirederrorobject | nullrequirednull