Evaluate an expression for a billable metric
Evaluate an expression for a billable metric creation by providing the expression and test data
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Billable metric expression evaluation payload
Expression used to calculate the event units. The expression is evalutated for each event and the result is then used to calculate the total aggregated units.
Accepted function are ceil, concat and round as well as +, -, \ and * operations.
Round is accepting an optional second parameter to specify the number of decimal.
"round((ended_at - started_at) * units)"
Response
Billable metric expression evaluation result