الرصيد والحركات / API v1
الحركات المالية
/api/partner/v1/ledgerPaged ledger for the authenticated partner and key environment.
Authorization: Bearer <PARTNER_API_KEY>
معاملات الاستعلام
pageintegerاختياريdefault: 1 · min: 1
sizeintegerاختياريdefault: 20 · min: 1 · max: 100
typestringاختياري"TOP_UP" · "ORDER_CHARGE" · "ORDER_REVERSAL" · "RETURN" · "ADJUSTMENT" · "SETTLEMENT_PAYMENT"
directionstringاختياري"CREDIT" · "DEBIT"
fromstringاختياريInclusive 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
tostringاختياريExclusive 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
الاستجابة
Paged ledger for the authenticated partner and key environment.
Cache-Control no-store
dataobjectمطلوبعرض الحقول
itemsarrayمطلوبعرض الحقول
entryIdstringمطلوبuuid
modestringمطلوب"LIVE" · "TEST"
directionstringمطلوب"CREDIT" · "DEBIT"
typestringمطلوب"TOP_UP" · "ORDER_CHARGE" · "ORDER_REVERSAL" · "RETURN" · "ADJUSTMENT" · "SETTLEMENT_PAYMENT"
amountMinorintegerمطلوبint64 · min: 1 · max: 9007199254740991
balanceAfterMinorintegerمطلوبint64 · min: -9007199254740991 · max: 9007199254740991
currencystringمطلوب"SAR"
orderIdstring | nullمطلوبuuid
externalReferencestring | nullمطلوبmax length: 160
createdAtstringمطلوبdate-time
allocatedMinorintegerمطلوبint64 · min: 0 · max: 9007199254740991
unallocatedMinorintegerمطلوبint64 · min: 0 · max: 9007199254740991
paginationobjectمطلوبعرض الحقول
pageintegerمطلوبsizeintegerمطلوبtotalintegerمطلوبint64
totalPagesintegerمطلوب
requestIdstringمطلوبerrorobject | nullمطلوبnull