Retrieve a payment
GET
/payments/{paymentId}Authorization
AuthorizationBearer token · headerrequiredYour Apipay secret API key.
Path parameters
paymentIdstringrequiredThe payment's unique identifier.
Responses
200
The requested payment.
idstringrequiredamountintegerrequiredAmount in the smallest unit of the currency (e.g. Rupiah has no sub-unit, so this is whole Rupiah).
currencystringrequiredmethodPaymentMethodrequiredAllowed:
qrisvirtual_accountcardewalletstatusPaymentStatusrequiredAllowed:
pendingsucceededfailedcanceledcustomer_idstring | nulldescriptionstring | nullcreated_atstring<date-time>required401
The API key is missing, invalid, or revoked.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequired404
No resource exists with that identifier.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequired