Most AI projects fail. Yours doesn’t have to.
Reserve your spot today and get a production-ready Agent Blueprint in just 3 weeks
6
spots‍
‍available
Register for Your Agent Blueprint
About
Capabilities
Custom AgentsReliable RAGCustom Software DevelopmentEval Driven DevelopmentObservability
LangChainCase StudiesFocused Lab
Talk to a builder
Blog

Cancelling a Stripe Subscription On 'Period End'

Stripe's documentation on cancelling a subscription at period end isn't entirely current. Instead of the documented approach, you need to update the subscription schedule phases and set end_behavior to cancel. Here's the workaround.

Jan 17, 2021

By
Focused Team
Share:
Close-up of hands typing on a smartphone with an on-screen keyboard

Stripe's documentation on cancelling a subscription at the end of a period isn't entirely up to date.

https://stripe.com/docs/billing/subscriptions/cancel

For cancelling at end of period, the docs say to do the following:

Easy enough, right?

WRONG.

When actually doing this we were getting the following error:

After contacting stripe support, if you wish to cancel at the period end you need to do the following:

  1. Update phases on subscription schedule object to pass only current phase.
  2. Set end_behavior to 'cancel'

Links:

https://stripe.com/docs/billing/subscriptions/subscription-schedules#updating

https://stripe.com/docs/api/subscription_schedules/update?lang=ruby

Your message has been sent!

We’ll be in touch soon. In the mean time check out our case studies.

See all projects

We’ll use the information you provide to respond to your enquiry. Learn more about how we handle your personal data in our Privacy Policy.

/Contact Us

Let's Build better Agents Together

Modernize your legacy with Focused

Get in touch
ABOUTLeadershipCapabilities
433 W Van Buren St
Suite 1100-C

Chicago, IL 60607

WorkFocused LabOur Process
work@focusedlabs.io

(708) 303-8088
PartnershipsHoneycomb PartnerCareersAgent AcademyContact
FacebookLinkedinX
433 W Van Buren St
Suite 1100-C

Chicago, IL 60607

work@focusedlabs.io

(708) 303-8088
See partnership
© 2026 Focused. All rights reserved.
Privacy Policy