Cancel a subscription
Cancel immediately
Immediate cancellation terminates the subscription right away. No further invoices are generated.
Dashboard
API
- Go to Billing > Subscriptions in the sidebar
- Select the subscription to cancel
- Click Cancel subscription
- Choose Cancel immediately
- Select a refund option
- Confirm the action
The subscription transitions to Cancelled state. This is a terminal state and cannot be reversed.
Cancel at period end
Schedule the subscription to cancel at the end of the current billing period. The customer continues to have access until the period expires.
API
Python SDK
The subscription remains Active until the current period ends, then automatically transitions to Cancelled.
Cancel on a specific date
Schedule the subscription to cancel on a custom date. Use this for contract end dates or customer-requested future cancellations.
The subscription continues billing normally until the scheduled date, then cancels automatically.
Refund options
When cancelling, choose how to handle the customer’s payments:
Only invoices with licensed (non-metered) prices are eligible for refunds. Metered usage that has already been consumed is not refundable.
Preview a cancellation
Before confirming, preview the refund amount without applying any changes:
The response includes the calculated refund amount. No database changes or payment operations are performed.
Undo a scheduled cancellation
Remove a scheduled cancellation before it takes effect:
Cancel at period end
Cancel on date
The subscription continues renewing as normal.
When to use each approach
Cancellation is irreversible. To restart billing for a cancelled customer, create a new subscription.