I have a few questions about using the built-in monetization. I’d ideally like to retrieve the subscription object and be able to deterministically determine my apps usage against the subscription given that state (and some record keeping on my end).
Say my app provides 1000 queries per month to paying users. The subscription object looks like this:
app_subscription {
plan_id
is_trial
renewal_date
billing_period
days_left
}
Since I don’t have the start/end dates of the current period, it seems difficult to count the number of queries within the monthly period since I don’t know when in the month the subscription started.
If the subscriptions are pro-rated based on the calendar months, I can just count usage based on calendar months per subscriber, which isn’t too hard. Is this the case?
If not, I could try to listen to some of the webhook events and track subscription changes this myself, but if I miss a webhook, this will get out of sync quickly.
All this has me considering building out my monetization on an external vendor instead of with Monday, but I thought I would check in and see if there was some guidance around determining the current usage tracking interval from the subscription object.