#jhonsalazar1623
1 messages · Page 1 of 1 (latest)
Hi, there is no bulk update API call you can make. You'd need to make these call per subscription. Please be aware that there are rate limits, https://stripe.com/docs/rate-limits so you'd want to take that into consideration.
Ok, no problem, but how do I update subscriptions that already exist?
or
how can I update a subscriptions when the prices of the product related to those subscription is updated?
Which is the best option ?
You can use the Update a Subscription API, https://stripe.com/docs/api/subscriptions/update When you say 'the prices of the product related to those subscription is updated' what do you mean? Are you meaning that they would need to move to a different price? Or, something else?
The reason I ask is that we have an API to update the Price, https://stripe.com/docs/api/prices/update. You can only update a few things on a Price but the way you worded the ask I am now unclear what you meant with that
ok
first : I create a product with prixce $ 12, ok
second: my custmer subscribed to the product monthly subscription $12
third: I update the subscription price from $12 to $15
How can I update the subscription price next month?
I see. In this case, you can use the above Update a Subscription API. You can learn more about it here: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
but my use case es different
in this documentation talks : When a customer changes their subscription
In my use case, I change the price, not my customer.
hhmm, it is highly likely that the customer would agree to make the changes right? In this case, you're making the call to update the Subscription on your server side. What I provided is still what you need.
You can update the subscription with the new price using the above API, and guidance.
Sure!
I was thinking about removing the current subscription and creating a new subscription with the new prices.
I would recommend just updating the existing subscription instead. You can test this using Test Clocks, https://stripe.com/docs/billing/testing/test-clocks where you can simulate time to move forward and see how upgrading the subscription would work.