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.

Transaction

Response

A balanced set of postings to the general ledger. Transactions posted from a record (invoices, payments, bank lines, depreciation) are read-only here; change that record instead.

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

Attributes

18
idstring (uuid)required

Transaction unique identifier

numberstringrequired

The transaction's number: its series and its number in that series, e.g. GL-12. Unique within its series and period.

datestring (date)required

Posting date.

period_idstring (uuid)required

Period the transaction falls into.

descriptionstring · nullablerequired

Transaction text.

currencystringrequiredat most 3 characters

ISO 4217 code of the transaction's currency: the book currency, or the currency its entries were typed in (foreign_debit / foreign_credit). A posting from a foreign-currency document is labelled with the document's currency.

foreign_totalstring · nullablerequireddecimal string

The transaction's amount in its own currency: the larger of the debit and credit totals of the entries whose foreign_amount is in that currency (a transaction typed in it balances in it; a bank line's posting carries it on the bank entry only); for a posting from a foreign-currency invoice or credit note, whose entries are in the book currency, the document's own total.

Details

Null in the book currency and when neither says it.

originTransactionOriginWordrequired

What created a transaction: manual (entered by hand), import (brought over from another system), or the kind of record that posted it. Only manual and import transactions may be changed or deleted through this resource.

Known values (open: expect new ones) manual, sales_invoice, purchase_invoice, payment, bank, expense_report, depreciation, fixed_asset, payroll, vat_settlement, dividend, fx_revaluation, import

entriesarray of TransactionEntryrequired

Entries, in order.

12 attributes of each item
idstring (uuid)required

Entry id, stable for the entry's lifetime, including edits of the transaction.

positionintegerrequiredat least 1

1-based place of the entry in the transaction.

account_idstring (uuid)required

Account posted to.

account_codestringrequired

The account's number, for readability.

debitstring · nullablerequireddecimal string

Debit amount as a decimal string, in the book currency (the transaction's book_currency); null when the entry credits.

creditstring · nullablerequireddecimal string

Credit amount as a decimal string, in the book currency; null when the entry debits.

descriptionstring · nullablerequired

Entry text.

dimensionsarray of DimensionAssignmentrequired

Dimension values on this entry; empty when it has none.

2 attributes of each item
dimension_idstring (uuid)required

The dimension.

value_idstring (uuid)required

The value within that dimension.

foreign_amountstring · nullabledecimal string

The entry's amount in currency, on the same side as its debit or credit (so never negative): on a transaction in another currency than the book currency, the amount the entry was typed in; on an account kept in a foreign currency, the amount in that currency.

Details

Null on an entry in the book currency. 0.00 only on a period-end revaluation entry, which moves the book value of a foreign balance and not the balance.

currencystring · nullable

The currency of foreign_amount (ISO 4217): the account's own currency when the account is kept in one, else the transaction's currency. Null when the entry has no foreign amount.

contact_idstring (uuid) · nullable

The contact this entry names, or null.

tax_code_idstring (uuid) · nullable

The entry's VAT classification (a journal leg the VAT return routes), or null.

created_atstring (date-time)required

When the transaction was created.

updated_atstring (date-time)required

When the transaction or one of its entries last changed. Also the basis of the ETag.

exchange_ratestring · nullablerequireddecimal stringpattern ^([1-9][0-9]{0,14}(\.[0-9]{1,10})?|0\.([1-9][0-9]{0,9}|0[1-9][0-9]{0,8}|00[1-9][0-9]{0,7}|000[1-9][0-9]{0,6}|0000[1-9][0-9]{0,5}|00000[1-9][0-9]{0,4}|000000[1-9][0-9]{0,3}|0000000[1-9][0-9]{0,2}|00000000[1-9][0-9]?|000000000[1-9]))$

The rate the transaction is booked at: units of currency per one unit of the book currency. A transaction in another currency converts its entries at it; a posting from a foreign-currency document carries that document's rate. Null for a transaction in the book currency and for one booked before rates were kept.

book_currencystringrequired

The organization's book currency (ISO 4217), always EUR: the currency of every entry's debit and credit. currency is the transaction's own.

exchange_rate_sourceExchangeRateSource · nullablerequired

Where exchange_rate came from: ecb the European Central Bank's rate of the transaction's date, manual a rate stated with it, import the rate an import source recorded. Null in the book currency and on a posting from a document (its rate is the document's).

Known values (open: expect new ones) ecb, manual, derived, import

external_refstring · nullableat most 200 characters

Your own id for this record (from the system you migrate from or sync with), unique per organization and resource.

sourceTransactionSource · nullable

The record that posted the transaction, when origin is neither manual nor import; else null.

2 attributes of source
typestringrequired

The record's type: sales_invoice, purchase_invoice, bank_line, payment, settlement, prepayment, pay_run, payout, leave_reserve, tsd_filing, depreciation_run, fixed_asset, vat_return, tax_settlement, expense_report or fx_revaluation_run.

idstring (uuid)required

The record's id.

source_seriesstring · nullable

The series the entry had in the system it came from (e.g. Merit's MA).

source_numberstring · nullable

The number it had there, kept beside Tracken's own number.

Used by