#jonnydengro_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/1232626194600558603
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Good morning ๐
first, do you have an existing Subscription you want to update, or are you creating a brand new Subscription?
I'm only going to be working with existing subscriptions
got it, so yes you need to use the create_from_subscription
and this error "You can not modify the start date of the current phase." is pretty clear
the current phase is the current phase, so you can't change it's end date if you want, but not the start date.
so keep the current phase unchanged, but make it end earlier. and then in the second phase make the price/quantity changes
So I used create_from_subscription in my first api call, I've then tried a 2nd api call to update this schedule, I have added an end date for the first phase but it's throwing an error due to me not having any items within the phase. I may have misunderstood something here but how would I change the end date without making any changes in that phase?
So I used create_from_subscription in my first api call, I've then tried a 2nd api call to update this schedule
yes that's correct
, I have added an end date for the first phase but it's throwing an error due to me not having any items within the phase. I
can you share the Request ID (req_xxx)?
req_JgYhFZg5fuCayz?t=1713951727", (this is from the 2nd api call)
this request is almost correct!
- you need to set phase[0][items] with the current items of the current phase.
- also remove
start_datefrom the second phase, since it will automatically start as soon as the current phase ends.
Ah okay think I understand, bear with me a moment while I run a quick test please ๐
sure, Subscription Schedules can be tricky!
Brilliant, got it working. Thank you very much :D!