#bacoco
1 messages · Page 1 of 1 (latest)
You can talk to our support team about increasing your rate limits but I am unsure how likely they would be to increase your rate limits for this https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
It would likely be a better idea to change your integration to not immediately report all usage and level out your requests per second throughout the day
Can do that, but still some 10M usages/day scattered trought the day on different subscriptions 😦
Hence why I taught of batch reporting, like every 1k i'd send a usage of 1k, but that would have bad timestamps for those
And the usage record api doesn't allow me to send a batch, i'd have to make one request with 1k quantity
Gotcha, yeah 10M per day would be difficult with 100 per second and 86,400 seconds in a day
For the timestamp part, you can actually manually provide your own timestamp for when the usage happened https://stripe.com/docs/api/usage_records/object#usage_record_object-timestamp
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, I mean that I can only report 1 timestamp for all the quantity, which would be "unreal"
To not hit the api limit I would accumulate 1k usage and report it all at once, but the timestamp of those 1k won't be the same
I think well just ignore the timestamp and report on batches and use it only for counting 🤔
Yeah if it is feasible to do that, that would likely alleviate headaches for you at least at the rate limit level