#kamal-singh_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/1410861965575852085
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! There can be certain differences between the Dashboard initiated request and what is supported via the Stripe API. If you're creating a Subscription Schedule via the API, you'll want to define the Subscription Schedule's start_date here : https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-start_date. Subsequent phases, you would define the phases.end_date, and the next phase will start after the end_date
https://docs.stripe.com/billing/subscriptions/subscription-schedules#managing - there are some examples here in case you're looking for something to reference
So, does it matter if I pass the start_date parameter for every phase?
it's not going to work, you'll get an error
So you mean documentation is wrong and I should follow these examples
sorry, but what documentation is wrong specifically?
I'm following this documentation: https://docs.stripe.com/api/subscription_schedules/create
. In the request body, there is a start_date, but I cannot find any phases.start_date. It seems there is no start_date inside a phase, although I can see it in the request body generated by the Stripe dashboard.
yeah, like I mentioned there are differences between a Dashboard initiated request and what is supported via the Stripe API. You should refer to our API specs / documentation for what is supported for a specific request that you can make
ok got it
Can you also tell me what does now means, as i can see them being used in the request body created by stripe
now refers to immediately, which is the time which the request is received
If I want to update a subscription in the middle of the billing period and have the update take effect from the next billing cycle, is using a subscription schedule the only option?
Like just downgrading the quantity
yes, that's correct.
So going with Subscription schedule is the only option in this scenario?
yep, that's right, you can only do this with a Subscription Schedule