Transaction
ResponseA balanced set of postings to the general ledger. Transactions posted from a record (invoices, payments, bank lines, depreciation) are read-only here; change that record instead.
Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.
Attributes
18The transaction's number: its series and its number in that series, e.g. GL-12. Unique within its series and period.
ISO 4217 code of the transaction's currency: the book currency, or the currency its entries were typed in (foreign_debit / foreign_credit). A posting from a foreign-currency document is labelled with the document's currency.
The transaction's amount in its own currency: the larger of the debit and credit totals of the entries whose foreign_amount is in that currency (a transaction typed in it balances in it; a bank line's posting carries it on the bank entry only); for a posting from a foreign-currency invoice or credit note, whose entries are in the book currency, the document's own total.
Details
Null in the book currency and when neither says it.
What created a transaction: manual (entered by hand), import (brought over from another system), or the kind of record that posted it. Only manual and import transactions may be changed or deleted through this resource.
Known values (open: expect new ones) manual, sales_invoice, purchase_invoice, payment, bank, expense_report, depreciation, fixed_asset, payroll, vat_settlement, dividend, fx_revaluation, import
Entries, in order.
12 attributes of each item
Entry id, stable for the entry's lifetime, including edits of the transaction.
Debit amount as a decimal string, in the book currency (the transaction's book_currency); null when the entry credits.
Credit amount as a decimal string, in the book currency; null when the entry debits.
Dimension values on this entry; empty when it has none.
The entry's amount in currency, on the same side as its debit or credit (so never negative): on a transaction in another currency than the book currency, the amount the entry was typed in; on an account kept in a foreign currency, the amount in that currency.
Details
Null on an entry in the book currency. 0.00 only on a period-end revaluation entry, which moves the book value of a foreign balance and not the balance.
The currency of foreign_amount (ISO 4217): the account's own currency when the account is kept in one, else the transaction's currency. Null when the entry has no foreign amount.
When the transaction or one of its entries last changed. Also the basis of the ETag.
The rate the transaction is booked at: units of currency per one unit of the book currency. A transaction in another currency converts its entries at it; a posting from a foreign-currency document carries that document's rate. Null for a transaction in the book currency and for one booked before rates were kept.
The organization's book currency (ISO 4217), always EUR: the currency of every entry's debit and credit. currency is the transaction's own.
Where exchange_rate came from: ecb the European Central Bank's rate of the transaction's date, manual a rate stated with it, import the rate an import source recorded. Null in the book currency and on a posting from a document (its rate is the document's).
Known values (open: expect new ones) ecb, manual, derived, import
Your own id for this record (from the system you migrate from or sync with), unique per organization and resource.
The record that posted the transaction, when origin is neither manual nor import; else null.
2 attributes of source
The series the entry had in the system it came from (e.g. Merit's MA).