Retrieve customer past usage
Changed onThis endpoint enables the retrieval of the usage-based billing data for a customer within past periods.
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
Page number. Defaults to 1. A value that is not a positive integer, such as 0, returns the first page.
Number of records per page. Defaults to 100. The maximum is 200, unless another maximum is configured for your organization. A value above the maximum returns a 422 error with value_is_out_of_range on per_page. A value that is not a positive integer, such as 0, returns the default number of records.
The unique identifier of the subscription within your application.
Billable metric code filter to apply to the charge usage
Number of past billing periods to return in the result.
Response
Customer past usage
Changes
- 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
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
added the required property
/////to the response with the status
- breaking