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

# GetEmptySalesOrder

> Returns an empty sales order with default values without persisting it. This is equivalent to opening a new sales order dialog in the UI.



**query** `GetEmptySalesOrder: EmptySalesOrder!`

## Returns

`EmptySalesOrder!`

**`salesOrderDate`**: `DateTime`

The default sales order date (current date/time).

---

**`itemDescriptionType`**: `ItemDescriptionType!`

The default item description type from global settings.

---

**`readOnlyType`**: `ReadOnlyType!`

The default read-only type.

---

**`companyId`**: `ID!`

The company ID the sales order is initialized for.

---

**`languageId`**: `ID!`

The default language ID.

---

**`additionalWeight`**: `Decimal!`

The default additional weight from global settings.

---

**`vatId`**: `String`

The VAT ID of the company.

---

**`specialTaxTreatment`**: `SpecialTaxTreatment!`

The special tax treatment setting.

---

**`taxSetting`**: `TaxSetting!`

The tax setting.

---

**`taxReference`**: `TaxReference!`

The default tax reference of a new sales order (ShipmentAddress). This setting controls which data is used during tax calculation. Read-only.

---

**`departureCountry`**: `EmptySalesOrderDepartureCountry!`

The departure country information.

---

**`paymentDetails`**: `EmptySalesOrderPaymentDetails!`

The payment details.

---

**`billingAddress`**: `EmptySalesOrderAddress!`

The initialized empty billing address.

---

**`shipmentAddress`**: `EmptySalesOrderAddress!`

The initialized empty shipment address.

## Examples

```graphql Query
query GetEmptySalesOrder {
  GetEmptySalesOrder {
    salesOrderDate
    itemDescriptionType
    readOnlyType
    companyId
    languageId
    additionalWeight
  }
}
```

```json Response
{
  "data": {
    "GetEmptySalesOrder": {
      "salesOrderDate": "value",
      "itemDescriptionType": "NONE",
      "readOnlyType": "CHANGES_ALLOWED",
      "companyId": "id",
      "languageId": "id",
      "additionalWeight": "value"
    }
  }
}
```
