API reference / Balance
List ledger entries
GET
/v1/ledger-entries Every change to your available balance, newest first.
Each entry is permanent. A correction is a new entry, never an edit.
Query parameters
per_pageintegerItems per page, 25 by default; values above 100 become 100.At least 1Default: 25cursorstringThenext_cursororprev_cursorfrom the previous page.Up to 1024 charactersdate_fromstring (date)Start date (Asia/Manila), inclusive. Send withdate_to.date_tostring (date)End date (Asia/Manila), inclusive.typestringOnly entries of this type.One of:PAYMENTREFUNDREVERSALWITHDRAWALWITHDRAWAL_RETURNEDFEEADJUSTMENT
Headers
AuthorizationstringRequiredBearerplus your API key. See Authentication.
Responses
200 OK
A page of ledger entries.
What data holds
ledger_entriesarray of objects8 fields in
ledger_entriesreference_idstringtypestringPAYMENT,REFUND,REVERSAL,WITHDRAWAL,WITHDRAWAL_RETURNED,FEEorADJUSTMENT.One of:PAYMENTREFUNDREVERSALWITHDRAWALWITHDRAWAL_RETURNEDFEEADJUSTMENTcurrencystringISO 4217. PHP today; more as they're enabled for your account.One of:PHPamountnumberSigned.balance_afternumberYour balance after this entry.sourceobject | nulltype(PAYMENT,REFUND,REVERSALorWITHDRAWAL) andreference_idof what caused it. Null when nothing did, such as an adjustment.2 fields in
sourcetypestringOne of:PAYMENTWITHDRAWALREFUNDREVERSALreference_idstring
descriptionstring | nullA readable label, mainly for adjustments.posted_atstring (date-time)When the entry took effect.
paginationobject4 fields in
paginationper_pageintegerRequirednext_cursorstring | nullRequiredprev_cursorstring | nullRequiredis_last_pagebooleanRequired
401 Unauthorized
Missing, malformed or unknown API key (code 4010000).
403 Forbidden
The key can't make this request (code 4030000): an address outside the key's IP allowlist, a live key before your live mode is on, or an account that isn't active. A live key sent from a browser is refused (code 4030001): keep live keys on your server.