Customer usage
Retrieve past usage
Fetch historical customer usage data for closed billing periods.
GET
/
customers
/
{external_customer_id}
/
past_usage
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
external_customer_id
string
requiredThe customer external unique identifier (provided by your own application).
Query Parameters
page
integer
Page number.
per_page
integer
Number of records per page.
external_subscription_id
string
requiredThe unique identifier of the subscription within your application.
billable_metric_code
string
Billable metric code filter to apply to the charge usage
periods_count
integer
Number of past billing period to returns in the result
Response
200 - application/json
usage_periods
object[]
requiredmeta
object
requiredWas this page helpful?