GET

https://{region}.getlago.com/api/v1

/
customers
/
{external_customer_id}
/
past_usage

Authorizations

Authorization
string
headerrequired

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

Path Parameters

external_customer_id
string
required

The 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
required

The 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[]
required
meta
object
required