#alvin_63959

1 messages ยท Page 1 of 1 (latest)

dense stirrupBOT
#

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.

indigo dragon
#

Hi there!

#

what's your question?

winter moth
#

I think 202.40 then 53.90 right away right?

#

If I set the proration behaviour to none

atomic apex
#

What are you trying to achieve, exactly?

winter moth
#

subscription downgrade schedule

#

ok my question probably is, after successful subscription can I delete the existing schedule because when I try to create again the schedule it says it has an existing subscription schedule

#

Stripe.StripeException: 'You cannot migrate a subscription that is already attached to a schedule: sub_sched_1OKh94GFC7Ks3wO6Tt2sXk8H.'

winter moth
#

what is the purpose of the EndBehaviour = "Release"

atomic apex
#

It's going to be released when the last phase ends.

winter moth
#

so if the last phase is continous like it is a subscription monthly, so I have to call the release endpoint to manually release its attached schedule?

atomic apex
#

I think you still need to specify end date or interations

winter moth
#

but I already specified here ah

atomic apex
#

Ok, then it will end after 2 iterations.

winter moth
#

when you say it will end after 2 iterations meaning subscription schedule is released?

atomic apex
#

After 2 iterations the Subscription Schedule will either release or cancel. Since you set end_behavior: "release", the Subscription Schedule will be released and continue iterating as a normal Subscription

winter moth
#

okay because I still see this exception
Stripe.StripeException: 'You cannot migrate a subscription that is already attached to a schedule: sub_sched_1OKh94GFC7Ks3wO6Tt2sXk8H.'

even though I already specified it end_behavior = "release"

#

so when I try to manually release it, it says
Stripe.StripeException: 'You cannot release a subscription schedule that is currently in the released status. It must be in not_started, active status to be released.'

atomic apex
dense stirrupBOT
winter moth
#

subscription schedule Id = sub_sched_1OIBgQGFC7Ks3wO6oqQt9RaZ

subscriptionId =
sub_1OIBeXGFC7Ks3wO6JP4HOGDc

silk nacelle
#

๐Ÿ‘‹ stepping in here as vanya needs to step away

#

That Sub still has an active schedule currently, no?

#

You can't change the schedule until after it has released, meaning the phases have concluded.

winter moth
#

by right it should not have an active schedule because I already set the end_behavior = "none"

#

second phase was set to iterations = 2

#

I specified the end date at the first phase

#

when will it be released?

silk nacelle
#

I don't think you are looking at the right Schedule

#

I'm not seeing you set iterations anywhere

#

Which just attaches it to the Subscription

#

And it will release at the end of the current phase

#

Which looks to be in about an hour

#

Ah

#

I see the confusion

#

That Subscription had the Schedule you referenced above previously attached

#

That was then released

#

But since then you created a new Schedule in the request I linked above

#

Which is why you see that error

winter moth
#

question is why it wasn't released after successful change of subscription?

silk nacelle
#

I can't access that link above

#

But I just told you -- it was released

#

Then you created a new one

winter moth
#

ohh so it is a new subscription schedule then?

silk nacelle
#

Yes

winter moth
#

I see okay okay will try that again ah,

silk nacelle
#

๐Ÿ‘

winter moth
#

thanks for your help