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.

SalesDocument

Response

What a sales invoice and a quote share.

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

Attributes

27
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 document is booked at: document-currency units per 1 book-currency unit. Frozen when the document is issued.

book_currencystringrequired

The organization's book currency (ISO 4217), always EUR; the book_ figures are in it.

book_net_totalstring · nullablerequireddecimal string

net_total in the book currency: the sum of the lines' book_net_amount.

book_tax_totalstring · nullablerequireddecimal string

The VAT in the book currency: the VAT the document states in it when it states one, else the sum of the lines' book_tax_amount.

book_totalstring · nullablerequireddecimal string

The document's total in the book currency, book_net_total plus book_tax_total: the figure the receivable or payable is booked at.

idstring (uuid)required

Unique id of the record. Stable for its lifetime.

numberstring · nullablerequired

Document number, assigned on issue; null while a draft.

datestring (date)required

Document date.

posting_datestring (date)required

The date the document is booked at -- its ledger entry, the period checked and the VAT return it falls into. Equal to date unless the two were set apart.

due_datestring (date)required

Payment due date.

currencystringrequired

Document currency.

exchange_rate_sourceExchangeRateSource · nullablerequired

Where exchange_rate came from. Null for a document in the book currency (its rate 1 is not looked up) and for a foreign-currency document with no rate yet.

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

contact_idstring (uuid) · nullablerequired

The customer; null for a one-off party with no contact.

partyInvoicePartyrequired

The customer as printed on the document, snapshotted when it is saved.

5 attributes of party
namestringrequired

Name.

registry_codestring · nullablerequired

Register code (a company), or a person's personal code.

vat_numberstring · nullablerequired

VAT number, with country prefix.

addressstring · nullablerequired

Address as one printed line.

emailstring · nullablerequired

E-mail the document is sent to.

net_totalstringrequireddecimal string

Total net of VAT.

tax_totalstringrequireddecimal string

Total VAT.

totalstringrequireddecimal string

Total to pay, VAT and rounding_amount included.

rounding_amountstringrequireddecimal string

Rounding added to the total, 0 when none.

notesstring · nullablerequired

The note to the customer printed above the rows.

email_delivery_statusstring · nullablerequired

The worst outcome of the document's e-mails; null when never sent. Precedence, worst first: complained, bounced, failed, delivered, sent, queued. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) queued, sent, delivered, bounced, complained, failed, held, previewed

is_archivedbooleanrequired

Archived documents are hidden from the default list.

originstringrequiredread-only

How the document came in: live (entered here), opening (an open item of the opening state) or import (brought over from another system, its posting an imported transaction).

Known values (open: expect new ones) live, opening, import

Details

Exporters skip opening documents: they travel in the opening state. New values may be added: treat a value you do not know as valid, not as an error.

external_refstring · nullablerequired

Your own id for the document, unique per organization.

created_atstring (date-time)required

When the record was created.

updated_atstring (date-time)required

When the record or one of its lines last changed; the version an If-Match names.

linesarray of SalesInvoiceLineItem

The lines, in order. In lists only with expand=lines.

19 attributes of each item
book_net_amountstring · nullablerequireddecimal string

net_amount in the book currency.

book_tax_amountstring · nullablerequireddecimal string

tax_amount in the book currency; the figure the VAT return reads.

idstring (uuid)required

Line id, stable for the line's lifetime, including edits of the document.

positionintegerrequiredat least 1

1-based place of the line in the document.

namestringrequired

Line text as printed.

quantitystringrequireddecimal string

Quantity, up to 10 fraction digits; a negative quantity is a return.

unitstringrequired

Unit of measure.

unit_pricestringrequireddecimal string

Net price per unit, up to 10 fraction digits (a price component is priced to the tenth of a cent); stored and answered as sent.

discount_percentstringrequireddecimal string

Discount on the line in percent, 0-100.

tax_code_idstring (uuid) · nullablerequired

The tax code of the line, frozen when the document is issued.

account_idstring (uuid)required

Revenue account of the line.

net_amountstringrequireddecimal string

The line net of VAT, after its discount.

tax_amountstringrequireddecimal string

The VAT of the line.

gross_amountstringrequireddecimal string

net_amount plus the VAT billed on the line; a reverse-charge line bills none.

item_idstring (uuid) · nullable

The item the line was made from, if any.

descriptionstring · nullable

Longer text under the name.

tax_ratestring · nullabledecimal string

VAT rate in percent frozen on the line (24.00); null when the code has no rate.

dimensionsarray of InvoiceLineDimension

Dimension values on this line.

2 attributes of each item
dimension_idstring (uuid)required

The dimension.

value_idstring (uuid)required

Its value on this line.

credited_invoice_idstring (uuid) · nullable

The issued invoice this row corrects (a return, or a price cut of an earlier sale); null on an ordinary row.

Used by