#alex.esch
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi ๐ what help or guidance are you looking for?
hello toby
customer have a subscription (plus)
we want to upgrade him to another subscription (premium), for free, for one month
after this month, we will decide if roll him back to plus, or leave him on premium
as far i have understood, i have to use schedule subscriptions for it, right?
What is the correct flow for everything to work as I described?
Yup, Subscription Schedules are likely the best fit for that if you want to schedule all of this to happen in the future.
You'll need to create a Subscription Schedule from the existing Subscription
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
then update the Subscription Schedule so it's phases align with the behavior you're after.
https://stripe.com/docs/api/subscription_schedules/update
well
i'm trying to create a new schedule subscription
but i'm getting
You cannot set phases if from_subscription is set.
Yup, you can't create and update simultaneously. That needs to be two separate requests
sorry, what do you mean?
first, i'll need to create subscription schedule without phases but with from_subscription?
and after that, add phases?
Yup
You make one request to create the Subscription Schedule from the Subscription, then a subsequent request to update the Subscription Schedule and adjust the phases that were created to match the flow you want to see.
one last question
in this case
i have an existing subcription (reference is saved in my db)
- i'll add a new scheduled subscription
- i'll update new scheduled subscription with phases
in case the user will remain on update subscription, the reference to stripe id will be the same?
in case of downgrade to previous subcription, i only need to cancel the scheduled subscription?
Creating a Subscription Schedule is not creating a new Subscription. The Subscription Schedule is used to drive future changes to the associated Subscription object, so you can schedule changes. If you want to downgrade back to the Price that the Customer was previously subscribed to, then you will adjust the Subscription Schedule's phases so that it causes a downgrade at the desired time.