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

> Event triggered when a subscription renewal is paid.

> [!WARNING]
>
> `subscription.renewed` is off by default. It will not be delivered until you enable it in Dashboard → Developer. See [Receiving Webhooks](https://docs.paywithsoap.com/api-reference/api-v1/webhooks/setup.md) for instructions.

Fired when Soap charged a subscription's renewal and the charge succeeded. The customer has paid up to `renewal.period_end`, and the next renewal is due at `subscription.next_billing_at`, which is null if you canceled the subscription while this renewal was being charged.

This event records a renewal that was paid. `renewal.status` and `subscription` are read when Soap builds the event, so a delayed event can carry `failed` if the payment was disputed or returned in between; [`subscription.renewal.failed`](https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed) is sent for that.

> [!NOTE]
>
> The renewal's charge also sends [`checkout.succeeded`](https://docs.paywithsoap.com/api-reference/api-v1/webhooks/checkout-succeeded), which is always sent. If you credit a balance on `checkout.succeeded`, every renewal credits it. Credit each payment once: on `checkout.succeeded` or on this event, not both.

## Payload Structure

```typescript theme={null}
interface WebhookEvent {
  event_id: string;
  data: {
    subscription: {
      id: string;
      customer: {
        id: string;
      };
      status: "incomplete" | "active" | "past_due" | "paused" | "canceled";
      interval: "day" | "week" | "month" | "year";
      interval_count: number;
      line_items: Array<{
        product_id: string;
        sku: string | null;
        product_name: string;
        product_url: string | null;
        quantity: number;
        price_cents: number;
        total_amount_cents: number;
      }>;
      line_items_total_amount_cents: number;
      current_period_end: string | null;
      next_billing_at: string | null;
      canceled_at: string | null;
      ends_at: string | null;
      paused_at: string | null;
      created_at: string;
    };
    renewal: {
      id: string;
      period_start: string;
      period_end: string;
      amount_cents: number;
      status: "paid" | "failed";
      checkout: { id: string } | null; // the renewal's checkout: data.id on its checkout.succeeded
      charge: { id: string } | null; // the renewal's charge: data.charge.id on its checkout.succeeded
    };
    created_at: string; // when the renewal was recorded
  };
  type: "subscription.renewed";
}
```

* Timestamps are ISO 8601.
* `subscription` has the same fields as [`GET /api/v1/subscriptions/{id}`](https://docs.paywithsoap.com/api-reference/api-v1/subscriptions/show), as they were when the event was created, except that the customer is `customer.id` instead of `customer_id`.

## Example Response

```json theme={null}
{
  "event_id": "ev_9QwErTy2UiOp3AsDfGh4JkLz5XcVbNm6",
  "data": {
    "subscription": {
      "id": "sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG",
      "customer": {
        "id": "cus_3Lm8Pz3Rt6Vb1Ys5JdCfE7Hn2Kq9WxaG"
      },
      "status": "active",
      "interval": "month",
      "interval_count": 1,
      "line_items": [
        {
          "product_id": "pr_8KpQmZ3xRyVnTsUcWjLaGdBh",
          "sku": "PREMIUM-MONTHLY",
          "product_name": "Premium Monthly Plan",
          "product_url": null,
          "quantity": 1,
          "price_cents": 2999,
          "total_amount_cents": 2999
        }
      ],
      "line_items_total_amount_cents": 2999,
      "current_period_end": "2027-01-18T15:02:00Z",
      "next_billing_at": "2027-01-18T15:02:00Z",
      "canceled_at": null,
      "ends_at": null,
      "paused_at": null,
      "created_at": "2026-11-18T15:00:41Z"
    },
    "renewal": {
      "id": "ren_4TgBnHy6UjMk7IkOl8PqAz2WsXe3DcRf",
      "period_start": "2026-12-18T15:02:00Z",
      "period_end": "2027-01-18T15:02:00Z",
      "amount_cents": 2999,
      "status": "paid",
      "checkout": {
        "id": "chk_twijxXgVFofj9mdnvzF7vhbJSZEhfUpC"
      },
      "charge": {
        "id": "ch_yRZcCGouimTgbz4thtrfbj2mh3ZT6vnz"
      }
    },
    "created_at": "2026-12-18T16:07:42Z"
  },
  "type": "subscription.renewed"
}
```


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