#agerman77_api

1 messages ¡ Page 1 of 1 (latest)

visual craneBOT
#

👋 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.

edgy oar
#

Hi, let me help you with this.

sterile shard
#

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.

visual craneBOT
sterile shard
#

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.

worthy prairie
#

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

sterile shard
#

any workaround for this?

worthy prairie
#

hum, the only one I can think of is make sure the Price object you are using for each subscription are different.

sterile shard
#

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?

worthy prairie
#

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