Result notifications
When a collection or payout reaches a result, PAYJN sends a POST request with a JSON body to the merchantNotifyUrl of the order. Reply with the plain text SUCCESS. If PAYJN does not receive it, the notification is retried up to 8 times.
| Attempt | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Delay | 1s | 5s | 10s | 30s | 60s | 300s | 900s | 1800s |
Callback timing is typically 1 to 5 seconds after the final result, depending on the route.
Collection notification body
| Field | Type | Description |
|---|---|---|
status | String | SUCCESS, FAILURE, PROCESSING or CANCELLED. |
merchantCode | String(6) | Your merchant code. |
merchantOrderId | String(50) | Your order number. |
platformOrderId | String(32) | PAYJN order number. |
paymentMethodCode | String | Payment method. |
countryCode | String | Country code. |
amount | String | Order amount. |
paidAmount | String | Amount actually received. It can differ from amount. |
createTime | String | Creation time. |
successTime | String | Success time. |
{
"platformOrderId": "C1000011764400000000001",
"merchantOrderId": "ORDER20261129001",
"amount": "50000.00",
"paidAmount": "50000.00",
"status": "SUCCESS",
"paymentMethodCode": "QRIS",
"desc": "",
"createTime": "2026-11-29 10:00:00",
"successTime": "2026-11-29 10:01:12"
}
Payout notifications carry the same fields for the payout order, with the destination bankCode.
Process notifications safely
- Verify the
signheader first. - Look up the order by merchantOrderId and check amount and currency.
- Credit only on SUCCESS, and only once: repeated notifications for a credited order must not credit again.
- Reply
SUCCESSafter you have stored the result. - If a notification has not arrived, use the order query instead of waiting.
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.