Events
subscription.canceled
Fired when a subscription is terminated, at period end or immediately. Revoke access here.
Cancellation lifecycle
A regular cancellation is scheduled for the end of the current billing period. Two events fire at different moments:Immediate terminations
Some terminations skip the schedule:subscription.canceled arrives right away, with no prior subscription.updated, and endDate is the moment of termination — not a billing period boundary.
POST /subscriptions/{id}/cancelwithimmediate: true. Cancellations of free plans and of subscriptions inpending_paymentorpast_duealso settle immediately — canceling inside the dunning grace window voids the unpaid renewal.- Exhausted dunning retries: fires with
cancelReason: "dunning_exhausted", alongsidepayment.retry_failed. - A trial without a payment method that ends without a card: fires with
cancelReason: "trial_ended_without_payment_method".
subscription.plan_changed fires.
Refunding a payment does not cancel its subscription. If you want both outcomes, request a cancellation separately. Older cancellation events triggered by refunds may have cancelReason: "refund".Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.