Retrieve customer current and projected usage
Changed onThis endpoint enables the retrieval of the usage-based billing data for a customer within the current period. It also returns the projected usage for the current period based on the current usage.
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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).
Filter usage to a specific charge by its 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.
{
"cloud": "aws"
}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
Changes
- info
added the required property
//////to the response with the status - info
added the required property
////////to the response with the status - info
added the required property
//////to the response with the status - info
added the required property
////to the response with the status
- info
- breaking
the response property
////became nullable for the status - breaking
the response property
/////became nullable for the status - breaking
the response property
/////became nullable for the status - breaking
the response property
///////became nullable for the status - breaking
the response property
///////became nullable for the status - warning
added the new
SYPenum value to the///response property for the response status - warning
added the new
SYPenum value to the/response property for the response status - warning
added the new
TNDenum value to the///response property for the response status - warning
added the new
TNDenum value to the/response property for the response status - warning
added the new
dynamicenum value to the////response property for the response status - warning
added the new
graduated_percentageenum value to the////response property for the response status - info
added the new optional
queryrequest parameterbillable_metric_code - info
added the new optional
queryrequest parametercharge_code - info
added the new optional
queryrequest parametercharge_id - info
added the new optional
queryrequest parameterfilter_by_presentation - info
added the new optional
queryrequest parametergroup - info
added the non-success response with the status
- info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
///became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
///////became required for the status - info
the response property
///////became required for the status - info
the response property
///////became required for the status - info
the response property
///////became required for the status - info
the response property
///////became required for the status - info
the response property
///////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status
- breaking