#piq9117
1 messages · Page 1 of 1 (latest)
When creating a subscription schedule you set end_behavior as release , the APIs keep the subscription going even after the schedule phases have passed (like the total iterations in the phases or the end_date)
That's where the subscription schedule "releases" the subscription
You can also just use the Release API endpoint to release subscription from a schedule
https://stripe.com/docs/api/subscription_schedules/release
oh. gotcha. so to avoid this error
You cannot update a subscription schedule that is currently in the released status. It must be in not_started, active status to be updated.
Do I also need to update the status to active?
This means that the subscription schedule has been released already. You can't update the schedule after it has been released
You'd need to create a new subscription schedule
so in my case, i was trying to update the quantity and I got this error.
are you trying to update quantity on the subscription?
yeah. then i got the error
any specific reasons you're updating the quantity on a subscription schedule (specifically the ones that's released already)?
You can directly call update subscriptions API for this
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
You can either update the subscription or the Subscription Item individually
https://stripe.com/docs/api/subscription_items/update
no specific reason. the flow was like this, my test user scheduled a subscription to be updated into another subscription. Then when it got updated, I tried to update the quantity and got the error. It sounds like I updated the schedule instead of the subscription? is that what happened?
Yes