Subscription expired

SUBSCRIPTION_EXPIRED is sent when a soft-canceled subscription reaches the end of its paid-access period.

Expiration is a lifecycle notification, not a new subscription state. The subscription remains in CANCELLED; there is no EXPIRED subscription state. Use expiresAt as the entitlement cutoff.

createdAt is when Cashier recorded the expiration notification. Scheduler or processing delay means it can be later than expiresAt.

When this event is sent

  • A soft cancellation with a known access cutoff first produces Subscription canceled. When that cutoff is reached, SUBSCRIPTION_EXPIRED carries the cancellation's deactivatesAt value as expiresAt.
  • Non-renewing subscriptions are covered too: a subscription created without renewal, or entering its final non-renewing period, can emit this event when access ends.
  • Reactivation or immediate deactivation before expiration is recorded invalidates the pending notification for that cancellation. A later soft cancellation establishes a new cutoff for its expiration notification.
  • A cancellation without a known access cutoff does not produce this event. Subscriptions already canceled before this event was introduced do not automatically receive a retrospective notification.

Delivery and handling

This event is included in the subscription events group (SUBSCRIPTION_EVENT). It uses the URLs, signing secret, and retry settings already configured for that group; no separate event configuration is required.

Handle it separately from payment accounting. The payload contains subscription identifiers and the access cutoff, but no payment transactionId, status, amount, or currency. Delivery can be retried, so process duplicate notifications idempotently as described in the Webhooks guide.

Contract (? = optional)

{
  "type": "SUBSCRIPTION_EXPIRED",
  "state": "CANCELLED",
  "createdAt": "string (ISO 8601 date-time)",
  "expiresAt": "string (ISO 8601 date-time)",
  "projectId": "string",
  "externalUserId": "string",
  "subscriptionId": "string",
  "subscriptionProductPlanId": "string",
  "completedAt?": "string (ISO 8601 date-time) | null",
  "metadata?": {
    "<key>": "string"
  }
}

Example

{
  "type": "SUBSCRIPTION_EXPIRED",
  "state": "CANCELLED",
  "createdAt": "2025-10-03T06:00:04.000Z",
  "expiresAt": "2025-10-03T06:00:00.000Z",
  "projectId": "a1b2c3d4-e5f6-4a7b-8c9d-1e2f3a4b5c6d",
  "externalUserId": "b1c2d3e4-f5a6-4b7c-8d9e-2f3a4b5c6d7e",
  "subscriptionId": "c1d2e3f4-a5b6-4c7d-8e9f-3a4b5c6d7e8f",
  "subscriptionProductPlanId": "d1e2f3a4-b5c6-4d7e-8f9a-4b5c6d7e8f9a",
  "metadata": {
    "orderId": "order-123"
  }
}

For signature verification and delivery handling, see the Webhooks guide.