#jcube_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Are you asking which webhook event will you receive on each case? It's customer.subscription.updated as the event you are already providing
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?
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
Can Subscription schedules be applied to existing subscription?
Can achieve this same functionality using customer portal?
Yes you can take a Sub Schedule from a Subscription
Re customer portal no I don't think so
Okay thank you, I'll try that
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.
You probably want to see the current next billing cycle in Unix time,and then set it exact to that value
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?
The last schedule would overwrite so don't think there will be two
Are you sure? sorry to ask this lol
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
Okay can I see subscriptions on dashboard?
Thank you!!
Yeah you should see the Subscription on Dashboard
Sorry I meant schedules?
Ah, you can see the Subscription and see if it mention anything about schedule (I think yes but don't remember exactly)