PUT product/updatecode

Update the product code Client can only update their own product and not master product

Request Information

Parameters

NameDescriptionAdditional information
pm
1) ProductCode: Old code of the product
            2) NewProductCode: New product code, should be unique

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ProductCode": "sample string 3",
  "Price": 4.0,
  "RRP": 1.0,
  "VatRate": 5.0,
  "AvailableStock": 1,
  "NewProductCode": "sample string 6",
  "MatrixCode": "sample string 7",
  "DateAdded": "2017-11-23T22:19:01.0278635+00:00",
  "CostPrice": 8.1
}

application/xml, text/xml

Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <AvailableStock>1</AvailableStock>
  <CostPrice>8.1</CostPrice>
  <DateAdded>2017-11-23T22:19:01.0278635+00:00</DateAdded>
  <Id>1</Id>
  <MatrixCode>sample string 7</MatrixCode>
  <Name>sample string 2</Name>
  <NewProductCode>sample string 6</NewProductCode>
  <Price>4</Price>
  <ProductCode>sample string 3</ProductCode>
  <RRP>1</RRP>
  <VatRate>5</VatRate>
</ProductModel>

application/x-www-form-urlencoded

Sample:

Sample not available.