Price formulas let you define dynamic pricing using mathematical expressions that are evaluated at billing time. This is useful for pricing models that depend on runtime variables - usage volume, contract size, exchange rates, or custom metrics.
Formulas support standard arithmetic operators, conditional logic, and named variables. Each variable has a type and optional default value. At billing time, the formula engine resolves all variables and computes the final price.
Example: base_price * (1 - volume_discount) where volume_discount increases with usage.
List price formulas
Lists price formulas with cursor-based pagination
query Parameters
limitNumber of items per page
cursorPagination cursor
List price formulas › Responses
Paginated list wrapped in data envelope
created_atexpressionhead_version_idHeadVersionID points at the currently-active row in
price_formula_versions. Nil only during a brief window between
INSERT INTO price_formulas and the auto-publish of v1.
idis_systemnameorganization_idupdated_atversionCreate a price formula
Creates a new price formula with a validated expression
Create a price formula › Responses
Wrapped in data envelope
created_atexpressionhead_version_idHeadVersionID points at the currently-active row in
price_formula_versions. Nil only during a brief window between
INSERT INTO price_formulas and the auto-publish of v1.
idis_systemnameorganization_idupdated_atversionGet a price formula
Retrieves a price formula by ID
path Parameters
idPrice formula UUID
Get a price formula › Responses
Wrapped in data envelope
created_atexpressionhead_version_idHeadVersionID points at the currently-active row in
price_formula_versions. Nil only during a brief window between
INSERT INTO price_formulas and the auto-publish of v1.
idis_systemnameorganization_idupdated_atversionUpdate a price formula
Updates an existing price formula by ID, re-validating the expression if changed
path Parameters
idPrice formula UUID
Update a price formula › Responses
Wrapped in data envelope
created_atexpressionhead_version_idHeadVersionID points at the currently-active row in
price_formula_versions. Nil only during a brief window between
INSERT INTO price_formulas and the auto-publish of v1.
idis_systemnameorganization_idupdated_atversion