Skip to main content
This document lists all payment error codes returned by the Axra Business Payments API. These codes appear in charge and refund responses when a payment fails.

Error Response Format

When a charge or refund fails, the response includes an error object:

Payment Error Codes

Card Errors

Authentication Errors

Processing Errors

Validation Errors

Transaction Errors

Configuration Errors

Catch-All


HTTP Error Codes

In addition to payment-specific errors, the API returns standard HTTP error codes:

400 Bad Request

Returned when the request is malformed or contains invalid data.
Common causes:
  • Missing required fields (amount, currency, card)
  • Invalid field values (negative amount, expired card date)
  • Invalid state transition (refunding a non-completed payment)
  • Checkout session expired or already completed
  • S2S charging not enabled for your business
  • Payment older than 180-day refund window
  • Too many payment attempts on a checkout session (rate limited to 5 per 15 minutes)

401 Unauthorized

Returned when authentication fails.
Common causes:
  • Invalid or missing x-api-key header
  • Expired JWT token
  • Invalid API key / secret combination
  • Business profile deactivated

404 Not Found

Returned when the requested resource does not exist.
Common causes:
  • Invalid payment ID
  • Payment belongs to a different business
  • Checkout session does not exist

409 Conflict

Returned when the operation conflicts with existing state.
Common causes:
  • Attempting to create a duplicate business profile

Disputes are not errors per se, but they have financial consequences: Dispute fees are non-refundable regardless of outcome. The best defense against disputes is:
  1. Use 3DS authentication (shifts fraud liability to issuer)
  2. Provide clear billing descriptors
  3. Respond to disputes promptly with evidence
  4. Maintain records of customer transactions and communication

Debugging Tips

  1. Look at isRetryable: Only retry when this is true. Retrying non-retryable errors wastes quota and may trigger rate limits.
  2. Use test cards: Test card numbers trigger specific error scenarios. See the API Reference for the full list.
  3. Review webhook delivery logs: Failed webhook deliveries are logged and visible in the Axra dashboard.
  4. Contact support: For unknown errors or persistent configuration_error, contact Axra support with the paymentId and transactionId.