#Mathieu-update-subscription
1 messages · Page 1 of 1 (latest)
@oak shuttle the official way we support this is using SubscriptionSchedules(https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions)
i.e. you would set up the current phase of the subscription to use the current number, and configure the next phase(that begins at the start of the next billing cycle) to have a smaller quantity
alternatively :
- you would have to schedule something on your side to make an API call at the appropriate time
- or you could decrease the quantity on Stripe immediately but still let the customer have access in your system to the higher amount, depends how exactly you sync things
ok i'm gonna read this doc. I have also saw this event invoice.upcoming mention in https://stripe.com/docs/billing/subscriptions/overview#invoice-lifecycle and saw that this "Upcoming renewal events" can be configured in the Dashboard.
Can it also be another solution ?
sure, you can listen to invoice.upcoming events and use that as a trigger for when to change the quantity on Stripe(that falls into the "schedule something on your side to make an API call at the appropriate time" category)
ok now i'll do some test to see what's best, thanks !