API Reference

Payment object

This is an object representing your payments.

Payments

Payments are all transactions that occur on your balances. These can be directly from a payment method or from a tokenized (saved) payment method for automated payments.


📘

You can retrieve all saved payments of yours but you cannot update or delete records.


Payment object fields

FieldData typeDescriptionType
idstringunique id of paymentrequired
referencestringclient-supplied unique reference to track paymentoptional
sourcestringorigin of payment (external, balance, token)required
save_tokenbooleanspecifies if the payment method used for the payment should be saved for later userequired
amountintegeramount of the payment in non-decimal or smallest possible unit (eg: cent over dollar)required
currencystringcurrency of the paymentrequired
breakdownjsonbreakdown of all parts and fees of paymentoptional
countrystringtwo-letter ISO code representing the country of the paymentrequired
typestringtype of paymentrequired
statusintegerstatus of paymentrequired
return_urlstringurl to redirect after payment successoptional
balance_updatedbooleanspecifies if the balance was updated after the paymentrequired
balance_transaction_typestringtype of transaction on balance (credit, debit)required
balanceintegerbalance's available amount after payment transaction succeeds, fails, is refunded or is canceledoptional
event_logjsonlog of important event timestamps of the paymentoptional
metadatajsonmetadata to store extra informationoptional

Payment status

StatusDescription
initiatedThe payment has been initiated but requires authorization or verification
pendingGeneric "in progress" payment status
successfulThe payment has been verified and successful
failedThe payment has been verified but failed
refundedThe payment was refunded
canceledThe payment was canceled by the processor or user

Payment sources

SourceDescription
externalthe payment was made from an external source
balancethe payment originated from a balance
tokenthe payment was made from a saved payment method