# `PolarExpress.Schemas.WebhookSubscriptionUpdatedPayload`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/schemas/webhook_subscription_updated_payload.ex#L2)

WebhookSubscriptionUpdatedPayload

Sent when a subscription is updated. This event fires for all changes to the subscription, including renewals.

If you want more specific events, you can listen to `subscription.active`, `subscription.canceled`, `subscription.past_due`, and `subscription.revoked`.

To listen specifically for renewals, you can listen to `order.created` events and check the `billing_reason` field.

**Discord & Slack support:** On cancellation, past due, and revocation. Renewals are skipped.

# `t`

```elixir
@type t() :: %PolarExpress.Schemas.WebhookSubscriptionUpdatedPayload{
  data: PolarExpress.Schemas.Subscription.t() | nil,
  timestamp: DateTime.t() | nil,
  type: String.t() | nil
}
```

* `data`
* `timestamp` - Format: date-time.
* `type`

# `schema_name`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
