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

# SalesLineItem

> A line item of a sales document. Polymorphic: the property 'type' selects the variant.



**Kind**: `interface`

## Fields

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

The ID of the line item.

---

**`totalSalesPriceNet`**: `Decimal!`

The net total of the line item after discount.

---

**`totalSalesPriceGross`**: `Decimal!`

The gross total of the line item after discount.

---

**`taxRate`**: `Decimal!`

The tax rate in percent.

---

**`sortOrder`**: `Int!`

The position of the line item in the document.

---

**`salesUnit`**: `String`

The unit the quantity is sold in, for example 'pcs'.

---

**`salesPriceNet`**: `Decimal!`

The net price per unit.

---

**`salesPriceGross`**: `Decimal!`

The gross price per unit.

---

**`quantity`**: `Decimal!`

The quantity.

---

**`purchasePriceNet`**: `Decimal!`

The net purchase price per unit when the line item was added.

---

**`note`**: `String`

A note on the line item.

---

**`name`**: `String!`

The name printed on the document.

---

**`discountPercent`**: `Decimal!`

The discount in percent.

---

**`type`**: `SalesLineItemType!`

Discriminator of the line item type.

## Possible types

- `SalesChargeLineItem`
- `SalesCustomLineItem`
- `SalesDiscountLineItem`
- `SalesItemLineItem`
- `SalesOtherLineItem`
- `SalesVoucherLineItem`

