---
title: "Query Invoice Line Items"
method: GET
path: "/v2/invoices/{invoiceId}/lineitems"
tags: ["invoice"]
---

# Query Invoice Line Items

`GET /v2/invoices/{invoiceId}/lineitems`

Query all line items for a specific invoice

## Path parameters

- `invoiceId` string, uuid, required

## Headers

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

## Response `200`

The requested line items.

- JTLWawiRestContractsModelsV1InvoiceInvoiceLineItem[]
  - `id` string, uuid
  - `invoiceId` string, uuid
  - `salesOrderId` string, uuid
  - `salesOrderLineItemId` string, uuid
  - `itemId` string, uuid
  - `name` string — Name of the item.
  - `sKU` string — SKU of the sales invoice 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 = CustomLineItem, 1 = Item, 2 = Shipping, 3 = Coupon, 4 = Voucher, 5 = Payment, 6 = ShippingSurcharge, 7 = NewCustomerCoupon, 8 = CashOnDelivery, 9 = ShippingSurchargeItem, 10 = GiftWrapping, 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.
  - `salesUnit` string — The measurement unit in which the line item is sold.
  - `salesPriceNet` number — The net sales price of the line item.
  - `salesPriceGross` number — The gross sales price of the line item.
  - `discount` number — The discount applied to the line item.
  - `purchasePriceNet` number — The price for which the merchant has bought the item.
  - `taxRate` number — The tax rate of the line item.

## Other responses

- `401`
- `402` — No licence available or the app has not been authorised by JTL.
- `404` — No invoice line items 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)
