> ## 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.

# CreateSalesInvoiceCommandRequestInput

> Creates a new sales invoice for a sales order. - Request



**Kind**: `input`

## Fields

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

The ID of the sales order to create the invoice for.

---

**`invoiceOnlyDeliveredQuantity`**: `Boolean`

If true, only the delivered quantities of the sales order line items are added to the new invoice.

---

**`asDraft`**: `Boolean`

If true, the invoice will be created as a draft. An invoice draft has no invoice number yet and can be edited until finalized.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

