#orderandchaos-at-work_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/1349528334677180426
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
But I can only provide the name and the customerId when recording the event, there's no way to differentiate the teams.
Hi! So you want to have a single Stripe Customer (business) with multiple Stripe Subscriptions (one per team at the business) , and you want to know how to submit meter events on a per-Subscription basis?
Yes
They could even be on the same subscription ie two (or more) of the same price on the same sub one for each team
Can make it work if they have to be separate subs, but would like to support both options ideally
Ok, so it looks like you can only report Meter Events at the Customer level, and per-price - so I suspect you'll need to have one Stripe Customer object per (billable) team.
https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide#create-meter
Interesting, I can see how we could support that. Little unpleasant but potentially achievable.
To be clear, you're confirming that it's assumed to be one type of metered price per customerId, right?
The Meter is associated with a [ Customer, Price ] pair, and cannot be specified beyond that.
Yeah, perfect thanks so much.
You're very welcome!
Saved me a lot of time trawling docs, ty!
Good. ๐