v1
latestOpenAPI 3.0.32026-07-26362271803.3 KBUpdate Invoice
Performs a complete update of an existing accounting invoice using PUT semantics.
This endpoint allows full replacement of invoice data including:
- Complete invoice metadata update (dates, amounts, terms, client, entity)
- Full line item replacement with new products, quantities, rates, and tax calculations
- Journal entry recalculation and update with new accounting transactions
- Exchange rate updates for multi-currency invoices
**Important Notes:**
- This is a full replacement operation - all invoice data will be updated
- Missing fields in the request will be set to null or default values
- Existing line items will be completely replaced with the new line items
- Journal entries will be updated to reflect all changes
Path parameters
Request body
Withholding context for the invoice's entity.
estimated_withholding_amount covers only the remaining amount due (null once fully paid); withheld_to_date is the signed sum of posted withholding, so actuals replace the estimate as receipts come in. Certificate-based schemes estimate from the entity certificate's rate (falling back to the scheme default); rules-based schemes sum each line's selected rate over the line amount, scaled by the remaining-due proportion.
ID of the transaction in Anrok (set when transaction is created)
Discount amount for the invoice
Discount amount applied based on payment term early payment discount
True for invoices imported via opening balance migration (no finalization JE).
Accounts Receivable account for this invoice. Populated for single-AR and migrated invoices. NULL for multi-AR invoices (aging uses ChartTransactions instead).
Response
Withholding context for the invoice's entity.
estimated_withholding_amount covers only the remaining amount due (null once fully paid); withheld_to_date is the signed sum of posted withholding, so actuals replace the estimate as receipts come in. Certificate-based schemes estimate from the entity certificate's rate (falling back to the scheme default); rules-based schemes sum each line's selected rate over the line amount, scaled by the remaining-due proportion.
ID of the transaction in Anrok (set when transaction is created)
Discount amount for the invoice
Discount amount applied based on payment term early payment discount
True for invoices imported via opening balance migration (no finalization JE).
Accounts Receivable account for this invoice. Populated for single-AR and migrated invoices. NULL for multi-AR invoices (aging uses ChartTransactions instead).