#jcube_api

1 messages ¡ Page 1 of 1 (latest)

half siloBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1216626674620432404

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

surreal questBOT
warm veldt
#

Are you asking which webhook event will you receive on each case? It's customer.subscription.updated as the event you are already providing

covert patrol
#

No actually when I'm downgrading its done immediately. I want the downgrades to be applicable from next billing cycle.

#

When upgrading from a lower plan user should be charged immediately and upgraded to higher plan which is working fine.

#

Getting me or shall I rephrase?

warm veldt
#

Okie I see. If you want to somehow schedule the downgrading, I think you would want to look at Subscription Schedule

#

Just calling Update Subscription will always update immediately

covert patrol
#

Can Subscription schedules be applied to existing subscription?

#

Can achieve this same functionality using customer portal?

warm veldt
#

Yes you can take a Sub Schedule from a Subscription

#

Re customer portal no I don't think so

covert patrol
#

Hey @warm veldt Do you know how I can set the start in subscription schedule to be next billing cycle? I saw an example using 'now' to start immediately.

warm veldt
#

You probably want to see the current next billing cycle in Unix time,and then set it exact to that value

covert patrol
#

Okay I thought so.

#

Also one more question, what if there are conflicting schedules? By conflicting I mean one schedule is upgrading and one is downgrading?

warm veldt
#

The last schedule would overwrite so don't think there will be two

covert patrol
#

Are you sure? sorry to ask this lol

warm veldt
#

I believe so(?) But the best is to test in Test mode

#

Every Subscription only has 1 Schedule, and whichever update request come last will decide the latest "state" of the Schedule

covert patrol
#

Thank you!!

warm veldt
#

Yeah you should see the Subscription on Dashboard

covert patrol
#

Sorry I meant schedules?

warm veldt
#

Ah, you can see the Subscription and see if it mention anything about schedule (I think yes but don't remember exactly)