PAYJN API docs

Query a collection order

Get the current status of a pay-in order by your order number. Use it when a notification has not arrived, before support answers a customer, and in reconciliation.

POST /api-pay/collection/order/query

Request headers

FieldTypeRequiredDescription
Content-TypeStringYesapplication/json
signStringYesRequest signature. See Authentication.

Request body

FieldTypeRequiredDescription
merchantCodeString(6)YesYour merchant code, issued by PAYJN after onboarding.
merchantOrderIdString(50)YesYour own order number. Letters and digits, up to 50 characters, unique in your system. Used for queries and to prevent duplicates.
{
  "merchantCode": "100001",
  "merchantOrderId": "ORDER20261129001"
}

Response

FieldTypeDescription
codeInteger200 means the request was accepted. Any other value is an error; see msg.
msgStringError message when code is not 200.
dataObjectResult object, returned when code is 200.
data.merchantCodeStringYour merchant code.
data.countryCodeStringCountry code of the order.
data.platformOrderIdString(32)PAYJN order number.
data.merchantOrderIdString(50)Your order number.
data.amountStringOrder amount in local currency.
data.statusStringSUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status.
data.paidAmountStringAmount actually received. It can differ from amount; credit what your rules allow.
data.paymentMethodCodeStringPayment method of the order.
data.successTimeStringTime the payment succeeded, local time.

Get API access

Full integration documentation, your API host, merchant code and keys are provided after onboarding. Review is usually completed on the same day, and a test mode is switched on for your account before launch.

Talk to PAYJN

Last updated 29 November 2026 ยท PAYJN local payment APIs for Indonesia, Pakistan, Bangladesh, Vietnam, India and Malaysia