#MarioAda
1 messages · Page 1 of 1 (latest)
Hello, can you explain more of what you are trying to do here?
Oh
Well, we want to create a multiparty platform. Suppose there's a merchant and they have 30 users subscribed to them
If that merchant changes the price of that subscription, we wish to automatically disable auto-renewal for everyone
We don't want those 30 users to be forced into the new price
So we want to cancel the 30 subscriptions until those 30 users manually subscribe again to the new price
We thought of simply sending 30 API requests and canceling each subscription at a time, but that sounds too much
There must be a better way
Gotcha, unfortunately that is still the best way to do that at the moment. We don't have a way to batch those calls or affect all subscriptions that are on a specific price at the moment, so updates like that need to be one-by-one
but the Stripe API has a rate limit of 20 requests per second, so suppose we have many users, we'll have to wait in-between requests or something, right?
I take that back, it's 100 per second
Yes, you would have to do those requests over some period of time if you have too many to do at once
For this kind of update the rate limit is 100 requests per second. 20 is only for certain file API calls https://stripe.com/docs/rate-limits
Yes, unfortunately that is the case at the moment.