---
title: "Query Sales Order Line Items"
method: GET
path: "/v2/salesOrders/{salesOrderId}/lineitems"
tags: ["salesorder"]
---

# Query Sales Order Line Items

`GET /v2/salesOrders/{salesOrderId}/lineitems`

Query all line items for a specific sales order

## Path parameters

- `salesOrderId` string, uuid, required

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Response `200`

The requested line items.

- JTLWawiRestContractsModelsV1SalesOrderSalesOrderLineItem[]
  - `id` string, uuid
  - `salesOrderId` string, uuid
  - `itemId` string, uuid
  - `name` string — Name of the position.
  - `sKU` string — SKU of the sales order line item.
  - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 — 0 = Blank, 1 = Item, 2 = Shipping, 3 = Coupon, 4 = Voucher, 5 = Payment, 6 = ShippingSurcharge, 7 = NewCustomerCoupon, 8 = CashOnDelivery, 9 = ShippingSurchargeItem, 10 = Packing, 11 = GiftForFree, 12 = TrustedShops, 13 = InterestPremium, 14 = ProcessingFee, 15 = Carton, 16 = ReturnDelivery, 17 = MultiPurposeVoucher, 18 = MultiPurposeVoucherDigital, 19 = SinglePurposeVoucher, 20 = SinglePurposeVoucherDigital, 21 = SinglePurposeVoucherRedemption
  - `quantity` number — The quantity of the line item.
  - `quantityDelivered` number — The quantity of the line item that has been delivered.
  - `quantityReturned` number — The quantity of the line item that has been returned.
  - `salesUnit` string — The sales unit of the line item.
  - `salesPriceNet` number — The net sales price of the item. Only net or gross price can be entered. The other price will then be calculated.
  - `salesPriceGross` number — The gross sales price of the item. Only net or gross price can be entered. The other price will then be calculated.
  - `discount` number — The discount of the line item.
  - `purchasePriceNet` number — The purchase price of the item.
  - `taxRate` number — The tax rate of the line item.
  - `notice` string — Notice for the line item.

## Other responses

- `401`
- `402` — No licence available or the app has not been authorised by JTL.
- `404` — No fields could be found.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
