TransactionEntryInput
RequestOne entry (leg) of a transaction. Entries are sent as a whole list: an entry with an id keeps that entry, one without is new, one left out is removed. Exactly one of debit and credit carries a positive amount; the other is null, 0 or left out.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
10An 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.