#varovas
1 messages · Page 1 of 1 (latest)
Hi
What is your question?
I need more clarity on iterations for scheduled subscription. I did not really understood how it works. And how much should I iterations if I am going to schedule a subscription update for a future
I mean if the scheduled update will remain until subscription lifetime
Bit of a broad question! Is there a specific use case you're trying to account for? Can you give an example of what you are trying to achieve?
But in general once the Subscription Schedule finishes (all phases are achieved) you have two options:
releasewill end the subscription schedule and keep the underlying subscription runningcancelwill end the subscription schedule and cancel the underlying subscription.
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior
Ok, I will explain what am I doing 😄
SO for example user has subscription with 2 prices.
- Users x 2 - 10 euro each = 20 Eur.
- Module x 1 - 20 euro each = 20 Eur.
And now user downgrades to only one user. So I want that 2 users must be in a subscription until the new billing cycle. And for that I want to create scheduled update, so on the next billing cycle, customers subscription should change to
- Users x 1 - 10 euro each = 10 Eur.
- Module x 1 - 20 euro each = 20 Eur.
So I want that 2 users must be in a subscription until the new billing cycle. And for that I want to create scheduled update, so on the next billing cycle, customers subscription should change to
So you update the next phase with quantity 1 for Users price
What you mean by iterations? you need to add/update the next phase and update the iteration of the current phase.
I dont know if I understand iterations correctly. Iterations is user for to set how long schedule update will last? I mean if I will set users quantity to 1 and iterations to 2. That user qty 1 update will last for 2 months?
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
It depends on the price. If the price is monthly, 1 iteration is 1 month. That's a period for which this phase will last.
What if I want a permanent change?
Then you specify iterations: 1, and end_behavior: release: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior
By setting iterations to 1 and end_behavior to release, scheduled update will remain for a subscription lifetime?
Thank you very much!
Happy to help. Please, let me know if you have any other questions.
Oh, I remembered
To update take effect on the next billing cycle, I need to set start_date to current subscription current_period_end?
Yes
Ok, thank you
Sure!