Retrieve Subscription Usage
Reads the metered usage a subscription has accrued in its current billing period, priced by the meters on its plan.
Reading the response
When there is nothing to bill
A subscription whose plan has no meters, or that has no plan at all, returnsitems: [] and a
zero total rather than an error.
POST /subscriptions/meters/events answers 202 once the event is validated, before it is
stored. A usage read that lands moments after reporting an event can still show the total from
before that event — a subscription’s items stayed at the same quantity and events_count on a
read taken immediately after a further event was reported on stg. Allow a short delay before
relying on a read to reflect the very latest report.Errors
Authorizations
Headers
The account_id found in your Yuno Dashboard (UUID).
Path Parameters
The unique identifier of the subscription.
Response
200
"c2094820-df10-4bd4-b7ef-dbe0d28db857"
The subscription's current billing period.
"COP"
One entry per meter attached to the subscription's plan. Empty when the plan has no meters, or the subscription has no plan.
The sum of every item's amount for the period. Zero when items is empty.