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.

Payment

Response

Money that moved, and the one document it settled. A receipt that paid several documents is one payment per document, sharing transaction_id. amount and currency are the money that actually moved; what it settled of the document, in the document's currency, is the allocation's amount.

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

Attributes

18
idstring (uuid)required

Unique id of the record. Stable for its lifetime.

datestring (date)required

Payment date; it sets the accounting period of the posting.

directionPaymentDirectionrequired

Money in (a customer pays a sales invoice, a supplier refunds a purchase) or out (a purchase invoice is paid, a customer is refunded). Named, never implied by a sign.

Known values (open: expect new ones) incoming, outgoing

amountstringrequireddecimal string

The money that moved, in currency: always positive, direction says which way it went. For a payment in the document's currency it equals the allocation's amount.

currencystringrequired

Currency of amount, the money that moved (ISO 4217): that of the bank or cash account. It is the document's currency unless a payment in another currency settled the document.

book_amountstring · nullablerequireddecimal string

amount in the organization's book currency, positive: what the ledger moved. Equals amount when currency is the book currency; null for a payment in another currency that has no book value yet.

methodPaymentMethodCoderequired

How it was paid. bank_transfer and cash move money through a bank or cash account. offset is a leg of a settlement that nets documents against each other, no money moving; bank_difference the small difference a bank payment left, written off to an account.

Known values (open: expect new ones) bank_transfer, cash, offset, bank_difference

Details

Only bank_transfer and cash can be recorded with createPayment.

bank_account_idstring (uuid) · nullablerequired

The bank account the money moved on: the account of the bank line it reconciles, or of the ledger account a bank transfer posted to. Null for cash, an offset or a written-off difference.

contact_idstring (uuid) · nullablerequired

Who paid or was paid, the contact of the document settled.

allocationsarray of PaymentAllocationrequiredat most 1 items

The document this payment settles, with the amount applied.

6 attributes of each item
document_typestringrequired

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

Known values (open: expect new ones) sales_invoice, purchase_invoice

document_idstring (uuid)required

The document settled.

amountstringrequireddecimal string

Amount applied to the document, positive, in the document's currency (not necessarily the currency of the money that moved, the payment's currency).

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 document's own exchange rate, the one its book value was booked at: document-currency units per 1 book-currency unit. 1 for a document in the book currency; null when the document has no rate.

book_amountstring · nullablerequireddecimal string

amount in the book currency at the document's rate: the part of the receivable or payable this allocation closes. Equals amount for a document in the book currency; null when the document has no rate.

exchange_differencestring · nullablerequireddecimal string

The exchange gain or loss this allocation realised, in the book currency: the book value of the money that moved minus book_amount. Positive is a gain on a sales invoice and a loss on a purchase invoice, negative the reverse; 0.00 when the money moved at the document's rate or the document is in the book currency; null when the document has no rate.

referencestring · nullablerequired

Bank reference or receipt number.

notesstring · nullablerequired

Free text.

transaction_idstring (uuid) · nullablerequired

The ledger transaction that books the payment: the entry it posted, or the imported transaction it was linked to.

bank_line_idstring (uuid) · nullablerequired

The bank statement line this payment reconciles, when it came from one.

originPaymentOriginrequired

import: the payment came in with an import, or was created linked to an imported transaction (transaction_id on create); live: it was recorded and posted here. New values may be added: treat a value you do not know as valid, not as an error.

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

external_refstring · nullablerequired

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

created_atstring (date-time)required

When the record was created.

updated_atstring (date-time)required

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

Used by