#shreyanshcactusglobal_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/1268971077346787478
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shreyanshcactusglobal_api, 4 days ago, 24 messages
From our API ref (https://docs.stripe.com/api/subscription_schedules/create):
When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
Add it to the Subscription, then update the Subscription Schedule's phases from there: https://docs.stripe.com/api/subscription_schedules/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh alright got it.
I didn't quite understood this from the document.
So basically what you're saying is:
- First create a schedule on existing subscription
- Then update that schedule and add phases.
Is that correct?
Correct
There seems to be some issue with my understanding here.
I'm did what you suggested here.
But while updating the schedule. If i don't mentioned the start_date it's throwing the error "You can not modify the start date of the current phase."
If i don't set the start_date then it's throwing "The subscription schedule update is missing at least one phase with a start_date to anchor end dates to."
What i basically want to do here is:
I have a subscription that is ongoing on monthly recurring basis.
I want to set the next month eg: sept - oct as free trial month.
You have to use the start date of the existing phase, since one would be created for the Subscription you attached the Schedule to
Okay cool that makes sense.
I have to pick start_date from the schdule that i just created.
Thanks so much
Sure thing!