Skip to main content
GET
List a subscription's usage events with their cost

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscription_id
string<MeteroidId>
required

Subscription ID

Example:

"sub_7n42DGM5Tflk9n8mt7Fhc7"

Query Parameters

metric
string
required

Billable metric, by ID or code.

from
string<date-time>
required

Start of the range, inclusive.

to
string<date-time>
required

End of the range, exclusive. At most 93 days after from.

cursor
string

The next_cursor of the previous page.

limit
integer<int32>

Page size, 100 by default and 500 at most.

Required range: x >= 0

Response

A page of events

data
object[]
required
next_cursor
string | null

Absent on the last page.