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.

PurchaseInvoiceLineInput

Request

A line of a purchase invoice.

Sent in requests. Its values are closed: anything not listed is refused.

Attributes

11
namestringrequired1–255 characters

Line text, as printed.

quantitystringrequireddecimal string

Quantity; negative for a supplier's return row.

unitstringrequiredat most 50 characters

Unit of measure.

unit_pricestringrequireddecimal string

Net price per unit, as the supplier printed it; may be negative (a discount row). A document whose total is below zero is refused (INVOICE_TOTAL_NEGATIVE); register it as a credit note.

tax_code_idstring (uuid)required

The line's VAT code; its rate on the invoice date is frozen on the line.

account_idstring (uuid)required

The expense or asset account. Never the organization's accounts payable or receivable control account (400 PURCHASE_LINE_CONTROL_ACCOUNT at the line), except a kept line that stays on the account it already has.

idstring (uuid)

Keep the line with this id (from the invoice's lines); omit it for a new line.

item_idstring (uuid) · nullable

The item the line is for, if any.

descriptionstring · nullableat most 1000 characters

Longer text under the name.

dimensionsarray of DimensionAssignmentat most 50 items

Dimension values on the line.

2 attributes of each item
dimension_idstring (uuid)required

The dimension.

value_idstring (uuid)required

The value within that dimension.

tax_amountstring · nullabledecimal string

The line's VAT as the document states it. Kept only on a historical create -- one that links its imported transaction_id, or is dated before the organization's opening date; the document's VAT is then these figures, not the ones its codes derive.

Details

On any other write it may only repeat the VAT the line derives (a read sent back), and is not stored; another figure is 400 VALIDATION_ERROR by pointer. A line with no VAT rate states none; the VAT sits on the line value's side of zero.

Used by