#kid-metered-billing
1 messages · Page 1 of 1 (latest)
hello, it would be the aggregate_usage on a SubscriptionItem, not the usage_record_summaries as those will list what UsageRecords you created on a Subscription
Thanks, I just really want to know is it possible to get total quantity of usage records submitted on the GET subscriptions endpoint
For example if I submitted 2 usage records in the current billing period (5 units & then 15 units), and i call GET /v1/subscriptions/:id endpoint, will it show me a quantity: 20 anywhere?
I can see this
yes it will, checking one sec
send me the Subscription ID or SubscriptionItem ID and I can have a look
Currently still working on getting my access sorted out for Stripe as joined a new company. I've only been able to use the UI at this stage which is why im asking here 😄
Just wanted to know the answer to above question as it affects my planning for design
ok so the total quantity is going to be on the next recurring Invoice. What you can do is, fetch the UpcomingInvoice for a Subscription, it will have invoice_item fields on which the quantity should map to your total usage records
Ahh ok I see, but just to confirm this total quantity is not present on the get subscriptions endpoint then?