#neha-mahajan_api

1 messages ¡ Page 1 of 1 (latest)

coarse sorrelBOT
#

👋 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.

cunning moth
#

hi there!

hollow kelp
#

Hello

cunning moth
hollow kelp
#

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?

cunning moth
#

no sorry, you have to follow the steps listed in the guide

#

what do you mean by "performance impact" exactly?

hollow kelp
#

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?

cunning moth
#

yes

hollow kelp
#

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

cunning moth
#

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

hollow kelp
#

Great, thanks