voidInvoice( )


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.

Method Declaration
Copy
Method Parameters
idIdAndVersionRequired

ID and version of the invoice to void.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?