#OptimalSurprise-billing
1 messages · Page 1 of 1 (latest)
I require it for some analytics i am doing
so i would like to split things into normal subscription, licensed and metered categories and their sub components
well the first thing would be to look at the items on a given Subscription and look at the related Price object. That tells you if it's licensed or metered.
https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price
https://stripe.com/docs/api/prices/object#price_object-recurring-usage_type
does licensed type encompass the normal ordinary subscription?
depends what you call normal/ordinary but I would say yes. That's just a "per seat" subscription where it's amount of Price multiplied by quantity of the item.
ah ok
great then that might be good enough
so usage type essentially encompasses all possible priving models?
well you also want to look at the billing_scheme of the Price since that changes the billing model
if you look at https://stripe.com/docs/products-prices/pricing-models and view the "API" tabs it shows how Prices with different models are created, which should help you to recognise them/tune your code.