PUT v1/Orders/{orderId}/StockItems

Update advanced properties of StockItem (LotNumber, ExpiryDate, SerialNumber) assigned to an OrderRow

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderId

Id of order

integer

Required.

Body Parameters

Array of updated StockItems. Note that the combination of StockItemId, OrderRowId and ProductID must match a StockItem. Use Orders/{orderId}/StockItems endpoint to get the StockItems fot an order. You can only update field that are required by product configuration

Collection of StockItemWithOrderRow
NameDescriptionTypeAdditional information
OrderRowId

integer

None.

Id

integer

None.

ProductId

integer

None.

LotNumber

string

None.

ExpiryDate

date

None.

SerialNumber

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OrderRowId": 1,
    "Id": 1,
    "ProductId": 2,
    "LotNumber": "sample string 3",
    "ExpiryDate": "2026-01-11T16:13:11.6907998+01:00",
    "SerialNumber": "sample string 4"
  },
  {
    "OrderRowId": 1,
    "Id": 1,
    "ProductId": 2,
    "LotNumber": "sample string 3",
    "ExpiryDate": "2026-01-11T16:13:11.6907998+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:13:11.6907998+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:13:11.6907998+01:00</ExpiryDate>
    <SerialNumber>sample string 4</SerialNumber>
    <OrderRowId>1</OrderRowId>
  </StockItemWithOrderRow>
</ArrayOfStockItemWithOrderRow>

Response Information

Resource Description

Updated collection with *ALL* StockItems for an order. This includes even StockItems not changed by calling this endpoint.

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:13:11.7064311+01:00",
    "SerialNumber": "sample string 4"
  },
  {
    "OrderRowId": 1,
    "Id": 1,
    "ProductId": 2,
    "LotNumber": "sample string 3",
    "ExpiryDate": "2026-01-11T16:13:11.7064311+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:13:11.7064311+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:13:11.7064311+01:00</ExpiryDate>
    <SerialNumber>sample string 4</SerialNumber>
    <OrderRowId>1</OrderRowId>
  </StockItemWithOrderRow>
</ArrayOfStockItemWithOrderRow>