Errors
Errors use standard HTTP status codes and a JSON body:
json
{ "error": { "type": "bad_request", "message": "payment_amount must not be less than 1" } }type is one of bad_request, unauthorized, forbidden, not_found, conflict and internal_server_error;
message is for people — don't parse it.
| HTTP status | Meaning | What to do |
|---|---|---|
400 | The request is invalid: a field is missing or has a wrong format, or the amount is out of range. | Fix the request; message names the problem. |
401 | The API key is missing, wrong or revoked. | Check the x-api-key header. |
403 | The request comes from an IP address that is not allowed, or the action is not allowed for your account. | Check Allowed IP addresses. |
404 | The payment does not exist (or, for top-ups, there is no deposit address on the network yet). | Check merchant_order_id; for top-ups see Top up API errors. |
409 | A payment with this merchant_order_id already exists, a payout cannot be made right now, or crypto top-ups are not available (code says why). | Use a new order ID; for payouts see Payouts API errors, for top-ups Top up API errors. |
422 | A payout exceeds one of your limits (code payout_limit_exceeded, the limit in extra). | See Payouts API errors. |
429 | Too many requests, or a deposit address was checked less than a minute ago (deposit_check_too_often). | Retry later with back-off. |
5xx | Temporary problem on our side. | Retry with back-off; contact support if it persists. |
