Get billable metrics for a customer
GET {{baseUrl}}/customers/:customer_id/billable-metrics?limit=<integer>&next_page=<string>&on_current_plan=<boolean>
Get all billable metrics for a given customer.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | Max number of results that should be returned | |
next_page | string | Cursor that indicates where the next page of results should start. | |
on_current_plan | string | If true, the list of metrics will be filtered to just ones that are on the customer's current plan |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"name":"\u003cstring\u003e","id":"\u003cuuid\u003e","group_by":["\u003cstring\u003e","\u003cstring\u003e"],"group_keys":[["\u003cstring\u003e","\u003cstring\u003e"],["\u003cstring\u003e","\u003cstring\u003e"]],"aggregate":"\u003cstring\u003e","aggregate_keys":["\u003cstring\u003e","\u003cstring\u003e"],"filter":{"amet_166":99494251.7910155},"aggregation_type":"MAX","aggregation_key":"\u003cstring\u003e","event_type_filter":{"in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]},"property_filters":[{"name":"\u003cstring\u003e","exists":"\u003cboolean\u003e","in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]},{"name":"\u003cstring\u003e","exists":"\u003cboolean\u003e","in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]}],"custom_fields":{"velita90":"\u003cstring\u003e"},"sql":"\u003cstring\u003e"},{"name":"\u003cstring\u003e","id":"\u003cuuid\u003e","group_by":["\u003cstring\u003e","\u003cstring\u003e"],"group_keys":[["\u003cstring\u003e","\u003cstring\u003e"],["\u003cstring\u003e","\u003cstring\u003e"]],"aggregate":"\u003cstring\u003e","aggregate_keys":["\u003cstring\u003e","\u003cstring\u003e"],"filter":{"commodo7d":"reprehenderit Excepteur minim"},"aggregation_type":"max","aggregation_key":"\u003cstring\u003e","event_type_filter":{"in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]},"property_filters":[{"name":"\u003cstring\u003e","exists":"\u003cboolean\u003e","in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]},{"name":"\u003cstring\u003e","exists":"\u003cboolean\u003e","in_values":["\u003cstring\u003e","\u003cstring\u003e"],"not_in_values":["\u003cstring\u003e","\u003cstring\u003e"]}],"custom_fields":{"Excepteure55":"\u003cstring\u003e","in_90":"\u003cstring\u003e","et_83a":"\u003cstring\u003e","adipisicing_a5":"\u003cstring\u003e"},"sql":"\u003cstring\u003e"}],"next_page":"\u003cstring\u003e"}