#ferre_best-practices

1 messages · Page 1 of 1 (latest)

opaque depotBOT
#

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

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

weak summit
#

If you have any more questions, let me know

stone storm
#

Um that sounds like a kind complex usage but I think it’s possible with Meter API. What have you tried and anything goes unexpected?

weak summit
#

well i calculate the peak usage of the user on my server, it would be really handy if i can just pass that number to the meter and say bill based on this number, i tried doing it like that, but i feel like the meter formulas (count and sum) are really limiting and they do not provide much flexibility when it comes to adjusting the values.

stone storm
#

I see, you have a more customized/advance formula which you wish to manage on your side

weak summit
#

not sure, i feel like its pretty similar to just passing a quantity to a subscription item, but then instead of doing that at the beginning of a subscription, i would do it for every billing period

stone storm
#

Like always passing 3 but sometimes override with >3 if the customer register more than 3 properties

#

hmm we don’t have a default quantity options

weak summit
#

Can we simplify the question, what if i want to charge based on every distinct user that is active during a billing period

stone storm
#

Do you mean you will only look at the number of users?

weak summit
#

Yes, is that possible?

stone storm
#

Like only this

2 euros per user per month
only don't care about properties at all? Sorry if I am misunderstanding

weak summit
#

In my eyes, users, properties and units follow the same pricing rules, which is just a certain amount per month. But Yes, let's focus on only users. How can i charge per user that logged in during a billing period

stone storm
#

(we are not talking about properties and units, but I would imagine 2 more Meters, so you have 3 Meters with 3 different event_payload_key of users, properties and units)