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.

OpeningPrepayment

Request and response

An advance held at the opening date: one a customer paid us (received, a liability) or one we paid a supplier (paid, an asset). Its money is already in its account's balance, so nothing is posted; it can be offset against later invoices like any advance. An advance in another currency is held in that currency at its rate and never revalued (RTJ 1 p 97), as an advance received after the opening is; it ties to its account at book_amount. Not supported yet for an advance RECEIVED by a VAT-registered company (OPENING_STATE_RECEIVED_PREPAYMENT_VAT): its final invoice here would declare the VAT the earlier books already declared; net it into the balances instead. Paid advances are unaffected.

Used in requests and responses. In a request only the listed values are accepted; in a response, tolerate values not listed here.

Attributes

9
directionstringrequired

Received from a customer, or paid to a supplier.

Values (closed in requests, open in responses) received, paid

contact_idstring (uuid)required

Customer or supplier.

datestring (date)required

When it was paid, on or before the opening date.

amountstringrequireddecimal string

The amount still held at the opening date, in currency; greater than zero.

account_idstring (uuid)required

The account that holds it (received advances, paid advances); not the receivable or payable account.

external_refstring · nullable1–200 characters

Your own id for the advance.

currencystringpattern ^[A-Z]{3}$

Currency (ISO 4217) of amount: the book currency or another currency the company has activated (CURRENCY_NOT_ACTIVE). Omitted: the book currency.

exchange_ratestring · nullabledecimal 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 advance is held at, in ExchangeRate's direction. Omitted or null: the ECB rate of the advance's own date, the day it was paid (it is never revalued, so the source books hold it at that day's euros), the newest rate at or before it, at most 7 days back (EXCHANGE_RATE_MISSING when the bank has none).

Details

On an advance in the book currency only 1 is accepted (EXCHANGE_RATE_OVERRIDE_INVALID); on one in another currency 1 is refused (OPENING_STATE_FOREIGN_RATE_OF_ONE). Read back as stored, 1 in the book currency.

book_amountstring · nullabledecimal string

What it is held at in the book currency, the figure that ties to its account's balance. Omitted or null: amount at exchange_rate. Stated on an advance in another currency: the source books' own figure, stored as it is (an advance part used before the cut-over holds the book value its uses left, not its remaining amount at the rate); greater than zero (OPENING_STATE_PREPAYMENT_INVALID).

Details

On an advance in the book currency only amount is accepted (EXCHANGE_RATE_OVERRIDE_INVALID). Read back as stored; with as_of, what the ledger holds of it on that day. Null on an advance in another currency that has no book value yet.

Used by