#kenjamin-
1 messages · Page 1 of 1 (latest)
hi there! yes, you can make it so a customers can update their subscription to pay $20 : https://stripe.com/docs/api/subscriptions/update. You would have to update the subscription.items / subscription.items.price_data https://stripe.com/docs/api/subscriptions/update
You won't be able to update an existing Price which already has active subscriptions on it. So it won't affect your existing subscriptions
when i update the subscription.items.price_data, i will have to create a new price and pass it to the /subscriptions/update, correct?
if you update it using subscription.items.price_data - it will automatically create a new Price
i generally don't recommend this though, cause you're going to end up with a new Price everytime someone creates a new subscription
you should create a new Price before hand, then update subscription.items.price with the Price
got it
you might want to look into using the customer portal : https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
now you mentioned that existing subscriptions won't be affected - what if i want those that were already existing subscribed at $10, to be automatically put on the new subscription price to be charged the $20 after someone updates their subscription price?
to clarify, do you want to update all subscriptions on that old price?
yes
you'll need to loop through all existing subscriptions and update them to that new price. there's no automatic way / feature to do this currently
i see - so i would i have to create a background process to do that
yep
in case you haven't seen this guide, it may be useful : https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
this is great info - i understand now, appreciate the help