#ninjaparade

1 messages ยท Page 1 of 1 (latest)

zealous nicheBOT
scenic furnace
#

Hello

thorn vault
#

๐Ÿ‘‹

scenic furnace
#

Yep the general best practice is once a Sub is managed by a Schedule, you make any/all updates to the Sub by updating the Schedule itself

thorn vault
#

OK so in this situation we have the schedule for the first year, then recurring on the next price until cancelation and we have to set to release once done, assuming that since we don't have a max iterations on the second step of the schedule, the schedule will always be attached to this subscription?

scenic furnace
#

Yes that's correct. If your second phase doesn't have iterations or an end_date set then it will go on indefinitely

thorn vault
#

would it be best practice to do that then? and have it set to release?

#

the goal is to set them on to the next price id and then release it

scenic furnace
#

Mostly up to you, but yes that is likely easier

#

Then you can make future updates to the Subscription itself instead of the Schedule

thorn vault
#

ya I want to drop the need to manage the schedule when its no longer needed

scenic furnace
#

Which is generally simpler to do

thorn vault
#

ya thats why I am asking cause currently it requires two different API approaches

scenic furnace
#

Yeah overall that will be the case here

thorn vault
#

OK thanks

thorn vault
#

assuming the default behaviour is "release" this should work once the second year is done, the sub should be no longer there correct?

scenic furnace
#

Yep

#

You can test this with a Test Clock as well

thorn vault
#

oh good call

#

so the question I do have

#

is if I were to cancel the underlying subscription would the schedule terminate?

scenic furnace
#

Yes I believe so

#

Haven't tested that in a while but pretty sure that's the case

#

Should be pretty easy to test as well

thorn vault
#

right that's what would make sense to me, I am just thinking through what it would work like, because I feel like I can completely avoid the schedule, since if I terminate, reactivate the subscription the schedule won't over ride that

scenic furnace
#

Hmm not sure what you mean exactly? If you cancel a Subscription, you can't "reactivate" it. You would have to create a new Subscription

thorn vault
#

rigth I just mean you can set it to not cancel, reomving that cancelatin

scenic furnace
#

Ah I see

#

You mean if you set to cancel in the future

#

Like at period end

thorn vault
#

yes

#

our plans are yearly, so a cancelation would let it set to not renew but there is time to recover from there

scenic furnace
#

Yep

thorn vault
#

thanks ytou can close this

scenic furnace
#

๐Ÿ‘