Skip to main content

Error Codes

These are the error codes that can be returned by the Wava API to external consumers. Each error follows the standard error format.

Authentication errors (1000-1099)

CodeAPI CodeMessageDescription
1001MISSING_MERCHANT_KEYMissing merchant-key headerThe merchant-key header is required for API authentication
1002INVALID_MERCHANT_KEYInvalid merchant keyThe provided merchant key is not valid or has been revoked
1003UNAUTHORIZED_ACCESSUnauthorized accessYou do not have permission to access this resource
1004INSUFFICIENT_SCOPEInsufficient scopeYou don’t have access to this resource

Validation errors (2000-2099)

CodeAPI CodeMessageDescription
2000VALIDATION_FAILEDValidation failedOne or more fields failed validation. Check the validation_errors array for details
2001REQUIRED_FIELD_MISSINGRequired field missingOne or more required fields are missing from the request
2002INVALID_FIELD_FORMATInvalid field formatOne or more fields have an invalid format
2003AMOUNT_REQUIREDAmount is requiredThe amount field is required and must be a positive number
2004DESCRIPTION_REQUIREDDescription is requiredThe description field is required
2005INVALID_CURRENCYInvalid currencyCurrency must be a valid 3-letter ISO code (e.g., COP)
2006INVALID_EMAILInvalid email formatThe email address provided is not in a valid format
2007INVALID_PHONEInvalid phone numberPhone number must contain only digits
2008INVALID_URLInvalid URL formatThe URL provided is not in a valid format

Order and store errors (3000-3099)

CodeAPI CodeMessageDescription
3001STORE_NOT_FOUNDStore not foundThe specified store does not exist
3002STORE_INACTIVEStore inactiveThe store is not currently active
3003ORDER_NOT_FOUNDOrder not foundThe specified order does not exist or you do not have access to it
3004ORDER_ALREADY_PROCESSEDOrder already processedThis order has already been processed and cannot be modified
3005INVALID_ORDER_STATUSInvalid order statusThe order is not in a valid status for this operation
3010DATA_NOT_FOUNDData not foundThe requested data could not be found
3017INVALID_SORT_COLUMNInvalid sort columnThe specified column is not allowed for sorting
3018REFUND_WINDOW_EXPIREDRefund window expiredThe refund period for this order has expired

Payment errors (4000-4099)

CodeAPI CodeMessageDescription
4001PAYMENT_GATEWAY_REQUIREDPayment gateway requiredA valid payment gateway must be provided
4002PAYMENT_FAILEDPayment failedThe payment could not be processed
4003INVALID_PAYMENT_AMOUNTInvalid payment amountThe payment amount is invalid or does not match the order total
4004PAYMENT_GATEWAY_NOT_SUPPORTEDPayment gateway not supportedThe specified payment gateway is not supported by this store
4005PAYMENT_GATEWAY_VALIDATIONPayment gateway validation failedThe payment gateway information provided is invalid or incomplete (e.g., missing phone for Nequi)

Gateway-specific errors (6000+)

These errors originate from the payment gateway itself. The response will include a gateway_name field.

Nequi errors

CodeAPI CodeDescription
6001NEQUI_PAYMENT_REJECTEDThe buyer rejected the payment in the Nequi app
6006NEQUI_TIMEOUTThe push notification expired before the buyer could approve it
6007NEQUI_INSUFFICIENT_FUNDSThe buyer does not have enough balance in their Nequi account

Daviplata errors

CodeAPI CodeDescription
6101DAVIPLATA_INVALID_DOCUMENTThe national ID or document type is not valid for Daviplata
6105DAVIPLATA_OTP_ERRORInvalid or expired OTP code

Server errors (5000-5099)

CodeAPI CodeMessageDescription
5002SERVICE_UNAVAILABLEService temporarily unavailableThe service is temporarily unavailable, please try again later
5003RATE_LIMIT_EXCEEDEDRate limit exceededToo many requests, please slow down and try again later
Gateway-specific errors (6000+) depend on the payment gateway and may include additional fields. Always check the gateway_name field to determine which gateway returned the error.