How to cancel a Stripe subscription: now, at period end, or via portal
To cancel a Stripe subscription, open it in the Dashboard, choose Cancel subscription, and pick immediately, end of period or a custom date. In the API, set cancel_at_period_end=true to let the customer finish the time they paid for, or call the cancel endpoint to end it now. Customers can also cancel themselves in the Stripe customer portal, which has cancellation turned on by default.
Which one to use depends on whether the customer should keep access, whether you owe a refund, and whether usage is still unbilled. The steps and caveats below come from Stripe's cancel subscriptions guide, read on 29 November 2026.
Pick the cancellation type first
| Type | What happens | Use it when |
|---|---|---|
| Immediately | Subscription ends now; no more invoices | Refund requests, fraud, a customer who wants out today |
| At period end | Customer keeps access until the paid period ends, then it cancels | Normal self-serve churn; the default kind thing to do |
Custom date (cancel_at) | Ends at a timestamp you set; may create prorations | Contract end dates, a promised last day |
| After N periods (schedule) | A subscription schedule with end_behavior: cancel ends it | Fixed-length plans, such as a 12-month commitment |
Default to period end. The customer paid for the month, and Stripe lets you undo a period-end cancellation up to the last moment. An immediate cancellation cannot be reversed; you would have to create a new subscription.
Cancel in the Dashboard
- Open the Subscriptions page and find the subscription.
- Click the overflow menu and select Cancel subscription.
- Choose when it ends: immediately, at the end of the period, or on a custom date.
- Choose a refund option: a prorated refund, a full refund of the last payment, or none.
- Click Cancel subscription to confirm.
Stripe's docs flag one trap: if you set a custom cancel date, you cannot give a refund from that flow.
Cancel with the API
At period end:
curl https://api.stripe.com/v1/subscriptions/sub_123 \
-u "sk_test_...:" \
-d cancel_at_period_end=true
Immediately:
curl -X DELETE https://api.stripe.com/v1/subscriptions/sub_123 \
-u "sk_test_...:"
On a set date, pass a Unix timestamp:
curl https://api.stripe.com/v1/subscriptions/sub_123 \
-u "sk_test_...:" \
-d cancel_at=1798761600
For an immediate cancel partway through a paid period, the cancel endpoint accepts prorate to credit unused time and invoice_now to issue a final invoice straight away. With metered billing, Stripe says that cancelling without proration discards all metered usage. Prorate and invoice now if you want to bill the usage recorded so far. The setup for metered prices is in how to set up usage-based billing with Stripe Meters.
Let customers cancel in the portal
The Stripe customer portal has cancellation enabled by default. In the portal settings page you can also:
- Collect a reason. Stripe offers a fixed list, from "It's too expensive" to "I found an alternative" and "Other reason" with free text.
- Offer a retention coupon. Under the Cancellations section, pick a coupon to show when someone tries to cancel.
- Send customers straight to the cancel screen with a portal deep link.
Stripe notes that the portal handles period-end cancellation differently depending on the subscription's billing mode, so test the flow in a sandbox before you link to it from your app. If you do add a retention coupon, the post on Stripe coupons vs promotion codes explains which object to create.
Undo a scheduled cancellation
A subscription set to cancel at period end can be kept. In the Dashboard, open it and choose Don't cancel from the overflow menu. In the API, update cancel_at_period_end to false. Once a subscription is actually canceled, Stripe says you cannot reactivate it; you create a new one.
What your app should listen for
Remove access when Stripe reports that the subscription has ended, which may be weeks after the customer clicked cancel. Stripe sends:
customer.subscription.updatedwhencancel_at_period_endis set, so you can show "Your plan ends on..." in the app.customer.subscription.deletedwhen the subscription actually cancels, either right away or when a period-end cancellation arrives.
Use the second event to remove access. If you have not wired up webhooks yet, how to test Stripe webhooks locally covers the loop.
Cleanup checklist after a cancel
- Pending invoice items can still be billed if the cancel creates a final invoice or the customer has another active subscription. Delete them manually if they should not be charged.
- Open and draft invoices on the canceled subscription have automatic collection paused, so reminder emails stop. You can still collect payment on them manually.
- If you owe the customer money, Stripe's guide says credits go to the customer balance. To return cash, issue a refund and then set the balance back to zero.
- Subscriptions also cancel on their own after up to eight failed payment attempts; you set the number in billing settings. How to handle failed payments in a SaaS covers that side.
Frequently asked questions
What is the difference between canceling now and at period end in Stripe?
Canceling now ends the subscription immediately and stops invoices. Canceling at period end sets cancel_at_period_end so the customer keeps access until the paid period ends, and you can reverse it until then.
Can I reactivate a canceled Stripe subscription?
No. You can stop a scheduled cancellation before it happens, but once a subscription is canceled you have to create a new one.
Does canceling a Stripe subscription refund the customer?
Not automatically. In the Dashboard you choose a prorated refund, a full refund of the last payment, or none. Through the API, prorate creates a credit, and you refund it separately if you want to return money.
Which webhook tells me a Stripe subscription was canceled?
customer.subscription.deleted. It fires when the subscription actually ends, including when a period-end cancellation takes effect.