#ferre_best-practices
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/1296652267969318932
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
If you have any more questions, let me know
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?
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.
I see, you have a more customized/advance formula which you wish to manage on your side
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
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
Can we simplify the question, what if i want to charge based on every distinct user that is active during a billing period
Do you mean you will only look at the number of users?
Yes, is that possible?
Like only this
2 euros per user per month
only don't care about properties at all? Sorry if I am misunderstanding
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
I would imagine following https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide?dashboard-or-api=api, with the user Meter event, and then continue reporting it
(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)