Voids an invoice.
The voidInvoice()
function returns a Promise that resolves
when the invoice with the specified ID is voided.
Calling voidInvoice()
on a draft invoice causes an error.
ID and version of the invoice to void.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.