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.

DocumentCreated

Response

A created document together with where to upload its bytes.

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

Attributes

2
documentDocumentrequired

The document, awaiting_upload until confirmed.

19 attributes of document
idstring (uuid)required

Unique id of the document. Stable for its lifetime.

file_namestringrequired

Original filename, display-only (server-generated keys avoid path traversal)

content_typestringrequired

Server-resolved content-type (D-06)

size_bytesinteger · nullablerequired

Nullable because issued rows have no known size (the PDF is a lazy render cache, D-02) — never faked as 0 (Phase 122 UI-SPEC). Always non-null for received rows.

statusstringrequired

pending until the upload is confirmed, then available; archived once archived (:archive, reversible with :unarchive). New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) pending, available, archived

sourcestringrequired

How the document arrived: manual (uploaded through the app or this API), email (sent to the company's document address), merit_import / source_import (carried over from another accounting system), generated (made by the app itself).

Known values (open: expect new ones) manual, email, ocr, bank_import, merit_import, source_import, generated

Details

New values may be added: treat a value you do not know as valid, not as an error.

extraction_statusstring · nullablerequired

Status of the most recent OCR extraction run for this document (Phase 400 EXT-01, core.document_extraction). Extraction state rides this existing read model — there is no separate polling endpoint; the Archive polls listDocuments while any row is non-terminal.

Known values (open: expect new ones) queued, extracting, extracted, failed

Details

Null when the document has never been digitized, and always null on issued rows (they are synthesized from an invoice, not stored objects, so no run can exist). Terminal states are 'extracted' and 'failed'; a re-extract appends a NEW run rather than mutating a terminal one, so this always reflects the newest. New values may be added: treat a value you do not know as valid, not as an error.

file_statusstringrequired

Whether the file can be used: awaiting_upload until its upload is confirmed; scanning while the virus check runs; ready once it can be downloaded and digitized; quarantined when the check found malware (or could not judge the file and the deployment blocks such files) -- it is never downloaded or digitized.

Known values (open: expect new ones) awaiting_upload, scanning, ready, quarantined

Details

New values may be added: treat a value you do not know as valid, not as an error.

created_atstring (date-time)requiredread-only

When the document was created (its upload was announced).

updated_atstring (date-time)requiredread-only

When the document last changed. Also the basis of the ETag.

is_linkedboolean · nullable

Whether the document is attached to at least one record; the links themselves are GET /v1/documents/{id}/links. Always computed for a public caller. (App: issued Archive rows are always true, D-04; target-scoped reads too, WR-03.)

document_datestring (date) · nullable

The date printed on the document, when known (not the upload date).

uploaded_bystring (uuid) · nullable

The user who uploaded the document; for an API credential, its service user.

archive_reasonstring · nullable

Optional reason recorded when the document was archived.

kindstring · nullable

What the document is, as its OCR reading or a person in the app typed it. Null until either has. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) invoice, credit_note, receipt, tax_notice, account_statement, delivery_note, contract, other, quote, late_fee, prepayment_invoice

contact_idstring (uuid) · nullable

The contact on the document, once filing or OCR matched one.

sha256string · nullableread-only

SHA-256 of the stored bytes, hex, once uploaded. Lets a migration prove a file arrived unchanged. Null for a file confirmed before hashing existed.

external_refstring · nullableat most 200 characters

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

extractionDocumentReading · nullable

What the latest successful OCR run read. Only with expand=extraction on GET /v1/documents/{id}; null when no run has succeeded.

11 attributes of extraction
run_idstring (uuid)required

The OCR run this reading came from; its document_digitize job has this id.

document_typestring · nullablerequired

What the reading took the document for (invoice, credit_note, receipt, ...).

supplierDocumentReadingParty · nullablerequired

The seller as printed.

5 attributes of supplier
namestring · nullablerequired

Name as printed.

registry_codestring · nullablerequired

Business register code as printed.

vat_numberstring · nullablerequired

VAT number as printed.

addressstring · nullablerequired

Address as printed, one line.

emailstring · nullablerequired

E-mail as printed.

invoice_numberstring · nullablerequired

The invoice or receipt number as printed.

datestring · nullablerequired

The document date as read, normally YYYY-MM-DD.

due_datestring · nullablerequired

The due date as read, normally YYYY-MM-DD.

currencystring · nullablerequired

The currency as read (ISO 4217).

net_totalstring · nullablerequired

The total without VAT, as read.

tax_totalstring · nullablerequired

The VAT total, as read.

totalstring · nullablerequired

The gross total, as read.

linesarray of DocumentReadingLinerequired

The lines as read, in reading order.

8 attributes of each item
namestring · nullablerequired

Line text as printed.

quantitystring · nullablerequired

Quantity as read, a decimal string.

unitstring · nullablerequired

Unit of measure as printed.

unit_pricestring · nullablerequired

Unit price as read.

net_amountstring · nullablerequired

Line total without VAT, as read.

tax_ratestring · nullablerequired

VAT rate in percent, as read.

tax_amountstring · nullablerequired

Line VAT, as read.

totalstring · nullablerequired

Line total with VAT, as read.

uploadDocumentUpload · nullablerequired

Where to PUT the bytes, then call :confirm. Null when the document already has its bytes (on_conflict=return on an uploaded one), and on a dry_run.

4 attributes of upload
urlstring (uri)required

PUT the raw bytes here.

methodstringrequired

HTTP method to upload with: always PUT.

headersobjectrequired

Headers to send with the PUT, exactly as given (the URL is signed over them).

expires_atstring (date-time)required

When the URL stops working.

Used by