Update an existing invoice.
The updateInvoice()
function returns a Promise that resolves to the ID and version of the updated invoice.
Note: The customer listed on the invoice must be an existing site contact or member.
ID and version of the invoice to update.
The data used to update the invoice.
Fields to update in the invoice. If not specified, all fields update.
One of:
"customer"
"lineItems"
"number"
"locale"
"discount"
"title"
"currency"
"issueDate"
"dueDate"
"taxes"
"totals.total"
"totals.subtotal"
"totals.subtotal"
"totals.fees"
"metadata.notes"
"metadata.legalTerms"
"metadata.sourceUrl"
"metadata.sourceProperties"
"metadata.source"
"metadata.sourceRefId"
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.