Skip to main content
GET
/
salesOrders
/
{salesOrderId}
/
lineitems
Query Sales Order Line Items
curl --request GET \
  --url https://api.jtl-cloud.com/erp/salesOrders/{salesOrderId}/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,
    "SalesOrderId": 123,
    "ItemId": 123,
    "Name": "<string>",
    "SKU": "<string>",
    "Type": 0,
    "Quantity": 123,
    "QuantityDelivered": 123,
    "QuantityReturned": 123,
    "SalesUnit": "<string>",
    "SalesPriceNet": 123,
    "SalesPriceGross": 123,
    "Discount": 123,
    "PurchasePriceNet": 123,
    "TaxRate": 123,
    "Notice": "<string>"
  }
]

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-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
integer<int32>
required

The id of the sales order that the line items belong to.

Response

The requested line items.

Id
integer<int32>
required

Unique ID to identify a sales order item.

SalesOrderId
integer<int32>
required

Unique ID to identify a sales order.

ItemId
integer<int32>
required

Unique ID to identify an item.

Name
string
required

Name of the position.

SKU
string
required

SKU of the sales order line item.

Type
enum<integer>
required

Type of the sales order line item. Type 0 -> free-text position | Type 1 -> item position

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.

QuantityDelivered
number<decimal>
required

The quantity of the line item that has been delivered.

QuantityReturned
number<decimal>
required

The quantity of the line item that has been returned.

SalesUnit
string
required

The sales unit of the line item.

SalesPriceNet
number<decimal>
required

The net sales price of the item. Only net or gross price can be entered. The other price will then be calculated.

SalesPriceGross
number<decimal>
required

The gross sales price of the item. Only net or gross price can be entered. The other price will then be calculated.

Discount
number<decimal>
required

The discount of the line item.

PurchasePriceNet
number<decimal>
required

The purchase price of the item.

TaxRate
number<decimal>
required

The tax rate of the line item.

Notice
string
required

Notice for the line item.