Update 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
Authorizations
Token-based authentication with required prefix "Token"
Path Parameters
Body
Dictionary tracking when reminders were sent for each day overdue (e.g., {'5': '2024-01-15', '10': '2024-01-20'})
Dictionary tracking when pre-due reminders were sent for each day before due date (e.g., {'3': '2024-01-10', '7': '2024-01-06'})
255255custom- Customnet_5- Net 5net_7- Net 7net_10- Net 10net_15- Net 15net_20- Net 20net_30- Net 30net_40- Net 40net_45- Net 45net_60- Net 60net_90- Net 90net_105- Net 105net_120- Net 120due_on_receipt- Due on Receipt
custom, net_5, net_7, net_10, net_15, net_20, net_30, net_40, net_45, net_60, net_90, net_105, net_120, due_on_receipt 1201209^\d{9}$draft- Draftopen- Opensent- Sentpartial- Partially Paidpaid- Paiduncollectible- Uncollectiblevoided- Voided
draft, open, sent, partial, paid, uncollectible, voided ID of the transaction in Anrok (set when transaction is created)
2553-100000000000000 < x < 100000000000000-100000000000000 < x < 100000000000000250250Discount amount for the invoice
-1000000000000000000 < x < 1000000000000000000Discount amount applied based on payment term early payment discount
-1000000000000000000 < x < 1000000000000000000500500500500500250True for invoices imported via opening balance migration (no finalization JE).
10-2147483648 <= x <= 2147483647Response
-1000000000000000000 < x < 1000000000000000000-1000000000000000000 < x < 1000000000000000000-1000000 < x < 1000000Accounts Receivable account for this invoice. Populated for single-AR and migrated invoices. NULL for multi-AR invoices (aging uses ChartTransactions instead).
Dictionary tracking when reminders were sent for each day overdue (e.g., {'5': '2024-01-15', '10': '2024-01-20'})
Dictionary tracking when pre-due reminders were sent for each day before due date (e.g., {'3': '2024-01-10', '7': '2024-01-06'})
255255custom- Customnet_5- Net 5net_7- Net 7net_10- Net 10net_15- Net 15net_20- Net 20net_30- Net 30net_40- Net 40net_45- Net 45net_60- Net 60net_90- Net 90net_105- Net 105net_120- Net 120due_on_receipt- Due on Receipt
custom, net_5, net_7, net_10, net_15, net_20, net_30, net_40, net_45, net_60, net_90, net_105, net_120, due_on_receipt 1201209^\d{9}$draft- Draftopen- Opensent- Sentpartial- Partially Paidpaid- Paiduncollectible- Uncollectiblevoided- Voided
draft, open, sent, partial, paid, uncollectible, voided ID of the transaction in Anrok (set when transaction is created)
2553-100000000000000 < x < 100000000000000-100000000000000 < x < 100000000000000250250Discount amount for the invoice
-1000000000000000000 < x < 1000000000000000000Discount amount applied based on payment term early payment discount
-1000000000000000000 < x < 1000000000000000000500500500500500250True for invoices imported via opening balance migration (no finalization JE).
10-2147483648 <= x <= 2147483647