#neha-mahajan_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/1336296623319416904
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Hello
this is covered here: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
It says i have to use list api with pagination and then for all the subscription i have to update the price. is there any way i can use it to do it by calling any one method instead of calling subscription update for all subscptions retrieved through list method?
will it have any performance impact too?
no sorry, you have to follow the steps listed in the guide
what do you mean by "performance impact" exactly?
Let me again explain you my use case -- so currently i have defined a subscription product with price 100$ to which 150 users have already subscribed. Now from the next billing cycle i want to update the price to 110$ instead of 100$ to all the users who have already subscribed.
So do i have to fetch all these 150 subscriptions and update these subscription price individually?
yes
any other way which takes list of subscription to update because if i have let say 1000 subscriptions then i have to make update subscription call 1000 times
if you have 100,000 subscriptions, you have to make 100,000 API calls. you just need to make sure you respect Stripe rate limits, but otherwise it will just work: https://docs.stripe.com/rate-limits
Great, thanks