VoidInvoice
Voids an existing invoice in QuickBooks Online, preserving the record but nullifying its financial impact.
Input
| Name | Type | Description |
| InvoiceId | String | The unique identifier (Id) of the invoice that you want to void. This Id tells QuickBooks Online which invoice record should be marked as void, effectively canceling its financial impact without deleting it. |
| SyncToken | String | The version control token for the specified invoice that is used to prevent conflicting updates. QuickBooks Online increments this sync token each time the invoice is modified, and only the latest sync token is accepted when voiding the invoice. |
| BillEmail | String | The email address to which the invoice is sent. If the EmailStatus parameter for the invoice is set to NeedToSend, the billing email address is required before QuickBooks Online can complete the void operation and handle related notifications. |
Result Set Columns
| Name | Type | Description |
| Status | String | The execution status that is returned by the stored procedure after attempting to void the invoice. This field indicates whether the void operation succeeded, failed, or returned a warning. |