Retrieve customer current usage
This endpoint enables the retrieval of the usage-based billing data for a customer within the current period.
Path parameters
The customer external unique identifier (provided by your own application).
Query parameters
The unique identifier of the subscription within your application.
Optional flag to determine if taxes should be applied. Defaults to true if not provided or if null.
Filter usage to a specific charge by its Lago ID (UUID). Replaces deprecated filter_by_charge_id.
Filter usage to a specific charge by its code. Replaces deprecated filter_by_charge_code.
Filter usage to a specific billable metric by its code.
Filter usage by pricing group. Pass key/value pairs as query parameters, e.g. group[cloud]=aws. Replaces deprecated filter_by_group.
{
"cloud": "aws"
}Deprecated. Filter usage to a specific charge by its Lago ID (UUID).
Deprecated. Filter usage to a specific charge by its code.
Deprecated. Filter usage by pricing group. Pass key/value pairs as query parameters, e.g. filter_by_group[cloud]=aws.
{
"cloud": "aws"
}When true, returns usage since subscription start instead of the current billing period. Requires one of charge_id, charge_code, group (or their deprecated filter_by_* equivalents) to be set.
Filter presentation_breakdowns by a JSON-encoded array of presentation group key values. Only breakdowns matching the provided values will be returned. Pass an empty array to disable presentation_breakdowns entirely.
Response
Customer usage