# `PolarExpress.Events.SubscriptionRevoked`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/events/subscription_revoked.ex#L2)

Webhook event for `subscription.revoked`.

Sent when a subscription is revoked and the user loses access immediately.
Happens when the subscription is canceled or payment retries are exhausted (status becomes `unpaid`).

For payment failures that can still be recovered, see `subscription.past_due`.

**Discord & Slack support:** Full

The `data` field contains a `PolarExpress.Schemas.Subscription` struct.

# `t`

```elixir
@type t() :: %PolarExpress.Events.SubscriptionRevoked{
  data: PolarExpress.Schemas.Subscription.t(),
  timestamp: String.t(),
  type: String.t()
}
```

* `type` - Always `"subscription.revoked"`.
* `data` - The event payload. See `PolarExpress.Schemas.Subscription`.
* `timestamp` - ISO 8601 timestamp of when the event occurred.

# `event_type`

```elixir
@spec event_type() :: String.t()
```

Returns the event type string.

---

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