Skip to main content

Billable metric object

This object represents a billable metric.


"billable_metric": {
"lago_id": "b7ab2926-1de8-4428-9bcd-779314ac129b",
"name": "bm_name",
"code": "bm_code",
"description": "description",
"aggregation_type": "sum_agg",
"field_name": "amount_sum",
"created_at": "2022-04-29T08:59:51Z",
"group": {}
lago_id     String     Not nullUnique identifier of the billable metric in Lago application.
name     String     Not nullBillable metric name.
code     String     Not nullCode identifying the billable metric.
description     StringBillable metric description.
aggregation_type     String     Not null
Aggregation type that is used in event calculation.
Possible values
- count_agg (metered)
- sum_agg (metered)
- max_agg (metered)
- unique_count_agg (metered)
- recurring_count_agg (persistent)
field_name     StringField name used in events.
created_at     String     Not null    
ISO 8601 datetime in UTC
Date of billable metric creation.
group     ObjectGroup (one or two dimensions) for pricing differently the billable metric