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

# CalculateSalesEntity

> Recalculate prices, discounts, and taxes for a sales entity from a client-supplied state without persisting it.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `CalculateSalesEntity(request: CalculateSalesEntityCommandRequestInput!): CalculateSalesEntityCommandResponse!`

## Arguments

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

## Returns

`CalculateSalesEntityCommandResponse!`

**`lineItems`**: `[CalculateSalesEntityLineItemResponse!]!`

The list of calculated sales entity line items.

---

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

The total net amount for the sales entity.

---

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

The total gross amount for the sales entity.

---

**`totalNetAmountExcludingShipping`**: `Decimal!`

The total net amount for the sales entity excluding shipping costs.

---

**`totalGrossAmountExcludingShipping`**: `Decimal!`

The total gross amount for the sales entity excluding shipping costs.

---

**`vatId`**: `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.

---

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

The gross shipping cost.

---

**`vatAmounts`**: `[SalesOrderVatAmountPerRate!]!`

The VAT amounts grouped by tax rate.

---

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

The tax setting applied to the sales entity.

