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
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | String | Yes | application/json |
sign | String | Yes | Request signature. See Authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
merchantCode | String(6) | Yes | Your merchant code, issued by PAYJN after onboarding. |
merchantOrderId | String(50) | Yes | Your 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
| Field | Type | Description |
|---|---|---|
code | Integer | 200 means the request was accepted. Any other value is an error; see msg. |
msg | String | Error message when code is not 200. |
data | Object | Result object, returned when code is 200. |
data.merchantCode | String | Your merchant code. |
data.countryCode | String | Country code of the order. |
data.platformOrderId | String(32) | PAYJN order number. |
data.merchantOrderId | String(50) | Your order number. |
data.amount | String | Order amount in local currency. |
data.status | String | SUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status. |
data.paidAmount | String | Amount actually received. It can differ from amount; credit what your rules allow. |
data.paymentMethodCode | String | Payment method of the order. |
data.successTime | String | Time 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.