#wei_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250289259089362954
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! So it sounds like you're already using subscription schedules, in your case, you would set the end behavior to release
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We hope to notify users in advance via email and automatically convert their subscriptions from the old price ID to the new one using a script. We do not want users to manually convert themselves to avoid any potential losses during the conversion.
Is it possible to achieve this?
sure, it's up to you to implement the script and send the email. in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
Yep, we've tried that, it's quite useful.
But the point is, given that the sub detail is as below picture, should we simply replace the price ID of price in items, or replace whole price item, or etc?
I'm not sure I understand, you have to define the item's price : https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-phases-items-price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what do you mean by replacing the price ID of price in items or replace whole price item?
to be clear, your code is purely for a Subscription, and not for Subscription Schedules
you'll want to take a look at the docs for Subscription Schedules :
Thanks! Let me take a look