Update invoice
Changes the revenue category and the spread of an invoice’s line items and rebooks their revenue. It changes nothing else: the invoice date, amounts and adjustments stay as they are.
Line items have no IDs, so send line_items with exactly one entry per line item, in the
order the invoice returns them. Leave category_id or spread_months out of an entry to
keep that line’s category or spread. A refund (negative) line always books to the company’s
refunds category and is recognized at once, so sending it a different category or a spread
is refused. Sending the values the invoice already has returns it unchanged.
Works on open and paid invoices. A paid invoice stays matched to its deposit: its revenue is
rebooked, and the deposit’s category follows the invoice’s first revenue line, as when it was
matched. Refused for a voided invoice and for a paid invoice whose deposit also pays other
invoices (invoice_not_editable), and for an invoice dated in a tax year the company finished
with Finta (closed_books). Any refusal changes nothing.
Requires Invoices: Manage. A paid invoice also requires Transactions: Manage, because its deposit is rebooked.
Authorizations
Body
Response
The updated invoice
An invoice the company sent, with the revenue it booked and the deposit that paid it.