Error codes
| code | message_key | Description |
|---|---|---|
10001 |
error.invalid_api_key |
The API Key is invalid or disabled. |
10002 |
error.invalid_signature |
The signature is invalid. |
10003 |
error.timestamp_expired |
The timestamp has expired. |
10004 |
error.nonce_repeated |
The nonce has already been used. |
10005 |
error.ip_not_allowed |
The request IP is not on the allowlist. |
10006 |
error.permission_denied |
The API Key does not have this permission. |
10007 |
error.channel_api_key_mismatch |
The channel does not match the API Key. |
10008 |
error.invalid_merchant_binding |
The merchant does not match the API Key. |
10009 |
error.invalid_environment |
The request environment does not match the credentials. |
10010 |
error.missing_parameter |
A required parameter is missing. |
10011 |
error.invalid_parameter |
A parameter has an invalid format. |
10012 |
error.unsupported_currency |
The currency is not supported. |
10013 |
error.unsupported_payment_method |
The payment type is not supported. |
10014 |
error.unsupported_bank |
The bank or e-wallet is unsupported or has no valid mapping. |
10015 |
error.too_many_requests |
The request rate is too high or a limit has been reached. |
10016 |
error.risk_rejected |
The transaction was rejected by risk control. |
20001 |
error.merchant_not_tradeable |
The merchant is currently not allowed to transact. |
20002 |
error.merchant_not_found |
The merchant does not exist. |
30001 |
error.channel_unavailable |
The channel is unavailable. |
30002 |
error.channel_maintenance |
The channel is under maintenance and is not accepting new orders; existing formal orders continue processing. |
30007 |
error.provider_timeout |
The payment service timed out. |
30008 |
error.provider_bad_response |
The payment service returned an invalid response. |
40001 |
error.insufficient_balance |
The available balance is insufficient. |
40002 |
error.amount_below_min |
The amount is below the minimum. |
40003 |
error.amount_above_max |
The amount is above the maximum. |
40004 |
error.invalid_amount |
The amount format or precision is invalid. |
50002 |
error.submission_conflict |
Order or session creation conflicts with an existing record. |
50003 |
error.order_not_found |
The order or session does not exist. |
50006 |
error.cashier_unavailable |
The cashier session or current configuration is unavailable. |
50007 |
error.cashier_expired |
The cashier session has expired. |
50008 |
error.cashier_selection_conflict |
The cashier channel or beneficiary data is locked. |
50009 |
error.cashier_provider_message |
Cashier submission failed; message contains a safely filtered payment-channel error message. |
90000 |
error.system_error |
System error. |
90001 |
error.provider_system_error |
The payment service is temporarily unavailable. |
Global matching amount guidance#
When POST /api/v1/pay/create, or POST /api/v1/payout/create with Payout Cashier enabled, uses a global-matching key (merchant_global) without specifying channel_code, a rejected creation aggregates amount boundaries from valid bound-channel configurations for the current merchant, environment, currency, and payment type. The minimum is the smallest min_amount, and the maximum is the largest max_amount. Payout Direct uses a fixed merchant_channel key and does not use this global-matching aggregate.
For example, channel A supports 10.00–100.00 MYR, and channel B supports 20.00–2000.00 MYR. The overall minimum is 10.00 MYR and the maximum is 2000.00 MYR. When the requested amount is strictly below the minimum, the HTTP 200 response is:
{
"code": 40002,
"message_key": "error.amount_below_min",
"default_message": "amount below minimum",
"message": "amount below minimum (MYR 10.00)",
"data": null,
"request_id": "req_example_amount_below_min"
}
When the requested amount is strictly above the maximum:
{
"code": 40003,
"message_key": "error.amount_above_max",
"default_message": "amount above maximum",
"message": "amount above maximum (MYR 2000.00)",
"data": null,
"request_id": "req_example_amount_above_max"
}
- Localization changes only the
messagetext; the currency and amount remain present. Programs must usecodeto identify the error and must not parse the display text. - If any channel has no boundary configured on one side, that side is unlimited and no finite overall boundary is shown.
- The aggregate uses only channel configurations and does not merge API Key or merchant-binding limits. An amount within the overall range must still pass channel, rate, bank, balance, and other validation. If the amount falls into a gap between individual channel ranges, the original channel-mismatch error is returned.
- Fixed keys, explicitly selected channels, and retries for existing formal orders keep their original behavior. API Key limit validation, insufficient payout balance, and internal errors take precedence and retain their original errors; not every creation failure returns amount guidance.
- An amount rejection does not save a new session, return
payment_url, create a formal order, or freeze funds.
Channel maintenance errors and retries#
30002 / error.channel_maintenance means the platform rejected this new order because of channel maintenance, with default_message set to channel maintenance. It is not a terminal order status. Global matching creation excludes maintenance channels. If no eligible candidate remains, the result may still be 30001 / error.channel_unavailable or another applicable validation error; not every maintenance scenario returns 30002.
When receiving a maintenance error, keep the original merchant_order_no and first query whether a formal order exists. Continue processing an existing order according to its current status; do not create a duplicate with a different order number. A cashier session without a formal order may select another eligible active channel. If the request specified channel_code, do not retry the same idempotent creation by changing that field. Generate a new timestamp, nonce, and sign for another request while keeping the original creation business parameters unchanged.
When an error occurs, store code, message_key, and request_id, then query the result with the original order number.