Portal pengembangan

Error Codes#

Use the response code and request context to diagnose an error and decide how to handle it.

Business Error Codes#

CodeMeaningCommon Causes and Resolution
0Request succeededRead data and use status to confirm the payment result.
30001Invalid request format or parameter constraintCheck required fields, lengths, amount formats, and JSON types.
61009Invalid business parameterCheck for a duplicate merchant order ID, unsupported network or token, invalid recipient address or amount, or a query that fails to provide exactly one order ID. The order may also be missing or associated with a different API key.
61017Payment service temporarily unavailableThe service may be disabled or under maintenance.
8000Internal processing errorKeep the original merchant order ID and query the order to confirm the result before taking further action.

Querying either a nonexistent order or one associated with a different API key can return 61009. The error message cannot establish whether an order exists under another API key.

Authentication and rate limits can reject a request before the order API processes it. Handle these errors using the common Onchain OS authentication and rate-limit conventions. This table covers the main business errors from the order API.

Error Response Example#

json
{
  "code": 61009,
  "msg": "One of paymentIntentId or merchantPaymentId is required",
  "data": null
}

Use code and the request context when handling errors. Treat the message as diagnostic text that may change.