#krs_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/1368803357904601133
๐ 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.
- krs_api, 4 days ago, 3 messages
Hi there, this error happens because you request also include changes to the already ended phase (i.e., phase 1).
I have not done any changes to the current and older phases, only change was done in is for the last phase to add coupon_code. I have compared the payload with schedule information. But still it is throwing error as cannot be modified. Is it possible to check and conirm which detail is being modified? It would help us to understand the issue better
I'd recommend you retrieve the subscription schedule object first and only make changes on the future phases.
If you take a look at the data in your request, the first two phases are already ended, and they do not exist in the current subscription schedule object.
That is exactly what I am doing. Retrieve the schedule and modify only the coupon code the future phase of the schedule. No other changes.
Can you share with me the subscription schedule object that you just retrieved before making the change to it?
Got it. You can only update the current and future phases (doc: https://docs.stripe.com/billing/subscriptions/subscription-schedules#updating), so you should remove the already ended phases (e.g., first and second) in your update request.
ok. I did not know that we need to remove the past phases, it used to work for last few years. I will try this and update. Thanks