#iamrameshwar_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/1243533951155306517
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You need to pass the old/current phase and add a new phase with your update
You need to pass the exact same start_date of the current phase. For example you can make a GET /v1/subscription_schedules/sub_sched_1PJwVqSDUG9764DXnPQboYYg and fetch the start_date for the current phase and pass it when doing the update
But when I am creating subscription schedule with FromSubscription property I am not allowed to pass current phase as suggested by stripe API document and have to pass phase in update subscription schedule api call.
That time it self its giving error about not letting us pass start date when currentphase it self is not there.
But when I am creating subscription schedule with FromSubscription property I am not allowed to pass current phase as suggested by stripe API document and have to pass phase in update subscription schedule api call.
Yes You need to create the Subscription first and then make the updates you need
That time it self its giving error about not letting us pass start date when currentphase it self is not there.
What you mean by this, did you follow the steps I shared with you?
- retrieve the created subscription schedule
- get the current phase's start_date and use it when making the update on the current phase. Or simply create a new phase depending on your use case
Yes I did, but when I am creating subscriptionschedule for the first time for a customer I need to use From subscription property as defined in the screenshot and have created subscription schedule with FromSubscription property only.
After that I have created phaseItems and called subsctiptionschedule update api to create phases like attached screenshot, but as current_phase was not there because I scheduling it for the first time I had to set time and as soon as I add start_time it gives m e error
but as current_phase was not there because I scheduling it for the first time
What makes you say there is no current_phase? the current_phase will be created from the existing subscirption.
Add a step where you fetch the subsciprtion scheduler after creating it from an existing Subscription and inspect it's phases and double check what I was saying