Asynchronous notifications
The platform sends JSON notifications to the notify_url saved with the creation request. If omitted, the merchant's default notification URL is used. No notification is sent when neither is configured.
Channel maintenance does not prevent existing formal orders from receiving transaction results or sending asynchronous notifications. Merchants continue to use the existing signature verification, deduplication, and acknowledgment rules; no maintenance-specific notification event is added.
| Field | Type | Description |
|---|---|---|
event_type, status |
string | Notification event and transaction status; see the table below. |
platform_order_no, merchant_order_no |
string | Platform and merchant order numbers. |
amount, currency |
string | Transaction amount and currency. |
completed_at |
string | Event completion time in RFC 3339 format. |
timestamp |
integer | Notification send time in Unix seconds. |
nonce |
string | Random string for this notification. |
secret_version |
integer | Secret version used for signing. |
sign |
string | 64-character lowercase HMAC-SHA256 signature. |
Formal-order notifications also contain channel_code and channel_order_no. Formal pay-in notifications contain the order-locked fee_amount and net_amount; successful pay-ins additionally contain paid_amount and paid_at. Fees and net amounts in failure or expiry notifications represent only the order's rate snapshot and do not mean funds were credited. Payout notifications contain fee_amount and net_amount, where net_amount = amount + fee_amount. See section 6.2 for additional cashier-session expiry fields.
Notification events#
| event_type | status | Meaning |
|---|---|---|
payin.succeeded |
paid |
Pay-in succeeded |
payin.failed |
failed |
Pay-in failed |
payin.expired |
expired |
Formal pay-in order expired |
payout.succeeded |
success |
Payout succeeded |
payout.failed |
failed |
Payout failed |
cashier.payin.expired |
expired |
Session expired before a formal pay-in order was created |
cashier.payout.expired |
expired |
Payout session expired without channel selection or submission |
Successful pay-in example:
{
"event_type": "payin.succeeded",
"platform_order_no": "P202609160001",
"merchant_order_no": "PAY202609160001",
"channel_order_no": "CHANNEL123456",
"channel_code": "PAY_CHANNEL",
"amount": "10.00",
"fee_amount": "0.15",
"net_amount": "9.85",
"paid_amount": "10.00",
"currency": "MYR",
"status": "paid",
"completed_at": "2026-09-16T15:12:38Z",
"paid_at": "2026-09-16T15:12:38Z",
"timestamp": 1789517558,
"nonce": "notify-550e8400-e29b-41d4-a716-446655440000",
"secret_version": 1,
"sign": "<64位小写HMAC-SHA256>"
}
payin.expired does not contain paid_amount or paid_at. A formal order that expires after a timeout contains reason_code=order_timeout. A success notification may still arrive after manual_review; allow the status update while preventing duplicate ledger entries. Payout notifications do not contain the full beneficiary account number.
Session expiry notifications#
{
"event_type": "cashier.payin.expired",
"checkout_mode": "cashier",
"platform_order_no": "P202609170001",
"merchant_order_no": "PAY202609170001",
"amount": "50.00",
"currency": "MYR",
"status": "expired",
"reason_code": "cashier_channel_not_selected",
"expired_at": "2026-09-17T08:30:00Z",
"completed_at": "2026-09-17T08:30:00Z",
"timestamp": 1789633800,
"nonce": "notify-cashier-expired-001",
"secret_version": 1,
"sign": "<64位小写HMAC-SHA256>"
}
Both session-expiry notification types contain checkout_mode=cashier. expired_at equals completed_at. They do not contain a formal channel, fee, frozen amount, or paid amount. A session that has produced a formal order is handled according to the formal order status.
| Field | Type | Description |
|---|---|---|
reason_code |
string | cashier_channel_not_selected (no channel selected) or cashier_submission_timeout (submission timeout). Receivers must support both values. |
expiry_revision |
string | Optional positive-integer string, such as "2". If omitted, version 0 is used. The field participates in signing. |
The same session may receive expiry notifications with different revisions. Process each revision separately. The revision distinguishes session notifications; it does not represent payment attempts or ledger entries.
Signature verification, deduplication, and acknowledgment#
Notification signature verification uses the same algorithm as request signing. Include every non-empty field and validate the time window, order number, amount, currency, and status. secret_version identifies the Secret version used for the signature.
| Notification type | Deduplication key |
|---|---|
| Standard formal-order notification | event_type + platform_order_no |
| Status correction notification | event_type + platform_order_no + status_revision |
| Session expiry notifications | event_type + platform_order_no + expiry_revision (default 0) |
A status correction notification additionally contains status_revision (a positive-integer string) and correction="true"; both participate in signing. Standard notifications do not contain these fields. Store the highest processed revision to prevent an older revision from overwriting a newer status. A correction may change success to failure or failure to success. Process the order and ledger in the same business transaction; do not treat every success notification as a new credit.
After successful processing, return HTTP 2xx with a response body that equals SUCCESS exactly after trimming surrounding whitespace. Other responses may trigger retries. Duplicate notifications should also receive the success acknowledgment.
HTTP/1.1 200 OK
Content-Type: text/plain
SUCCESS