Skip to main content
GET
/
invoices
/
{invoiceId}
/
lineitems
Query Invoice Line Items
curl --request GET \
  --url https://api.jtl-cloud.com/erp/invoices/{invoiceId}/lineitems \
  --header 'Authorization: Bearer <token>' \
  --header 'x-api-key: <api-key>' \
  --header 'x-appid: <x-appid>' \
  --header 'x-appversion: <x-appversion>' \
  --header 'x-tenant-id: <x-tenant-id>'
[
  {
    "Id": 123,
    "InvoiceId": 123,
    "SalesOrderId": 123,
    "SalesOrderLineItemId": 123,
    "ItemId": 123,
    "Name": "<string>",
    "SKU": "<string>",
    "Type": 0,
    "Quantity": 123,
    "SalesUnit": "<string>",
    "SalesPriceNet": 123,
    "SalesPriceGross": 123,
    "Discount": 123,
    "PurchasePriceNet": 123,
    "TaxRate": 123
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

x-api-key
string
header
required

Optional: If no token is present, the API Gateway injects it.

Headers

api-version
string

Specify the desired API version, e.g. '1.0'. If not provided, the last available version is set.

x-appid
string
required

This is the name of your application, e.g. "MyApp/1.0.0". It is used to identify your application.

x-appversion
string
required

This is where the version number of your application is entered, e.g. "1.0.0".

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

X-SessionId
string<uuid>

The id of a session in which the call will be executed.

x-companyid
string

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

invoiceId
integer<int32>
required

The ID of the invoice that the line items belong to.

Response

The requested line items.

Id
integer<int32>
required

Unique ID to identify an invoice line item.

InvoiceId
integer<int32>
required

Unique ID to identify an invoice.

SalesOrderId
integer<int32>
required

Unique ID to identify a sales order.

SalesOrderLineItemId
integer<int32>
required

Unique ID to identify a sales order line item.

ItemId
integer<int32>
required

Unique ID to identify an item.

Name
string
required

Name of the item.

SKU
string
required

SKU of the sales invoice item.

Type
enum<integer>
required

Type of the sales invoice item.

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21
Quantity
number<decimal>
required

The quantity of the line item.

SalesUnit
string
required

The measurement unit in which the line item is sold.

SalesPriceNet
number<decimal>
required

The net sales price of the line item.

SalesPriceGross
number<decimal>
required

The gross sales price of the line item.

Discount
number<decimal>
required

The discount applied to the line item.

PurchasePriceNet
number<decimal>
required

The price for which the merchant has bought the item.

TaxRate
number<decimal>
required

The tax rate of the line item.