Skip to main content

Error Codes

This page documents all error codes returned by the LuxCore API, along with their meanings and recommended solutions.

Error Response Format

All errors follow a consistent JSON format:

HTTP Status Codes

Payment Error Codes Quick Reference

The following error codes can be returned in the error_code field when a payment fails:
Recoverable errors (✅) can typically be resolved by waiting and retrying, or by fixing the request data. Non-recoverable errors (❌) require configuration changes or using different parameters.

Authentication Errors

INVALID_API_KEY

MISSING_API_KEY

INSUFFICIENT_SCOPES

Payment Errors

INSUFFICIENT_BALANCE

MISSING_REQUISITES

NO_AVAILABLE_REQUISITES

INVALID_METHOD

INVALID_WITHDRAWAL_DATA

UNSUPPORTED_CURRENCY

WITHDRAWAL_NOT_SUPPORTED

MERCHANT_REFERENCE_DUPLICATE


Payment Status Errors

METHOD_NOT_AVAILABLE

INVALID_AMOUNT

INVALID_CURRENCY

PAYMENT_NOT_FOUND

PAYMENT_ALREADY_PROCESSED

INVALID_CLABE

INVALID_CVU

INVALID_BSB

INVALID_PAYID

PAYID_NOT_FOUND

PAYOUT_DETAILS_REQUIRED

Webhook Errors

WEBHOOK_NOT_FOUND

INVALID_WEBHOOK_URL

WEBHOOK_DELIVERY_FAILED

Rate Limit Errors

RATE_LIMIT_EXCEEDED

Rate Limits:

Validation Errors

VALIDATION_ERROR

Server Errors

INTERNAL_ERROR

SERVICE_UNAVAILABLE

Error Handling Best Practices

Log All Errors

Log error responses with request IDs for debugging

Retry with Backoff

Implement exponential backoff for 429 and 5xx errors

Validate Before Sending

Validate inputs client-side before API calls

Handle Gracefully

Show user-friendly messages, not raw API errors

Example Error Handler