> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeleteSalesInvoiceCommandRequestInput

> Deletes a draft with its line items. A finalized invoice cannot be deleted; cancel it. A refusal carries 'blockers' with all reasons, each with a code and a message. Errors: errorCode is SALES_INVOICE_NOT_FOUND (no sales invoice with this ID); errorCode is SALES_INVOICE_NOT_DRAFT (the invoice is finalized or cancelled); errorCode is SALES_INVOICE_IS_EXTERNAL (the sales order of the invoice is invoiced externally); errorCode is SALES_ORDER_NOT_CHANGEABLE (the sales order must not be changed); errorCode is SALES_INVOICE_HAS_PAYMENTS (a payment exists on the invoice); errorCode is SALES_INVOICE_CORRECTION_HAS_PAYMENTS (a payment exists on a correction of the invoice). - Request



**Kind**: `input`

## Fields

**`salesInvoiceId`**: `ID!` (required)

The ID of the sales invoice.

---

**`disableAutomaticWorkflows`**: `Boolean`

Suppresses the automatic workflow triggers of this call. Defaults to false when omitted.

