> ## 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

> Details about the cause of a failed payment

The `Failure` object contains failure codes which indicate why a payment has failed.

## Properties

| Field                 |   Type   | Description                                                           |   |
| :-------------------- | :------: | :-------------------------------------------------------------------- | - |
| `failureCode`         | `string` | Paymend-defined code indicating the reason for failure.               |   |
| `providerFailureCode` | `string` | **Optional** provider-defined code indicating the reason for failure. |   |

<Note>
  Details provided in the failure object can help you optimize your retrial strategy.
  The `failureCode` field aggregates provider responses so that you can base your internal logic on a single field.
  For card payments, we will pass the ISO-format code in `providerFailureCode` whenever it is received from our providers.
</Note>
