Voids an invoice.
The voidInvoice() function returns a Promise that resolves when the invoice with the specified ID is voided.
voidInvoice()
Calling voidInvoice() on a draft invoice causes an error.
ID and version of the invoice to void.