Skip to content

Transaction model

This is the full transaction entity. The endpoints you integrate against return smaller views of it:

Use the table below to understand a field’s meaning; use the pages above for what each call actually gives you.

Transaction (full entity)
{
"amountDetails": {
"amount": 0,
"currencyCode": "string",
"customerPayableAmount": 0,
"defaultCurrencyAmount": 0,
"defaultCurrencyCode": "string",
"formattedMerchantAmount": "string",
"merchantAmount": 0,
"totalTransactionAmount": 0,
"transactionServiceFee": 0
},
"applicationCode": "string",
"applicationName": "string",
"chargeType": "NO_CHARGE",
"customer": {
"contactNumbers": ["string"],
"email": "string",
"name": "string"
},
"customerAmountPaid": {
"amountPaid": 0,
"currencyCode": "string"
},
"dateOfTransaction": "string",
"id": 0,
"internalReference": "string",
"liquidationStatus": "COMPLETED",
"liquidationTransactionReference": "string",
"merchantReference": "string",
"paymentMetadata": {},
"paymentMethodDetails": {
"paymentMethodCode": "string",
"paymentMethodId": 0,
"paymentMethodMessage": "string",
"paymentMethodName": "string",
"paymentMethodReference": "string",
"paymentMethodStatus": "string"
},
"pollUrl": "string",
"reasonForPayment": "string",
"redirectRequired": true,
"redirectUrl": "string",
"referenceNumber": "string",
"resultUrl": "string",
"returnUrl": "string",
"settlementMode": "DIRECTLY_SETTLED",
"transactionStatus": "AUTHORIZATION_FAILED",
"transactionType": "BASIC"
}
FieldTypeDescription
amountDetailsobjectCurrency, amount charged to the customer, and fees for the transaction
applicationCodestringThe unique code assigned to your application on creation
applicationNamestringYour application’s name
chargeTypestringNO_CHARGE, SHARED_TRANSACTIONAL_CHARGE, TRANSACTIONAL_CHARGE_FOR_CUSTOMER, or TRANSACTIONAL_CHARGE_FOR_MERCHANT
customerobjectThe customer’s details
customerAmountPaidobjectThe amount actually paid by the customer
dateOfTransactionstringDate and time the transaction was initiated
internalReferencestringPesepay’s internal transaction reference
liquidationStatusstringCOMPLETED, DUE_FOR_LIQUIDATION, IN_PROGRESS, NO_LIQUIDATION_REQUIRED, PENDING, or WAITING_FOR_DETERMINATION
liquidationTransactionReferencestringThe liquidation transaction reference
merchantReferencestringYour own reference for the transaction
paymentMetadataobjectAdditional payment information
paymentMethodDetailsobjectDetails of the payment method used
pollUrlstringURL to poll for a change in transaction status
reasonForPaymentstringThe subject of the transaction
redirectRequiredbooleanWhether the payment method requires a redirect
redirectUrlstringThe redirect URL, when applicable
referenceNumberstringThe transaction’s reference number — your primary tracking key
resultUrlstringThe URL Pesepay posts the transaction result to
returnUrlstringThe URL the customer is returned to after processing
settlementModestringHow the transaction settles
transactionStatusstringSee Transaction Statuses
transactionTypestringBASIC or INVOICE