Error codes
Every error has the same envelope:
json
{ "code": "INSUFFICIENT_BALANCE", "message": "available USD balance 390.20 is below 400.00", "request_id": "3f2c…" }code is a stable contract — codes are added, never renamed. message is an English explanation for humans; do not parse it. request_id equals the X-Request-ID response header; quote it to support.
| HTTP | code | Meaning | What to do |
|---|---|---|---|
| 400 | INVALID_PARAM | Missing or malformed parameter, or an unknown field; message names it | Fix the request. Do not retry as is |
| 401 | INVALID_SIGNATURE | Signature, timestamp, nonce or App id invalid (the reason is not disclosed) | See Request signing; check the server clock |
| 403 | APP_DISABLED | App disabled | Contact EasyPay |
| 403 | MERCHANT_DISABLED | Merchant disabled | Contact EasyPay |
| 403 | IP_NOT_ALLOWED | Source IP not whitelisted | Contact EasyPay to update the whitelist (no self-service in the portal) |
| 404 | PAYOUT_NOT_FOUND | No such order for this merchant | Check trade_no / reference_id |
| 409 | DUPLICATE_REFERENCE_ID | reference_id already used with a different body | New payout → new reference_id; retry → resend the original body |
| 409 | NOT_CANCELLABLE | Order is no longer PENDING | Wait for the final state |
| 413 | INVALID_PARAM | Body over 64 KB | Shrink the request |
| 422 | INSUFFICIENT_BALANCE | Available balance below total_debit | Top up and retry; the reference_id is still free |
| 422 | UNSUPPORTED_PAYMENT_METHOD | Method not offered, or no enabled fee schedule for this App | Contact EasyPay to enable a fee schedule for this App |
| 422 | UNSUPPORTED_COUNTRY | Method not served in that country | Check country |
| 422 | UNSUPPORTED_CURRENCY | The source_currency / currency / destination_currency combination is not served, or no rate | Check the three currencies |
| 422 | AMOUNT_OUT_OF_RANGE | Debit outside 1–100,000, or arrival rounds to zero | Adjust the amount |
| 422 | PAYEE_INVALID | Payee fields violate the method / country rule (e.g. CPF check digit) | See Payee field rules |
| 422 | QUOTE_EXPIRED / QUOTE_MISMATCH | Locked quote expired / does not match (quote endpoint not yet public) | Re-quote |
| 429 | RATE_LIMITED | Too many requests | Back off and retry |
| 500 | INTERNAL_ERROR | Server error | Retry later with the same reference_id; if it persists contact support with request_id |
| 503 | SERVICE_UNAVAILABLE | A dependency is temporarily unavailable | Retry with exponential back-off |
Retry policy
5xx,429, network timeouts: retry with the samereference_idand body; idempotency guarantees no double payout.4xxother than 429: the request itself is wrong; retrying gives the same answer — fix it first.- Response received but unclear (e.g. parse failure): call
/payout/querywith thereference_id.
Order failure reasons
For FAILED / RETURNED / CANCELLED orders, failure.code gives a stable reason:
failure.code | Meaning |
|---|---|
CANCELLED | Cancelled by you |
NAME_MISMATCH | Payee name does not match the account |
ACCOUNT_CLOSED | Payee account closed |
CHANNEL_ERROR | Any other channel rejection; see failure.message |
The list grows as channels are added; treat unknown failure.code values as CHANNEL_ERROR.