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

# subscription.renewal.failed

> Event triggered when a subscription renewal could not be paid.

> [!NOTE]
>
> `subscription.renewal.failed` is always sent and cannot be turned off.

Fired when a renewal's charge was declined or could not be attempted, and when the charge of a paid renewal is disputed or returned. `renewal.status` tells a retry notice from the end:

| `renewal.status` | Meaning |
| - | - |
| `pending` | Soap will charge the renewal again at `renewal.next_attempt_at`. The subscription reads `past_due` until then. |
| `failed` | No attempt is left. |

`renewal.status` is read when Soap builds the event, so a delayed event can carry a later status: `processing` once the next attempt has begun, or `failed` with the `renewal.next_attempt_at` of an attempt that has since run.

## Retries and cancellation

* A declined renewal is retried 1 day after the first decline, 3 days after the second and 7 days after the third: at most four attempts. Only a decline the processor may approve later is retried.
* When the last attempt is declined, Soap cancels the subscription at once and sends `subscription.canceled` with reason `payment_failed`.
* This event and `subscription.canceled` are sent separately and can arrive in either order. Read the subscription with [`GET /api/v1/subscriptions/{id}`](https://docs.paywithsoap.com/api-reference/api-v1/subscriptions/show) for its current state.
* Any other failure on the customer's side fails the renewal at once, and Soap cancels the subscription the same way 11 days after the renewal's first failed attempt.
* A failure on Soap's side (`renewal_error`, `payment_review_expired`) never cancels the subscription: it stays `past_due` until it is resolved. Contact Soap support.
* A disputed or returned renewal charge ends the subscription now, with `subscription.canceled` and that reason.
* A renewal being charged when you canceled is not retried. If it is declined, `subscription.renewal.failed` is not sent.

## Failure reasons

| `failure_reason` | Meaning |
| - | - |
| `charge_declined` | The charge was declined. `failure_message` is the processor's own message. |
| `payment_review_declined` | The renewal was declined in payment review. |
| `payment_review_expired` | Nobody decided the renewal's payment review in time. |
| `payment_method_not_chargeable` | You disabled the customer's payment method. |
| `customer_restricted` | The customer is restricted from making payments. |
| `renewal_error` | Soap couldn't attempt the charge. |
| `charge_disputed` | The customer disputed the renewal's payment. |
| `charge_returned` | The renewal's payment was returned. |

## Payload Structure

```typescript theme={null}
interface WebhookEvent {
  event_id: string;
  data: {
    subscription: {
      id: string;
      interval: "day" | "week" | "month" | "year";
      interval_count: number;
      status: "incomplete" | "active" | "past_due" | "paused" | "canceled";
      current_period_end: string | null;
      next_billing_at: string | null; // the next attempt while one is scheduled
    };
    renewal: {
      id: string;
      period_start: string;
      period_end: string;
      amount_cents: number;
      status: "pending" | "processing" | "failed";
      failure_reason: string; // see Failure reasons
      failure_message: string | null;
      next_attempt_at: string | null;
      checkout: { id: string } | null; // the checkout of the attempt this is about
      charge: { id: string } | null; // null when no charge was attempted
    };
  };
  type: "subscription.renewal.failed";
}
```

* Timestamps are ISO 8601.
* `subscription` is short: read [`GET /api/v1/subscriptions/{id}`](https://docs.paywithsoap.com/api-reference/api-v1/subscriptions/show) for the customer and line items.
* The event is not sent if the renewal was paid or voided before delivery.

## Example Response

```json theme={null}
{
  "event_id": "ev_2ZxCvBn3MaSdFg4HjKl5QwEr6TyUiOp7",
  "data": {
    "subscription": {
      "id": "sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG",
      "interval": "month",
      "interval_count": 1,
      "status": "past_due",
      "current_period_end": "2026-12-18T15:02:00Z",
      "next_billing_at": "2026-12-19T16:07:42Z"
    },
    "renewal": {
      "id": "ren_4TgBnHy6UjMk7IkOl8PqAz2WsXe3DcRf",
      "period_start": "2026-12-18T15:02:00Z",
      "period_end": "2027-01-18T15:02:00Z",
      "amount_cents": 2999,
      "status": "pending",
      "failure_reason": "charge_declined",
      "failure_message": "The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.",
      "next_attempt_at": "2026-12-19T16:07:42Z",
      "checkout": {
        "id": "chk_twijxXgVFofj9mdnvzF7vhbJSZEhfUpC"
      },
      "charge": {
        "id": "ch_yRZcCGouimTgbz4thtrfbj2mh3ZT6vnz"
      }
    }
  },
  "type": "subscription.renewal.failed"
}
```


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