#taviksha-akar_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/1288400630549053450
đ 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.
- taviksha-akar_api, 1 day ago, 9 messages
- taviksha-akar_code, 5 days ago, 15 messages
Subscription schedule should do the work for updating the price at the end of the current cycle. After the subscription schedule completes all the phases, the default end behaviour will be releasing the subscription schedule and keeping the existing subscription: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-end_behavior
No extra action is required on the subscription schedule.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So if subscription schedule is released after that also can I use subscription schedule update api to update the prices of the product at end of current billing cycle?
If you use subscription schedule to update the price at the end of the cycle, you shouldn't need to update the subscription again
no but if schedule is relased already and now I need to update price
If the schedule is released and you wish to update the price again in next cycle, you'd need to create a new subscription schedule again
If you update the subscription directly, the price will be changed immediately
If you wish to update the subscription in the future, subscription schedule should be used: https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#changing-subscriptions
Ok. I have more more question -
when i retrieve a subscription, in line items it can have discounts array which have its ids so how to retrieve discounts based on discount id. which api to use. as i am not able to get discount data using its id's
Discounts is an expandable object, so you can expand the discounts to get its details on the subscription: https://docs.stripe.com/api/subscriptions/object#expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.