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.

Account

Response

A general ledger account. Its code is a label that differs between charts; what the account means is in type and role.

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

Attributes

14
idstring (uuid)requiredread-only

Unique id of the record. Stable for its lifetime.

codestringrequired

Account number as it appears in the chart, digits only.

namestringrequired

Account name.

typeAccountTyperequired

Balance sheet or income statement class.

Known values (open: expect new ones) assets, liabilities, equity, revenue, expenses

roleAccountRole · nullablerequiredread-only

The part the account plays in the books, when the organization's settings give it one (the account sales post receivables to, the output VAT account, ...). Lets a client map charts by meaning, never by number.

Known values (open: expect new ones) receivables, payables, bank, cash, vat_output, vat_input, vat_settlement, prepayments_received, prepayments_paid, fixed_assets, accumulated_depreciation, retained_earnings, year_result, rounding, fx_difference

Details

Today the settings name receivables, payables, cash, bank (also every bank account's ledger account), vat_output, vat_input, vat_settlement and rounding; the other values are reserved and null means none.

is_archivedbooleanrequiredread-only

Archived accounts are hidden from pickers and refuse new postings.

requires_documentbooleanrequired

Whether a bank payment coded to this account should still be chased for a source document. Omitted on create, it follows the account's code (tax settlement, payroll, loans, bank charges and transfers between own accounts are not chased); omitted on update it is left as it is.

default_tax_code_idstring (uuid) · nullablerequired

The VAT code a new purchase line coded to this account starts with (one of the organization's own active tax codes), or null for none.

external_refstring · nullablerequiredat most 200 characters

Your own id for this record (from the system you migrate from or sync with), up to 200 characters, unique per organization and resource. Filter lists by it; on_conflict resolves a create against it.

report_placementsarray of AccountReportPlacementrequired

The report lines the account's balance is shown on: at most one line per report definition (built-in or the organization's own), ordered by definition code. An account on no line of a statement is left out of it.

Details

Only a line without children, formula or role takes a placement (400 REPORT_PLACEMENT_INVALID otherwise). A placement on a definition of the other statement (an asset account on an income statement) counts for coverage and shows nothing there. Placements are not dated: a change moves every statement built afterwards, an earlier year's annual report, PDF or XBRL included when it is regenerated (the annual report then shows it as drift). Writing them is a report-layout edit: it needs reports:write besides ledger:write.

2 attributes of each item
report_definition_idstring (uuid)required

The report definition (listReportDefinitions).

line_idstring (uuid)required

A line of that definition (its lines[].id). A built-in definition's line ids are the same in every organization.

currencystring · nullablerequired

The currency the account is kept in (ISO 4217), or null for the book currency. A posting to an account kept in a currency carries its amount in that currency (FX_ACCOUNT_CURRENCY_MISMATCH otherwise).

currency_lockedbooleanrequiredread-only

The account is a bank account's ledger account: its currency is the bank account's (null for the book currency) and changes only with the bank account's.

created_atstring (date-time)requiredread-only

When the record was created.

updated_atstring (date-time)requiredread-only

When the record last changed, its report placements included. Also the basis of the ETag.

Used by