Choose what you allow. Your choice applies on every tracken.ee address and you can change it any time with “Cookie settings” in the footer.

Remember your cookie choice, language and theme. Without them the site doesn't work the way you chose.

A cookie with your choice (6 months); language and theme in browser storage.


The services below learn that you visited this site, whether you came from their ad and whether you then created a Tracken account. That shows us which ads work, and these companies may show you Tracken ads later. They may link the data to your account with them. For Meta, Tracken ID's server reports the new account and also sends a hash of your e-mail address, your IP address and browser details.

ServiceCookiesKept for up to
Meta (Facebook, Instagram)_fbp, _fbc90 days

Tracken's own visit counter uses no cookies, stores no IP addresses and shares nothing with anyone. Privacy policy

Skip to content
Beta
BetaThe Tracken Accounts API is in beta: it may still change before v1, and every change is announced in the changelog.

BillingFormulaCatalog

Response

What billing formulas may use: the grammar (EBNF), its functions and limits, and the references available, flat (references) and in the formula field's groups (variables, properties, meters, sys, and for a variable's formula over a purchase invoice invoice and lines).

Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.

Attributes

10
grammarstringrequired

The grammar, in EBNF.

functionsarray of BillingFormulaFunctionrequired

Functions a formula may call.

4 attributes of each item
namestringrequired

Function name. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) round, min, max, if, sum_objects, sum_lines

min_argsintegerrequired

Fewest arguments.

max_argsintegerrequired

Most arguments.

descriptionstringrequired

What it computes.

limitsBillingFormulaLimitsrequired

The grammar's limits, the same in the server and the editor.

4 attributes of limits
max_depthintegerrequired

Deepest tree a formula may parse to.

max_call_argsintegerrequired

Most arguments to min/max.

max_number_lengthintegerrequired

Longest number literal, in characters.

max_round_digitsintegerrequired

Largest round digit count.

referencesarray of BillingFormulaReferencerequired

Every reference available, in the order of the groups below.

5 attributes of each item
scopestringrequired

What the reference reads. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) var, prop, consumption, sys, invoice, line

codestringrequired

The key within the scope.

namestringrequired

Name shown to people.

unitstring · nullablerequired

Unit of the value.

disabled_reasonstring · nullablerequired

Set when it is listed but cannot be used yet; a formula naming it is refused.

variablesarray of BillingFormulaCatalogItemrequired

The plan's variables (var.); empty without plan_id.

5 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

propertiesarray of BillingFormulaCatalogItemrequired

The object type's numeric properties (prop.).

5 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

metersarray of BillingFormulaCatalogItemrequired

The organization's meter types (consumption.).

5 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

sysarray of BillingFormulaSysItemrequired

The values the billing engine computes (sys.).

6 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

groupstringrequired

The computed values' group (D67) — over the objects, of the period, of the recipient, from outside sources. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) objects, period, recipient, external

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

invoicearray of BillingFormulaCatalogItemrequired

A purchase invoice's totals (invoice.), for an asked variable's invoice_formula; the same for every plan.

5 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

linesarray of BillingFormulaCatalogItemrequired

One chosen invoice line's figures (line.), inside sum_lines of an asked variable's invoice_formula; the same for every plan.

5 attributes of each item
keystringrequired

The key within its scope (area_m2 of prop.area_m2).

namestringrequired

Name shown to people.

unitstring · nullable

Unit of the value.

descriptionstring · nullable

What the value is.

disabledReasonstring · nullable

Set when the item is listed but cannot be used yet; a formula naming it is refused at save.

Used by