Error Codes

Complete reference of API error codes and their meanings

HTTP Status Codes

StatusMeaningAction
200SuccessRequest completed successfully
201CreatedResource created successfully
400Bad RequestCheck request parameters
401UnauthorizedCheck API credentials
403ForbiddenInsufficient permissions
404Not FoundResource does not exist
409ConflictIdempotency key already used
422UnprocessablePayment-specific error (e.g., declined)
429Too Many RequestsWait and retry with backoff
500Server ErrorRetry with idempotency key

Payment Error Codes

CodeDescriptionRetry?
card_declinedThe card was declined by the issuerNo
insufficient_fundsThe card has insufficient fundsNo
expired_cardThe card has expiredNo
invalid_card_numberThe card number is invalidNo
invalid_cvcThe CVC code is incorrectNo
authentication_required3DS authentication is requiredYes, with 3DS
processing_errorError during payment processingYes
provider_unavailablePayment provider is temporarily unavailableYes

Validation Errors

CodeDescription
invalid_amountAmount is invalid or below minimum
invalid_currencyCurrency code is not supported
missing_required_fieldA required field is missing
invalid_countryCountry code is not supported