#agerman77_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/1369595119220822066
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
When you create a Price, you map it to a Meter, which will determine to which Price will the Meter Events be attributed to: https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide?dashboard-or-api=api#create-pricing-model
That doesnt answer my question, sir. I manage all that correctly. The problem is when I try to record usage. It wont allow me in anway to set the subscription I am recording the usage to. I mean, one customer can have several subscriptions to the same product. I need to know which of these subscriptions the usage is bound to.
I want to record subscription or subscription_item usage, not customer usage.
When I deliver the invoice to my customer, I dont want a general invoice with total only, I need to specify in a detailed way each expense.
hi! I'm taking over this thread.
I mean, one customer can have several subscriptions to the same product.
yes that is a known limitation of meters
any workaround for this?
hum, the only one I can think of is make sure the Price object you are using for each subscription are different.
Yeah. The problem is that when recording usage you have to send an event_name, which would then force me to also create a meter for each subscription. Get it?
yes I agree it's not great, but that's a current limitation of the product. otherwise, if you have multiple subscription for the same customer, then each subscription will see it's usage increase at the same time