GET v1/PurchaseOrders/{purchaseOrderId}/Rows

Get a list with all order rows for a given order.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
purchaseOrderId

The order identifier.

integer

Required.

Body Parameters

None.

Response Information

Resource Description

A list of the OrderRow objects.

Collection of PurchaseOrderRow
NameDescriptionTypeAdditional information
ProductName

Gets or sets the name of the product.

string

None.

ProductDescription

Gets or sets the product description.

string

None.

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.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductName": "sample string 1",
    "ProductDescription": "sample string 2",
    "Id": 3,
    "ProductId": 1,
    "ItemQuantity": 4.0,
    "ItemQuantityDelivered": 5.0,
    "ProductCode": "sample string 6",
    "ItemPriceExVat": 7.0,
    "RowTotalExVat": 8.0,
    "Comment": "sample string 9",
    "Sequence": 1,
    "ExpectedDeliveryDate": "2026-01-11T16:13:39.2091771+01:00",
    "StockItems": [
      {
        "ProductCode": "sample string 1",
        "LotNumber": "sample string 2",
        "SerialNumber": "sample string 3",
        "ExpiryDate": "2026-01-11T16:13:39.2091771+01:00",
        "Quantity": 1
      },
      {
        "ProductCode": "sample string 1",
        "LotNumber": "sample string 2",
        "SerialNumber": "sample string 3",
        "ExpiryDate": "2026-01-11T16:13:39.2091771+01:00",
        "Quantity": 1
      }
    ]
  },
  {
    "ProductName": "sample string 1",
    "ProductDescription": "sample string 2",
    "Id": 3,
    "ProductId": 1,
    "ItemQuantity": 4.0,
    "ItemQuantityDelivered": 5.0,
    "ProductCode": "sample string 6",
    "ItemPriceExVat": 7.0,
    "RowTotalExVat": 8.0,
    "Comment": "sample string 9",
    "Sequence": 1,
    "ExpectedDeliveryDate": "2026-01-11T16:13:39.2091771+01:00",
    "StockItems": [
      {
        "ProductCode": "sample string 1",
        "LotNumber": "sample string 2",
        "SerialNumber": "sample string 3",
        "ExpiryDate": "2026-01-11T16:13:39.2091771+01:00",
        "Quantity": 1
      },
      {
        "ProductCode": "sample string 1",
        "LotNumber": "sample string 2",
        "SerialNumber": "sample string 3",
        "ExpiryDate": "2026-01-11T16:13:39.2091771+01:00",
        "Quantity": 1
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseOrderRow xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PurchaseOrderRow>
    <ProductId>1</ProductId>
    <ItemQuantity>4</ItemQuantity>
    <ItemQuantityDelivered>5</ItemQuantityDelivered>
    <ProductCode>sample string 6</ProductCode>
    <ItemPriceExVat>7</ItemPriceExVat>
    <RowTotalExVat>8</RowTotalExVat>
    <Comment>sample string 9</Comment>
    <Sequence>1</Sequence>
    <ExpectedDeliveryDate>2026-01-11T16:13:39.2091771+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:39.2091771+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:39.2091771+01:00</ExpiryDate>
        <Quantity>1</Quantity>
      </StockItemDto>
    </StockItems>
    <Id>3</Id>
    <ProductName>sample string 1</ProductName>
    <ProductDescription>sample string 2</ProductDescription>
  </PurchaseOrderRow>
  <PurchaseOrderRow>
    <ProductId>1</ProductId>
    <ItemQuantity>4</ItemQuantity>
    <ItemQuantityDelivered>5</ItemQuantityDelivered>
    <ProductCode>sample string 6</ProductCode>
    <ItemPriceExVat>7</ItemPriceExVat>
    <RowTotalExVat>8</RowTotalExVat>
    <Comment>sample string 9</Comment>
    <Sequence>1</Sequence>
    <ExpectedDeliveryDate>2026-01-11T16:13:39.2091771+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:39.2091771+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:39.2091771+01:00</ExpiryDate>
        <Quantity>1</Quantity>
      </StockItemDto>
    </StockItems>
    <Id>3</Id>
    <ProductName>sample string 1</ProductName>
    <ProductDescription>sample string 2</ProductDescription>
  </PurchaseOrderRow>
</ArrayOfPurchaseOrderRow>