TransactionUpdateRequest
RequestThe body of updateTransaction.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
1Fields to change on a manual or import transaction. Sending entries replaces the entry list by id.
8 attributes of data
ISO 4217 code of the currency the entries are typed in. Omitted, the transaction keeps its own. A move to another foreign currency sends the entries typed in it (400 TRANSACTION_CURRENCY_NOT_SUPPORTED otherwise); a move to the book currency keeps each entry's book amount when no entries are sent.
Details
An older entry labelled with another currency over book-currency amounts (a posting converted from a document) may send its label back unchanged.
Only on a transaction in another currency. Omitted, the rate stays while the date does; a moved date takes the European Central Bank's rate of the new date unless the rate was stated.
Details
Sent, that rate (manual); null, the bank's rate again. A new rate re-computes the book amounts of the entries from their foreign amounts.
The whole entry list: an entry with an id keeps that entry, one without is new, one left out is removed. Debits must equal credits.
10 attributes of each item
An existing entry of this transaction to keep; omit for a new entry (TRANSACTION_ENTRY_NOT_FOUND otherwise). A kept entry keeps what it is not sent: its text, contact, tax code and dimensions.
Debit amount in the book currency, at most 10 decimal places; null, 0 or left out when the entry credits. On a transaction in another currency it is computed from foreign_debit: leave it out (a value sent must be the computed one, as a read answers it; TRANSACTION_ENTRY_AMOUNT_INVALID otherwise).
Credit amount in the book currency, at most 10 decimal places; null, 0 or left out when the entry debits. On a transaction in another currency it is computed from foreign_credit, as debit.
On a transaction in another currency than the book currency, the debit in that currency (whole cents); null, 0 or left out when the entry credits. Each side's total converts once at the transaction's exchange_rate and is shared over its entries by largest remainder, so debits equal credits in the book currency too.
Details
On a transaction in the book currency it is refused (VALIDATION_ERROR).
The credit in the transaction's currency, as foreign_debit.
One of the organization's tax codes, when the entry is a VAT-relevant posting.
Dimension values on this entry. Sent, it replaces the entry's values ([] removes them); left out, a kept entry keeps its values.
An import transaction's series in the system it came from.
An import transaction's number in the system it came from.