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

# Dunning

## **Overview**

Dunning is the process of recovering failed subscription payments. When a recurring payment fails (for example, due to an expired card, insufficient funds, or a temporary bank issue), dunning automatically retries the charge and notifies the customer so they can update their payment method before access is interrupted.

Metrifox ships with a **default dunning preset** that:

* Automatically retries failed auto-collect payments up to 3 times over a 7-day window.
* Pauses the subscription during retries attempts.
* If recovery is unsuccessful, leaves the invoice overdue and cancels the subscription.

You can use the default preset as-is, or create your own presets and apply them per product.

## **Creating a Dunning Preset**

Dunning presets are managed globally and can be reused across products.

1. Navigate to **Settings → Dunning management**.

2. Click **New dunning preset**.

   <img src="https://mintcdn.com/metrifox/FasFSN2gUhQ8t6zx/images/dunning/new_dunning_preset.png?fit=max&auto=format&n=FasFSN2gUhQ8t6zx&q=85&s=720d4c6a6a699d51f49ead37df7b8fe3" alt="New dunning preset" title="New dunning preset" style={{ width:"73%" }} width="1790" height="1102" data-path="images/dunning/new_dunning_preset.png" />

3. Configure the preset:

   * **Name**: A clear, descriptive name (e.g., "Standard card retries").
   * **Retry failed auto-collect payments**: When enabled, Metrifox will attempt to collect payment again if the initial attempt fails.
   * **Enable Metrifox smart retries**: Metrifox uses a smart algorithm to optimize retry timing and increase collection success rates.\
     Available when: **Retry failed auto-collect payments** is enabled.
   * **Define card payment retry schedule**: Manually configure how many days to wait between each retry, up to a maximum of **8 retries**.\
     Available when: **Retry failed auto-collect payments** is enabled and **Smart retries** is disabled.

   <img src="https://mintcdn.com/metrifox/FasFSN2gUhQ8t6zx/images/dunning/configure_dunning.png?fit=max&auto=format&n=FasFSN2gUhQ8t6zx&q=85&s=8f4def9284da768ab98ed0522bb91834" alt="Configure dunning" title="Configure dunning" style={{ width:"73%" }} width="1882" height="1328" data-path="images/dunning/configure_dunning.png" />

   <img src="https://mintcdn.com/metrifox/FasFSN2gUhQ8t6zx/images/dunning/card_payment_retry_schedule.png?fit=max&auto=format&n=FasFSN2gUhQ8t6zx&q=85&s=400239597d27ed787a7d045e1d6a790a" alt="Card payment retry schedule" title="Card payment retry schedule" style={{ width:"73%" }} width="1786" height="930" data-path="images/dunning/card_payment_retry_schedule.png" />

4. Set what happens **during recovery attempts**:
   * **Pause subscription** — the customer loses access until payment succeeds.
   * **Keep active until manually cancelled** — the customer keeps access while retries run.

5. Set what happens **if recovery attempts fail**:
   * **Subscription outcome**: choose one of
     * **Cancel subscription**
     * **Keep active after dunning**
     * **Pause subscription after dunning fails**
   * **Invoice outcome**: choose one of
     * **Mark as written off**
     * **Leave overdue**
     * **Leave overdue for a specific number of days**

6. Click **Save** to store the preset.

7. (Optional) Click **Mark as default** to make this the default dunning preset for new products.

You can also **edit** or **archive** existing presets from the Dunning management list.

## **Applying Dunning to a Product**

Each product uses the global default dunning preset unless you override it.

1. Open the product you want to configure.
2. Open the **Dunning** setting on the product.
3. Select any preset created under **Settings → Dunning management**. The default preset is selected automatically.

   <img src="https://mintcdn.com/metrifox/FasFSN2gUhQ8t6zx/images/dunning/product_dunning.png?fit=max&auto=format&n=FasFSN2gUhQ8t6zx&q=85&s=fec7854fe0fe607f36b9954cf8f96069" alt="Product dunning" title="Product dunning" style={{ width:"73%" }} width="1854" height="822" data-path="images/dunning/product_dunning.png" />

**Important Notes**

* Smart retries and a custom retry schedule are mutually exclusive — only one can be active at a time.
* The maximum number of manual retries is **8**.
* Changing the default preset does not retroactively change products already using a different preset.
