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

# CreateCalculateSalesOrderRequestInput

> Request model for calculating prices, discounts, taxes, and shipping costs for a sales order.



**Kind**: `input`

## Fields

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

The unique identifier of the company for the sales order.

---

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

The unique identifier of the customer for whom the sales order is being calculated.

---

**`shippingMethodId`**: `ID`

The shipping method ID for shipping cost calculation and tax determination.

---

**`shopId`**: `ID`

The shop ID for shop-specific price calculation.

---

**`billingAddress`**: `CreateCalculateSalesOrderAddressInput`

The billing address information for tax calculation.

---

**`shipmentAddress`**: `CreateCalculateSalesOrderAddressInput`

The shipment address information for tax calculation.

---

**`lineItems`**: `[CreateCalculateSalesOrderLineItemRequestInput]!` (required)

The list of sales order line items to be calculated.

---

**`currencyIso`**: `String`

The ISO code of the currency for price calculation (e.g., EUR, USD). If not specified, the default currency will be used.

---

**`currencyFactor`**: `Decimal`

Manual override for the currency conversion factor. If set (greater than 0), overrides the default factor from the currency settings.

---

**`departureCountryIso`**: `String!` (required)

The ISO code of the departure country for tax calculation.

---

**`departureCountryStateCode`**: `String`

The departure country state/region code for state-level tax calculation (e.g., US states like CA, NY).

---

**`extraWeight`**: `Decimal`

Additional weight in kg to add to the order for shipping cost calculation.

---

**`specialTaxTreatment`**: `SpecialTaxTreatment`

The tax special treatment mode for the sales order (e.g., ReverseCharge, TaxExempt).

---

**`taxReference`**: `TaxReference`

The tax reference of the sales order. This setting controls which data is used during tax calculation.

