API reference / Checkouts
Retrieve a checkout
GET
/v1/checkouts/{reference_id} Reads one checkout. Use it to confirm it was paid, for example when your customer lands on your success_url.
A checkout that belongs to another merchant, or to the other mode, returns 404.
Path parameters
reference_idstringRequired
Headers
AuthorizationstringRequiredBearerplus your API key. See Authentication.
Responses
200 OK
The checkout.
What data holds
checkoutobject23 fields in
checkoutreference_idstringexternal_reference_idstring | nulltypestringOne of:ORDERAMOUNTstatusstringOne of:OPENCOMPLETEDEXPIREDCANCELLEDcurrencystringISO 4217. PHP today; more as they're enabled for your account.One of:PHPamountnumberThe total, in pesos.descriptionstring | nullitemsarray of objects4 fields in
itemsnamestringRequiredUp to 255 charactersquantityintegerRequiredAt least 1At most 9999unit_amountnumberRequiredPesos, as a JSON number.amountnumberquantity×unit_amount.
channelsarray of strings | nullOne of:QR_PHGCASHMAYACARDPAY_AND_GOPALAWANPAYBAYADqr_ph_appsarray of strings | nullcustomerobject4 fields in
customeridstring | nullYour ID for the customer, withsave_payment_method.namestring | nullemailstring | nullmobile_nostring | null
save_payment_methodbooleanA card payment also saves the card (the payment'spayment_method_id).checkout_urlstring (uri)success_urlstring | nullcancel_urlstring | nullwebhook_urlstring | nullpaymentanyThe payment that paid it.expires_atstring (date-time)completed_atstring (date-time) | nullexpired_atstring (date-time) | nullcancelled_atstring (date-time) | nullcreated_atstring (date-time)updated_atstring (date-time)
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.
404 Not Found
Not found in this mode for your account (code 4040000).