Error Codes#
Use the response code and request context to diagnose an error and decide how to handle it.
Business Error Codes#
| Code | Meaning | Common Causes and Resolution |
|---|---|---|
0 | Request succeeded | Read data and use status to confirm the payment result. |
30001 | Invalid request format or parameter constraint | Check required fields, lengths, amount formats, and JSON types. |
61009 | Invalid business parameter | Check 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. |
61017 | Payment service temporarily unavailable | The service may be disabled or under maintenance. |
8000 | Internal processing error | Keep 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.
Table of contents
