PUT v1/Orders/{orderId}/Rows

Update an existing order row.

Request Information

Requires Authorization!

URI Parameters

NameDescriptionTypeAdditional information
orderId

The order identifier.

integer

Required.

Body Parameters

The order Row.

OrderRow
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

Required

ProductSelectionProductId

Gets or sets the product selection product identifier.

integer

None.

OrderRowKey

Gets or sets the order row key.

string

Max length: 50

ItemQuantity

decimal number

Required

ProductName

Gets or sets the name of the product.

string

Max length: 500

ProductCode

Gets or sets the product code.

string

Required

Max length: 100

ProductDescription

Gets or sets the product description.

string

Max length: 2147483647

ItemPriceExVat

Gets or sets the item price (exclude VAT).

decimal number

Required

ItemPriceIncVat

Gets or sets the item price (include VAT).

decimal number

Required

RowDiscountExVat

Gets or sets the row discount (exclude VAT).

decimal number

Required

RowDiscountIncVat

Gets or sets the row discount (include VAT).

decimal number

Required

Vatperc

Gets or sets the VAT percent.

decimal number

Required

VATTariffId

Gets or sets the vat tariff identifier.

integer

None.

VATTariffCode

Gets or sets the vat tariff code.

string

None.

RowTotalExVat

Gets or sets the row total (exclude VAT).

decimal number

Required

RowTotalIncVat

Gets or sets the row total (include VAT).

decimal number

Required

Comment

Gets or sets the comment.

string

Max length: 2147483647

SupplierId

Gets or sets the supplier identifier.

integer

None.

ItemPurchasePrice

Gets or sets the item purchase price.

decimal number

None.

CreditForOrderRowId

When adding a credit row, optionally reference to an existing OrderRow.

integer

None.

Sequence

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

integer

Required

ShopProductUrl

Optionally specify the url to the product page on the Shop.

string

Max length: 200

ShopProductImageUrl

Optionally specify the url to the product image. When not provided, ShopCtrl will use the image as defined with the ShopCtrl Product.

string

Max length: 200

ShipmentId

Gets the Shipment identifier by which the row is fulfilled.

integer

None.

StockStatus

StockStatusEnum

None.

IsAllocated

boolean

None.

WarehouseId

integer

None.

WarehouseSelectionMethod

WarehouseSelectionMethodEnum

None.

Params

Gets or sets the parameters.

Collection of OrderRowParameter

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductSelectionProductId": 1,
  "OrderRowKey": "sample string 2",
  "ItemQuantity": 3.0,
  "ProductName": "sample string 4",
  "ProductCode": "sample string 5",
  "ProductDescription": "sample string 6",
  "ItemPriceExVat": 7.0,
  "ItemPriceIncVat": 8.0,
  "RowDiscountExVat": 9.0,
  "RowDiscountIncVat": 10.0,
  "Vatperc": 1.0,
  "VATTariffId": 1,
  "VATTariffCode": "sample string 11",
  "RowTotalExVat": 12.0,
  "RowTotalIncVat": 13.0,
  "Comment": "sample string 14",
  "SupplierId": 1,
  "ItemPurchasePrice": 1.0,
  "CreditForOrderRowId": 1,
  "Sequence": 1,
  "ShopProductUrl": "sample string 15",
  "ShopProductImageUrl": "sample string 16",
  "ShipmentId": 1,
  "StockStatus": 0,
  "IsAllocated": true,
  "WarehouseId": 1,
  "WarehouseSelectionMethod": 0,
  "Params": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2",
      "DataType": 0
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2",
      "DataType": 0
    }
  ]
}

application/xml, text/xml

Sample:
<OrderRow xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <ProductSelectionProductId>1</ProductSelectionProductId>
  <OrderRowKey>sample string 2</OrderRowKey>
  <ItemQuantity>3</ItemQuantity>
  <ProductName>sample string 4</ProductName>
  <ProductCode>sample string 5</ProductCode>
  <ProductDescription>sample string 6</ProductDescription>
  <ItemPriceExVat>7</ItemPriceExVat>
  <ItemPriceIncVat>8</ItemPriceIncVat>
  <RowDiscountExVat>9</RowDiscountExVat>
  <RowDiscountIncVat>10</RowDiscountIncVat>
  <Vatperc>1</Vatperc>
  <VATTariffId>1</VATTariffId>
  <VATTariffCode>sample string 11</VATTariffCode>
  <RowTotalExVat>12</RowTotalExVat>
  <RowTotalIncVat>13</RowTotalIncVat>
  <Comment>sample string 14</Comment>
  <SupplierId>1</SupplierId>
  <ItemPurchasePrice>1</ItemPurchasePrice>
  <CreditForOrderRowId>1</CreditForOrderRowId>
  <Sequence>1</Sequence>
  <ShopProductUrl>sample string 15</ShopProductUrl>
  <ShopProductImageUrl>sample string 16</ShopProductImageUrl>
  <ShipmentId>1</ShipmentId>
  <StockStatus>NotActive</StockStatus>
  <IsAllocated>true</IsAllocated>
  <WarehouseId>1</WarehouseId>
  <WarehouseSelectionMethod>Automatic</WarehouseSelectionMethod>
  <Params>
    <Param>
      <Key>sample string 1</Key>
      <Value>sample string 2</Value>
      <DataType>String</DataType>
    </Param>
    <Param>
      <Key>sample string 1</Key>
      <Value>sample string 2</Value>
      <DataType>String</DataType>
    </Param>
  </Params>
</OrderRow>

Response Information

Response Codes

  • OK (200)

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.