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.

BillingPlanLine

Response

A line of a billing plan; ids are stable across edits (a new revision gives its lines new ids).

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

Attributes

22
idstring (uuid)required

Line id.

sort_orderintegerrequired

0-based place on the invoice.

line_kindstringrequired

fixed, formula or allocation (see BillingPlanLineInput). New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) fixed, formula, allocation

labelstringrequired

Line text on the invoice.

tax_code_idstring (uuid) · nullablerequired

Tax code of the invoice line.

account_idstring (uuid) · nullablerequired

Revenue account of the invoice line.

item_idstring (uuid) · nullablerequired

The item the line bills.

price_sourcestringrequired

The price from this line (manual) or from the item (article). New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) manual, article

quantitystring · nullablerequireddecimal string

fixed lines: quantity per recipient.

unitstring · nullablerequired

Unit of measure.

unit_pricestring · nullablerequireddecimal string

fixed lines with a manual price: net price per unit.

qty_formulastring · nullablerequired

formula lines: the quantity formula.

price_formulastring · nullablerequired

formula lines: the price formula.

total_formulastring · nullablerequired

allocation lines: the formula of the amount to split.

weight_formulastring · nullablerequired

allocation lines: the weight formula.

is_activebooleanrequired

An inactive line bills nothing.

recipient_filterBillingPlanLineRecipientFilterrequired

Who the line bills.

2 attributes of recipient_filter
modestringrequired

Every recipient of the plan, or only the listed ones. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) all, selected

recipient_idsarray of string (uuid)required

The listed recipients when mode=selected; empty when mode=all.

missing_reading_policystringrequired

What a run does when a consumption the line uses has no reading. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) block, skip_line, estimate

negative_consumptionstringrequired

How a negative consumption is billed. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) zero, negative

condition_propertyBillingPlanLinePropertyCondition · nullablerequired

Bill only objects whose boolean property has this value.

2 attributes of condition_property
property_keystringrequired

A boolean property of the plan's object type.

equalsbooleanrequired

The value that bills the line.

condition_variableBillingPlanLineVariableCondition · nullablerequired

Bill only in periods where the plan's boolean variable has this value.

2 attributes of condition_variable
variable_keystringrequired

A boolean variable of the plan.

equalsbooleanrequired

The value that bills the line.

dimensionsarray of BillingPlanLineDimensionrequired

Dimension values on the line.

2 attributes of each item
dimension_idstring (uuid)required

The dimension.

dimension_value_idstring (uuid) · nullablerequired

Its value on the line; null only for the object type's own dimension (each recipient's object).

Used by