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.

BillingPlanVariable

Response

A plan variable, referenced from formulas as var.<key>.

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

Attributes

14
idstring (uuid)required

Variable id.

keystringrequired

Machine name formulas use as var.<key>.

namestringrequired

Name shown to people.

value_typestringrequired

number or boolean. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) number, boolean

unitstring · nullablerequired

Unit of a number.

kindstringrequired

timed (values by period), asked (given at every run) or formula (computed from its formula at every run). New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) timed, asked, formula

guidancestring · nullablerequired

For asked variables, the hint shown at the run.

needs_reviewbooleanrequired

A copy shifted its values; someone should check them.

sort_orderintegerrequired

0-based display order.

segmentsarray of BillingPlanVariableSegmentrequired

For timed variables, the values by period.

3 attributes of each item
start_periodstring (date)required

First period the value applies to (a first of month).

end_periodstring (date) · nullablerequired

Last period, inclusive; null means onwards.

valuestringrequireddecimal string

The value, a decimal string with at most 4 fraction digits; "1"/"0" for a boolean variable.

used_by_line_idsarray of string (uuid)required

Lines whose formulas or condition use this variable (it cannot be removed while non-empty).

key_lockedbooleanrequired

True when the key can no longer change (used by a line, or a run recorded a value for it).

formulastring · nullableat most 2000 characters

Required for kind=formula; null otherwise. Uses system values and variables earlier in the submitted variable list; self and forward references are refused. Evaluated after system values, before lines, using Decimal precision 28.

invoice_formulastring · nullableat most 2000 characters

For an asked number only: how a billing run computes the value it takes from a purchase invoice's chosen lines, a formula in the invoice context (see parseBillingFormula), e.g. sum_lines(line.amount / line.quantity) for a price per unit.

Details

Null: the chosen lines' sum, sum_lines(line.amount). Stored normalised; the default written out is stored as null.

Used by