#aby_docs

1 messages ¡ Page 1 of 1 (latest)

obsidian veldtBOT
#

👋 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/1227567150479314985

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

prisma etherBOT
fiery quarry
#

hi there!

#

so you want to add some custom information on the Invoice itself?

void bobcat
#

Hello! I hope you're doing well & nice to meet you

#

Yes, basically we would like to link somehow or identify for wich app we're selling is each subscription with the product attached

#

I don't know if that makes sense to you

fiery quarry
void bobcat
#

Ok, so there we could add our custom information, in this case our App_ID for each subscription, right?

#

Your help here is really much appreciated

fiery quarry
#

`correct!

void bobcat
#

That's great! Thank you!
May I ask you another question related to our use case or should I open a new thread

fiery quarry
#

sure, you can ask here

void bobcat
#

Great, thank you

#

Basically our customers create apps with us, which are initially free. When they want to use them in production, they need a subscription for the appropriate number of users. Depending on the product, the number of users is either fixed or in bundles, e.g. a price for 1000 CCU (= concurrent users) which you then have as an subscription item with quantity = 2 to allow 2000 users.
The customers then create a subscription for product X for their app Y in a certain quantity, As I mentioned when I opened the thread. A subscription is never for more than one app, so if they have several apps they create separate subscriptions for each app.

We would prefer that the invoice shows

  1. which app the subscription is for (Which you already explained how to achieve it)
  2. how many CCU were booked

Our solution idea for point 2 was:

  • Set the unit_amount of the price to e.g. 1000, so that the item is then simply set to quantity=2000 instead of quantity=2, the price is still correct and the 2000 appears in the invoice item (this works, but it is always referred to as Qty. 2000 it would be better to have "CCU" as the unit)

Alternatively, with what you already shared, the idea would be to add a custom field of the invoice item to enter the app ID and/or something like "2000 CCU".

#

I wanted to provide you as much context as possible so you can understand our use case

fiery quarry
#

yes both options could work. what's your question exactly?

void bobcat
#

What would be the best approach for point 2?

#

The one we proposed or the alternative solution you shared?

prisma etherBOT
fiery quarry
#

using custom fields looks simpler to me, but that's completely up to you.