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.

ReportDefinitionInput

Request

A new report definition. With based_on the lines (and, unless copy_accounts is false, the account placements) are copied from that layout and every other field defaults to the source's; lines cannot be sent with it (change the copy with updateReportDefinition). Without it, basis is required.

Sent in requests. Its values are closed: anything not listed is refused.

Attributes

8
codestringrequired1–100 characters

Code to run it with, unique per organization and version. A built-in layout's code may be taken only by a copy of that layout (based_on the same code): the copy then replaces it for this organization, keeping its role lines, XBRL elements and account placements.

Details

Any other use of a built-in code is 409 REPORT_DEFINITION_BUILT_IN pointing at /data/code.

namestring · nullableat most 200 characters

Name.

statement_typestring1–100 characters

Statement kind as a label; defaults to the source's, or custom.

basisstring

as_of balances at a date, flow movement over a range. Required without based_on.

One of as_of, flow

versionstring1–50 characters

Version label; defaults to the source's, or 1.

linesarray of ReportDefinitionLineInputat most 1000 items

The lines in display order, each parent before or after its children.

10 attributes of each item
codestringrequired1–100 characters

Code, unique in the definition.

label_etstringrequired1–500 characters

Text of the line in Estonian.

idstring (uuid)

An existing line of this definition to keep.

parent_codestring · nullableat most 100 characters

Code of the line (as sent) this one sits under; null or absent for a top line.

label_enstring · nullableat most 500 characters

Text of the line in English.

negateboolean

Show the amount with the opposite sign to how the ledger nets it (default false).

is_subtotalboolean

Shown as a subtotal (default false).

value_kindstring

How the values are shown; absent means currency.

One of currency, ratio, percent

formulastring · nullableat most 2000 characters

For a computed line: codes of other lines with numbers, + - * / and parentheses. Null or absent for an ordinary line.

rolestring · nullable

Accepted only as read, so a definition read can be sent back: a kept line's role as stored, null on a new line. Any other value is refused; the app sets roles.

One of current_year_earnings, retained_earnings, tax_debts, tax_prepayments

based_onstringat most 100 characters

Code of a built-in or own layout to copy.

copy_accountsboolean

With based_on: copy the organization's account placements onto the new lines (default true).

Used by