#highondefi_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253412614743130262
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello! The short answer is that you don't; there's no bulk reporting feature.
What are you trying to do exactly?
I want to report meter events for multiple customers at the same time
Yes, I want to report customer specific meter events
Just do it for all my customers at the same time
You can't do it at the same time. You need to do it for each customer one at a time, with separate API requests. See here for details: https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide
So, the only way to do in bulk is:
https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage-via-s3
correct?
Yes, you can't do it in bulk via the API.
Okay, so if I want to do it for multiple customers, I'd have to emit each event individually in a for loop?
Yes.
And I'm guessing I might hit rate limits while trying to do that?
Yes, but note that Meter calls have different rate limits: https://docs.stripe.com/rate-limits#rate-limiter
Understood, that should solve my issue, thanks!