PUT v1/PurchaseOrders/{purchaseOrderId}/Rows

Update an existing order row.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
purchaseOrderId

The order identifier.

integer

Required.

Body Parameters

The order Row.

UpdatePurchaseOrderRow
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

None.

ProductId

Gets or sets the product identifier.

integer

None.

ItemQuantity

Gets or sets the item quantity.

decimal number

None.

ItemQuantityDelivered

Gets the item quantity delivered.

decimal number

None.

ProductCode

Gets or sets the product code.

string

None.

ItemPriceExVat

Gets or sets the item price (exclude VAT).

decimal number

None.

RowTotalExVat

Gets or sets the row total (exclude VAT).

decimal number

None.

Comment

Gets or sets the comment.

string

None.

Sequence

The display sequence. If not specified ShopCtrl will determine the sequence.

integer

None.

ExpectedDeliveryDate

Gets or sets the comment.

date

None.

StockItems

Please specify the advanced StockItems for this OrderRow. When updating an OrderRow, it's important to provide a complete list of StockItems. The information you provide will be pre-entered during provisioning in the WEB UI. It's worth noting that these StockItems will have *NO* effect if you use the API for provisioning.

Collection of StockItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 1,
  "ItemQuantity": 2.0,
  "ItemQuantityDelivered": 3.0,
  "ProductCode": "sample string 4",
  "ItemPriceExVat": 5.0,
  "RowTotalExVat": 6.0,
  "Comment": "sample string 7",
  "Sequence": 1,
  "ExpectedDeliveryDate": "2026-01-11T16:13:38.5685399+01:00",
  "StockItems": [
    {
      "ProductCode": "sample string 1",
      "LotNumber": "sample string 2",
      "SerialNumber": "sample string 3",
      "ExpiryDate": "2026-01-11T16:13:38.5685399+01:00",
      "Quantity": 1
    },
    {
      "ProductCode": "sample string 1",
      "LotNumber": "sample string 2",
      "SerialNumber": "sample string 3",
      "ExpiryDate": "2026-01-11T16:13:38.5685399+01:00",
      "Quantity": 1
    }
  ]
}

application/xml, text/xml

Sample:
<UpdatePurchaseOrderRow xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ProductId>1</ProductId>
  <ItemQuantity>2</ItemQuantity>
  <ItemQuantityDelivered>3</ItemQuantityDelivered>
  <ProductCode>sample string 4</ProductCode>
  <ItemPriceExVat>5</ItemPriceExVat>
  <RowTotalExVat>6</RowTotalExVat>
  <Comment>sample string 7</Comment>
  <Sequence>1</Sequence>
  <ExpectedDeliveryDate>2026-01-11T16:13:38.5685399+01:00</ExpectedDeliveryDate>
  <StockItems>
    <StockItemDto>
      <ProductCode>sample string 1</ProductCode>
      <LotNumber>sample string 2</LotNumber>
      <SerialNumber>sample string 3</SerialNumber>
      <ExpiryDate>2026-01-11T16:13:38.5685399+01:00</ExpiryDate>
      <Quantity>1</Quantity>
    </StockItemDto>
    <StockItemDto>
      <ProductCode>sample string 1</ProductCode>
      <LotNumber>sample string 2</LotNumber>
      <SerialNumber>sample string 3</SerialNumber>
      <ExpiryDate>2026-01-11T16:13:38.5685399+01:00</ExpiryDate>
      <Quantity>1</Quantity>
    </StockItemDto>
  </StockItems>
  <Id>1</Id>
</UpdatePurchaseOrderRow>

Response Information

Resource Description

The HttpResponseMessage object.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.