Improved
AeroPay errors in the embed now include an errorCode
November 5th, 2026 by ReadMe API
Availability: Sandbox since November 4, 2026 · Production since November 5, 2026
The AeroPay endpoints under /embed/v1/payment/aeropay now return AeroPay's own error code as errorCode (for example AP111) when AeroPay refuses a request, so the embedded UI can show the matching message. errorCode is only present when AeroPay sent a code in the AP plus 3 or 4 digits format. See Embedded UI.
errorCodeadded to the 400 responses ofPOST /embed/v1/payment/aeropay/confirm(mfa_rejected),POST /embed/v1/payment/aeropay/widget/link(link_failed) andPOST /embed/v1/payment/aeropay/deposit(aeropay_rejected), and to the deposit 500aeropay_outcome_unknown.- New 400 responses: when AeroPay refuses the request,
GET /embed/v1/payment/aeropay(codeaeropay_user_rejected),GET /embed/v1/payment/aeropay/accounts(aeropay_accounts_rejected) andGET /embed/v1/payment/aeropay/widget(aeropay_widget_rejected) now answer400instead of500. Each includeserrorCode. Refusals where the outcome is uncertain, such as AeroPay server errors, stay500. - 500 bodies: server errors on these endpoints now return
{error, code?, errorCode?}with a fixederrorstring instead of{"msg": ...}, and no longer include AeroPay's raw response text.
If you handle these endpoints' errors yourself, treat these 400 responses like the 500 you saw before, and read errorCode instead of parsing msg.
