GET v1/Orders/{orderId}/StockItems

Returns a list of StockItems for the given OrderID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderId

The OrderID of the order

integer

Required.

Body Parameters

None.

Response Information

Resource Description

Collection of StockItems for the given OrderID

Collection of StockItemWithOrderRow
NameDescriptionTypeAdditional information
OrderRowId

integer

None.

Id

integer

None.

ProductId

integer

None.

LotNumber

string

None.

ExpiryDate

date

None.

SerialNumber

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "OrderRowId": 1,
    "Id": 1,
    "ProductId": 2,
    "LotNumber": "sample string 3",
    "ExpiryDate": "2026-01-11T16:15:42.0790088+01:00",
    "SerialNumber": "sample string 4"
  },
  {
    "OrderRowId": 1,
    "Id": 1,
    "ProductId": 2,
    "LotNumber": "sample string 3",
    "ExpiryDate": "2026-01-11T16:15:42.0790088+01:00",
    "SerialNumber": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStockItemWithOrderRow xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <StockItemWithOrderRow>
    <Id>1</Id>
    <ProductId>2</ProductId>
    <LotNumber>sample string 3</LotNumber>
    <ExpiryDate>2026-01-11T16:15:42.0790088+01:00</ExpiryDate>
    <SerialNumber>sample string 4</SerialNumber>
    <OrderRowId>1</OrderRowId>
  </StockItemWithOrderRow>
  <StockItemWithOrderRow>
    <Id>1</Id>
    <ProductId>2</ProductId>
    <LotNumber>sample string 3</LotNumber>
    <ExpiryDate>2026-01-11T16:15:42.0790088+01:00</ExpiryDate>
    <SerialNumber>sample string 4</SerialNumber>
    <OrderRowId>1</OrderRowId>
  </StockItemWithOrderRow>
</ArrayOfStockItemWithOrderRow>