#IGMontero-subscription
1 messages · Page 1 of 1 (latest)
Hi there!
Can you clarify what you mean by
I know if I create a usage record for each subscription, then I have no way to know if the users canceled or if they are still active the next month,
When creating a usage record, you can either increase its amount or set it to a specific value https://stripe.com/docs/api/usage_records/create
Hey!
Yeah, for example, if I wanted to measure all the subscribed users the Tenant had historically, I could add an usage record where quantity is 1, each time the user subscribed
But in my case, I want to know month by month the total amount of subscribed users
For example, if this month the Tenant had 5 subscribed users, then I can charge based on that. But if next month, 3 of those users cancelled, the usage record won't be updated.
Maybe I should have an interval or something that calculates the total amount of subscribed users day by day, and just set the usage record quantity after running it, for each tenant subscription?
By interval I mean a function that runs every n minutes/hours