Skip to main content

Detecting scheduled cancellation

When a customer cancels, subscription.updated fires with status: "active" but canceledAt and endDate set. This tells you the subscription is still usable but ending soon. Show a notice like “your subscription will end on {endDate}” in your UI. Access should only be revoked when you receive subscription.canceled (status: "canceled").

Body

application/json
id
string
required
event
string
required
Allowed value: "subscription.updated"
timestamp
string
required
organizationId
string
required
mode
enum<string>
required
Available options:
live,
sandbox
apiVersion
string
required
data
object
required

Response

200

Return any 2xx status code to acknowledge receipt of the event.