PurchaseInvoiceUpdateRequest
RequestSent in requests. Its values are closed: anything not listed is refused.
Attributes
1The fields to change.
15 attributes of data
The date to book the invoice at. Null follows date again. A posted invoice cannot move to another period.
State the rate instead of the European Central Bank's. Omitted keeps a stated rate; null returns to the bank's. Refused on a document in the book currency and on a credit note, which uses its invoice's rate (EXCHANGE_RATE_OVERRIDE_INVALID). With no bank rate for the date and none stated, 400 EXCHANGE_RATE_MISSING.
The VAT in the book currency as the seller states it, of the supply: a prepayment deduction keeps its prepayment's VAT, so the invoice's stored book_tax_total is this figure less the deducted VAT.
Details
Between 0 and twice the supply's converted VAT, else 400 BOOK_TAX_TOTAL_OUT_OF_RANGE. Omitted keeps a stated figure while the document's VAT is unchanged; null returns to the converted figure.
The supplier. Changing it copies the new supplier's details unless party is sent too. A posted invoice's supplier cannot change.
The supplier as the invoice names it.
The number printed on the supplier's invoice.
Reclassify a draft. Not on a posted invoice, nor on a credit note that credits one of your invoices.
One of invoice, credit_note
The whole new list of lines, in order.
11 attributes of each item
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.
The line's VAT code; its rate on the invoice date is frozen on the line.
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.
Dimension values on the line.
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.
A VAT-free rounding added to the total, in whole cents; null means none.