Skip to content

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.

HTTPcodeMeaningWhat to do
400INVALID_PARAMMissing or malformed parameter, or an unknown field; message names itFix the request. Do not retry as is
401INVALID_SIGNATURESignature, timestamp, nonce or App id invalid (the reason is not disclosed)See Request signing; check the server clock
403APP_DISABLEDApp disabledContact EasyPay
403MERCHANT_DISABLEDMerchant disabledContact EasyPay
403IP_NOT_ALLOWEDSource IP not whitelistedContact EasyPay to update the whitelist (no self-service in the portal)
404PAYOUT_NOT_FOUNDNo such order for this merchantCheck trade_no / reference_id
409DUPLICATE_REFERENCE_IDreference_id already used with a different bodyNew payout → new reference_id; retry → resend the original body
409NOT_CANCELLABLEOrder is no longer PENDINGWait for the final state
413INVALID_PARAMBody over 64 KBShrink the request
422INSUFFICIENT_BALANCEAvailable balance below total_debitTop up and retry; the reference_id is still free
422UNSUPPORTED_PAYMENT_METHODMethod not offered, or no enabled fee schedule for this AppContact EasyPay to enable a fee schedule for this App
422UNSUPPORTED_COUNTRYMethod not served in that countryCheck country
422UNSUPPORTED_CURRENCYThe source_currency / currency / destination_currency combination is not served, or no rateCheck the three currencies
422AMOUNT_OUT_OF_RANGEDebit outside 1–100,000, or arrival rounds to zeroAdjust the amount
422PAYEE_INVALIDPayee fields violate the method / country rule (e.g. CPF check digit)See Payee field rules
422QUOTE_EXPIRED / QUOTE_MISMATCHLocked quote expired / does not match (quote endpoint not yet public)Re-quote
429RATE_LIMITEDToo many requestsBack off and retry
500INTERNAL_ERRORServer errorRetry later with the same reference_id; if it persists contact support with request_id
503SERVICE_UNAVAILABLEA dependency is temporarily unavailableRetry with exponential back-off

Retry policy ​

  • 5xx, 429, network timeouts: retry with the same reference_id and body; idempotency guarantees no double payout.
  • 4xx other 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/query with the reference_id.

Order failure reasons ​

For FAILED / RETURNED / CANCELLED orders, failure.code gives a stable reason:

failure.codeMeaning
CANCELLEDCancelled by you
NAME_MISMATCHPayee name does not match the account
ACCOUNT_CLOSEDPayee account closed
CHANNEL_ERRORAny other channel rejection; see failure.message

The list grows as channels are added; treat unknown failure.code values as CHANNEL_ERROR.

EasyPay merchant API · v1