OuiPay
Errors

API error codes

Machine-readable error.code values for external API clients.

Error envelope:

{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key.",
    "request_id": "OUI-REQ-01M2S18..."
  }
}

Authentication and access

error.codeHTTPMeaning
MISSING_API_KEY401No Bearer / X-Api-Key credential
INVALID_API_KEY401Unknown or inactive key
KEY_REVOKED401Key revoked
API_KEY_EXPIRED401Key past expires_at
PUBLIC_KEY_NOT_ALLOWED403pk_* used on a server route
IP_DENIED403Source IP not allowlisted
FEATURE_DISABLED403Developer feature is off
OWNER_ACCOUNT_REQUIRED403App has no usable owner account
DEVELOPER_OPT_IN_REQUIRED403Developer access not enabled

Other common codes

error.codeHTTPMeaning
VALIDATION_ERROR400Request failed validation
NOT_FOUND404Unknown resource
RATE_LIMITED429Too many requests

Always log request_id when contacting support.