#Mytras

1 messages ยท Page 1 of 1 (latest)

obsidian saffronBOT
eager crane
#

Hi Tarzan!I hope you are well!

swift arrow
#

๐Ÿ‘‹ happy to help

#

I'm doing fine thanks, hau?

eager crane
#

doing great

#

thanks

swift arrow
#

what you're looking for is Subscription Schedules

eager crane
#

I created automations for schedule subscriptions, but never dealt with changing prices after a while

#

I can see that in phases there is a end_date parameter

#

which I assume I will need to put the Unix time for when I want that phase to end

#

how the new phase would than start?

#

Also, Can normal subscription have phases?

#

or only scheduled subscriptions?

swift arrow
swift arrow
eager crane
#

ok

obsidian saffronBOT
eager crane
#

but i do not see any iterations, what do you mean by that?

#

cause my idea would be to create a phase.0.start_date and a phase.0.end_date, than do the same for phase1

#

would that work?

burnt turtle
#

๐Ÿ‘‹ stepping in here

#

Iterations indicate how many billing cycles the phase should last for

eager crane
#

oh ok

#

Hey Bismark

burnt turtle
#

Hello

eager crane
#

whats the parameter for iterations?

eager crane
#

ok I have a couple of questions

#

the idea would be to set the first phase to stop after a certain amount of months, but phase 2 has to go indefinitively

#

is that possible?

burnt turtle
#

Yep

#

So you can just set phase 2 for 1 iteration and then you set the Subscription Schedule to end_behvaior: release

#

That will then remove the Schedule and keep the Subscription on that Price that is in phase 2 indefinitely

eager crane
#

so If I set:
"phases[0][iterations]"=12
means that phase 0 will go for 12 months

#

?

burnt turtle
#

If you are using a monthly Price then yes

eager crane
#

yes

#

i mean the payments are done monthls

#

monthly

#

so just to be sure the code would be like this:
"phases[0][items][0][price]"= price_xxxxx
"phases[0][iterations]"=12
"phases[1][items][0][price]"= price_yyyy

#

?

#

or i did something incorrectly?

burnt turtle
#

Yeah that looks right to me

#

Though you need iterations as well for phase 1

eager crane
#

oh how do I do it unlimited?

#

"phases[0][items][0][price]"= price_xxxxx
"phases[0][iterations]"= 12
"phases[1][items][0][price]"= price_yyyy
"phases[1][iterations]"= 1
"end_behaviour"= release

#

?

#

like this?

#

or end_behvaior: release needs to be for phase 1?

burnt turtle
#

end_behavior is top level like you have it

#

Yep all that looks right

#

I'd test it out

#

Using a test clock

eager crane
#

what's that?

burnt turtle
eager crane
#

can I change product during iterations?

#

sorry i missspoke

burnt turtle
#

No you would need a new phase to change your Price

eager crane
#

i meant, can I change items in different phases?

#

like
phase 0 prod_xxx
phase 1 prod_yyy?

burnt turtle
#

Yep

eager crane
#

ok Ill test it out and contact you again if needed

#

thank you so much for you help