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

# CalculateSalesOrder

> Calculate prices, discounts, and taxes for a sales order without persisting it.



**mutation** `CalculateSalesOrder(request: CalculateSalesOrderCommandRequestInput!): CalculateSalesOrderCommandResponse!`

## Arguments

**`request`**: `CalculateSalesOrderCommandRequestInput!` (required)

## Returns

`CalculateSalesOrderCommandResponse!`

**`lineItems`**: `[CalculateSalesOrderLineItemResponse!]!`

The list of calculated sales order line items.

---

**`totalNetAmount`**: `Decimal!`

The total net amount for the sales order.

---

**`totalGrossAmount`**: `Decimal!`

The total gross amount for the sales order.

---

**`companyVatId`**: `String!`

The VAT ID of the company for the departure country.

---

**`currencyIso`**: `String!`

The ISO code of the currency used for the calculated prices.

---

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

The currency factor used for the price conversion.

---

**`shippingCostNet`**: `Decimal!`

The net shipping cost.

---

**`vatAmounts`**: `[CalculateSalesOrderVatAmount!]!`

The VAT amounts grouped by tax rate.

---

**`shippingCostGross`**: `Decimal!`

The gross shipping cost.

