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

# CreateSalesInvoiceFromDeliveryNoteCommandResponse

> Creates a sales invoice for the goods of a delivery note. With 'includeShippingLineItem' the shipping charge is added, with 'includeOpenNonItemLineItems' the open line items that are no items are taken over. Without 'asDraft' the invoice is finalized at once and gets its number. A refusal carries 'blockers' with all reasons, each with a code and a message. Errors: errorCode is DELIVERY_NOTE_NOT_FOUND (no delivery note with this ID); errorCode is SALES_ORDER_NOT_FOUND (the delivery note has no sales order); errorCode is SALES_ORDER_NOT_INVOICEABLE (the order cannot be invoiced; the blockers say why, for example SALES_ORDER_FULLY_INVOICED, NO_OPEN_LINE_ITEMS, NOTHING_DELIVERED, SALES_ORDER_CANCELLED, SALES_ORDER_ARCHIVED, NOT_A_SALES_ORDER, SALES_ORDER_PENDING, SALES_ORDER_STATUS_INVALID, SALES_ORDER_EXTERNALLY_INVOICED, DUPLICATE_OF_INVOICE, SALES_ORDER_READ_ONLY, INVALID_KIT_OR_CONFIGURATION, CUSTOMER_MISSING, BILLING_ADDRESS_MISSING, SHIPMENT_ADDRESS_MISSING, PAYMENT_METHOD_MISSING, SHIPPING_METHOD_MISSING or TAX_SETTING_MISSING). - Response



**Kind**: `object`

## Fields

**`salesInvoiceId`**: `ID!`

The ID of the created sales invoice.

---

**`salesInvoiceNumber`**: `String`

The invoice number. Absent when the invoice was created as a draft.

---

**`clientId`**: `String`

The temporary ID from the request, if one was sent.

