#qualle-dashboard-pricecreation
1 messages · Page 1 of 1 (latest)
qualle-dashboard-pricecreation
got it ok I see the "Usage is metered" option now
one more question
when we update a customer's usage records for metered based subscriptions
how do we check that their usage hasn't hit the limit?
is there a specific api or does it just throw an error if it's maxed out?
I'm not fully sure what you mean by "max usage"
and we need to show their usage progress for that month in the UI
so say we allow up to 50 units of our service in a month at $50, and they have to upgrade for 50+ units
if they hit 50 units before the month ends, we need to notify the user to upgrade
does the subscription API just throw a message or do we have to implicitly check some other api
you have to keep track of this yourself
ok so then what does the usage_records/create api do ?
it creates a usage record on our end so that we can know how much to charge them for
just for invoicing I guess
but there's no concept of "max"
I see
its just for the invoice yea
in our db we'll tick up the amount per transaction
thank you!
sure thing!