Adds support for scheduling Subscription cancellation as part of pending update
What’s new
You can now cancel a Subscription at the end of a billing period as part of a pending update that applies when payment on an Invoice succeeds.
The cancel_at_period_end property is a nullable Boolean added to pending_update for a Subscription. It indicates whether the subscription will cancel at the end of the current billing period when the pending update applies.
Impact
You can now pass cancel_ when you update a subscription with payment_behavior set to pending_. This combination previously returned an error. If a subsequent update includes a conflicting cancel_ value, Stripe expires the existing pending update.
If the payment fails or requires customer action, Stripe stores the setting in the pending_ hash. After successfully applying the update, Stripe cancels the subscription after the period ends.
Changes
| Parameter | Change | Resources or endpoints |
| cancel_at_period_end | Added |
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include
Stripe-Version: 2026-09-30.endive
- If you don’t use an SDK, update your API requests to include
- Upgrade the API version used for webhook endpoints.
- Test your integration against the new version.
- If you use Connect, test your Connect integration.
Learn more about Stripe API upgrades.
Related changes
- Unifies the billing cycle anchor format across Subscriptions and Invoices
- Adds invoicing rules to Invoice Items
- Adds reference and company details parameters for Billie
- Adds the ability to clear invoicing rules on Invoice Items
- Adds proration details for Invoice Items using classic billing mode
- Makes trial offers generally available
- Adds detailed status to explain why an invoice is uncollectible
- Adds the ability to pause and resume Subscriptions on demand
- Adds the Feedback Options API