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

# SalesOrder

> A sales order with its header data, addresses and status. The line items are read with 'QuerySalesLineItemsBySalesOrderId'.



**Kind**: `object`

## Fields

**`createdBy`**: `ID`

The user who created the sales order.

---

**`createdAt`**: `DateTime!`

When the sales order was created in Wawi.

---

**`id`**: `ID!`

The ID of the sales order.

---

**`shippingMethodId`**: `ID`

The ID of the shipping method.

---

**`salesChannelId`**: `ID`

The ID of the sales channel the sales order came from.

---

**`responsibleUserId`**: `ID`

The ID of the user responsible for the sales order.

---

**`processStatusId`**: `ID`

The ID of the process status.

---

**`paymentMethodId`**: `ID`

The ID of the payment method.

---

**`onHoldReasonId`**: `ID`

The ID of the reason why the sales order is on hold.

---

**`customerId`**: `ID!`

The ID of the customer.

---

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

The ID of the company that sells.

---

**`shippingDetails`**: `SalesOrderShippingDetails!`

How and when the sales order is to be shipped.

---

**`shipmentAddress`**: `SalesAddress!`

The address the goods are shipped to.

---

**`paymentTerms`**: `SalesOrderPaymentTerms!`

The payment terms.

---

**`billingAddress`**: `SalesAddress!`

The billing address.

---

**`vatIdNumber`**: `String`

The VAT ID of the customer on this sales order.

---

**`status`**: `SalesOrderStatus!`

The overall status as the order list shows it.

---

**`salesInvoiceStatus`**: `SalesOrderSalesInvoiceStatus!`

How far the sales order has been invoiced.

---

**`printText`**: `String`

A text printed on the documents.

---

**`paymentStatus`**: `SalesOrderPaymentStatus!`

How far the sales order has been paid.

---

**`orderDate`**: `DateTime!`

The date of the sales order.

---

**`number`**: `String!`

The number of the sales order.

---

**`note`**: `String`

An internal note.

---

**`netTotal`**: `Decimal!`

The net total of all line items.

---

**`languageTag`**: `String!`

The language of the documents as BCP 47 language tag, for example de or de-AT. Language subtag in lower case, region subtag in upper case; case does not matter on input. Wawi currently holds only the two-letter language subtag.

---

**`isPending`**: `Boolean!`

Whether the sales order is pending, for example while a payment is checked.

---

**`isLockedForDelivery`**: `Boolean!`

Whether the sales order is locked for delivery, for example while it is on hold.

---

**`isCancelled`**: `Boolean!`

Whether the sales order was cancelled.

---

**`grossTotal`**: `Decimal!`

The gross total of all line items.

---

**`externalNumber`**: `String`

The number of the sales order on the sales channel.

---

**`editability`**: `SalesOrderEditability!`

Whether the sales order can still be changed.

---

**`deliveryStatus`**: `SalesOrderDeliveryStatus!`

How far the sales order has been delivered.

---

**`customerOrderNumber`**: `String`

The order number of the customer.

---

**`customerNumber`**: `String`

The customer number at the time of the sales order.

---

**`customerComment`**: `String`

The comment of the customer.

---

**`currencyCode`**: `String!`

The currency as ISO 4217 code.

---

**`currencyFactor`**: `Decimal!`

The exchange rate to the currency of the company.

