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. This clears both cancel_at_period_end and cancel_at flags.
The subscription continues renewing as normal.
Returns 400 Bad Request if no scheduled cancellation exists. Check cancel_at_period_end or cancel_at on the subscription before calling.
Cancel a pending plan change
If a subscription has a pending plan change scheduled for period end (via effective_at: "period_end" on the change-plan endpoint), cancel it before it applies.
Response:
If no pending change exists, the response returns status: "not_found" with an empty cancelled_items array.
When to use each approach
Cancellation is irreversible. To restart billing for a cancelled customer, create a new subscription.