> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paymend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Failure Codes

> Complete list of Paymend failure codes and their descriptions

The following table lists all possible `failureCode` values that may be returned in the `failure` object when a payment or refund fails.

## Failure Codes

| Failure Code | Description |
| :- | :- |
| `ACCOUNT_AUTHENTICATION_FAILED` | CVV/PIN provided was incorrect or invalid |
| `ACCOUNT_CLOSED` | Consumer's account has been closed |
| `ACCOUNT_NUMBER_INVALID` | Consumer's account (eg. identified by card PAN) or issuing bank has not been recognized or does not exist |
| `BLOCKED_BY_PAYMEND` | Payment blocked by Paymend, do not retry for at least 30 days. Exception: with `providerFailureCode: UNDER_MAINTENANCE`, the API is under maintenance and no payment was created; retry later |
| `CARD_BLOCKED` | Card reported as lost or stolen |
| `CARD_EXPIRED` | Card has expired |
| `CARD_RESTRICTED` | Card has been restricted |
| `DO_NOT_HONOR` | Transaction declined by issuer without providing a specific reason |
| `EXCEEDS_AUTHORIZED_AMOUNT` | Value of capture request exceeds authorized amount |
| `EXCEEDS_CAPTURED_AMOUNT` | Value of refund request exceeds captured amount |
| `FORMAT_ERROR` | Error found in the format of the request |
| `GENERIC_DECLINE` | Generic issuer decline |
| `INACTIVE_MERCHANT` | Merchant is not active and cannot create new payments. |
| `INACTIVE_STORE` | Store is not active and cannot create new payments. |
| `LIMIT_EXCEEDED` | Merchant has reached its monthly processing limit. New payments are accepted again from the 1st of next month (UTC). |
| `INSUFFICIENT_FUNDS` | There are not enough funds available in the consumer's account to authorize the transaction |
| `INVALID_AMOUNT` | Transaction amount marked as invalid |
| `INVALID_MERCHANT` | Merchant is not recognized for this API key. |
| `INVALID_REQUEST` | The requested operation isn't allowed for this payment. Returned with HTTP `400` when you capture, void or refund a [card validation](https://docs.paymend.com/create-payments.md#card-validation-amount-0) (a payment created with amount `0`); the payment stays `AUTHORIZED`. |
| `INVALID_STORE` | Store is missing, not recognized, or does not belong to the merchant |
| `INVALID_TRANSACTION` | Transaction marked as invalid |
| `PARTIAL_REFUND_UNAVAILABLE` | Partial refund is not available for this payment until 72 hours after the payment was created. Refund the full amount, or retry the partial refund after 72 hours. If you receive this code again, retry later |
| `PAYMENT_METHOD_NOT_SUPPORTED` | Payment method (or card brand) is not supported by Paymend |
| `REFUND_IN_PROGRESS` | Returned with HTTP `409`: a previous refund on this payment is still pending. A new refund is accepted once the pending one is resolved; if refunds are still blocked after 24 hours, contact support (see [If the refund outcome is not yet known](https://docs.paymend.com/manage-payments.md#if-the-refund-outcome-is-not-yet-known)) |
| `REFUND_TEMPORARILY_UNAVAILABLE` | Refund could not be processed right now. Retry in a few minutes |
| `ROUTING_ERROR` | No route could be found to process the transaction |
| `SECURITY_VIOLATION` | Transaction declined due to security or legal violation |
| `SUSPECTED_FRAUD` | Transaction declined due to suspicion of fraud |
| `TRANSACTION_NOT_PERMITTED` | Transaction not permitted |
| `UNKNOWN_FAILURE` | Cause of failure is not yet mapped |
| `PROVIDER_UNAVAILABLE` | Provider did not respond to the request. Also returned with HTTP `503` when a pre-processing check on Paymend's side cannot be completed or our processing service is briefly unavailable; retry the payment after a short wait |
| `PROVIDER_PROCESSING_ERROR` | Provider experienced an error when attempting to process the transaction. Also returned with HTTP `503` when a pre-processing check on Paymend's side cannot be completed; retry the payment after a short wait |
| `INTERNAL_SERVICE_UNAVAILABLE` | A Paymend service did not respond to the request |
| `INTERNAL_PROCESSING_ERROR` | Paymend experienced an error when attempting to process the transaction |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.