v2
latestSwagger 2.02026-08-04108164321.0 KBUpdates an existing draft invoice. Only fields listed in the FieldsToUpdate array will be modified. When LineItems is included in FieldsToUpdate, all existing line items not present in the array are deleted.
Request body
Required: The collection of Field Names you wish to update. Possible Values: CustomerPONumber, DateIssued, PaymentTerms, DueDate, Subject, Notes, TransactionTaxConfigCode, ExchangeRate, InvoiceTemplateIDFK, InvoiceNumber, LineItems
The ID of the Invoice to update
Plain UTF8 text. 100 characters max
The Date the Invoice is issued. Date should be specified as local date.
If the Due Date is specified then Payment Terms will be set to -1 (Custom). Otherwise DueDate will be auto calculated based on the provided IssueDate and Payment Term. Due Date must be greater than or equal to Issue Date.
Invoice Subject in plain UTF8 text. (no HTML). 255 characters max
Invoice Notes in plain UTF8 text. (no HTML). Max 2000 characters
Possible values are (EX --- Tax Exclusive, INC --- Tax Inclusive). If left set to null/emptystring it will use the account default.
Exchange rate is only valid for invoices in currency other than default account currency. If not specified it will get the market rate based on the Date Issued.
And id for an invoice template in the account. If set to Null the account default invoice template will be used.
Pass a string or integer. If an integer is passed then the largest integer will be use as the seed to auto generate the next invoice number in the sequence.
If true, fires the invoice_updated webhook event to any subscribed endpoints (and timesheet_updated for any timesheet rows whose invoice link changed). Defaults to false to preserve existing integration behaviour.
Response
Returns the updated invoice details.
Unique identifier for the invoice transaction.
The Avaza account this invoice belongs to.
Prefix used in the invoice number (e.g. 'INV').
The full invoice number including prefix.
The customer company ID this invoice is for.
Name of the customer company.
The external contact user ID associated with this invoice.
Subject line for the invoice.
Date the invoice was issued.
Date the invoice was sent to the customer.
Payment due date.
Current status. Values: Draft, Sent, Late, Paid, Partial, Void.
Total tax amount across all line items.
Tax configuration: 'EX' (exclusive) or 'INC' (inclusive).
Outstanding balance remaining on the invoice.
ISO 3-character currency code for the invoice.
Total amount of the invoice including tax.
Exchange rate to the account's base currency. 1.0 if same currency.
Additional notes or comments on the invoice.
Customer's purchase order number for reference.
Date and time the record was created.
Date and time the record was last updated.