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": "2024-12-30T16:07:56.7036823+00:00",
  "CostPrice": 8.1,
  "Visible": true,
  "IsNonDiscount": true,
  "IsStockProduct": true,
  "IsNew": true,
  "IsBestSeller": true,
  "OnOffer": true,
  "SoldOut": true,
  "Reserved": true,
  "EcoFriendly": true,
  "Discontinued": true,
  "VisibleToEveryone": true
}

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>2024-12-30T16:07:56.7036823+00:00</DateAdded>
  <Discontinued>true</Discontinued>
  <EcoFriendly>true</EcoFriendly>
  <Id>1</Id>
  <IsBestSeller>true</IsBestSeller>
  <IsNew>true</IsNew>
  <IsNonDiscount>true</IsNonDiscount>
  <IsStockProduct>true</IsStockProduct>
  <MatrixCode>sample string 7</MatrixCode>
  <Name>sample string 2</Name>
  <NewProductCode>sample string 6</NewProductCode>
  <OnOffer>true</OnOffer>
  <Price>4</Price>
  <ProductCode>sample string 3</ProductCode>
  <RRP>1</RRP>
  <Reserved>true</Reserved>
  <SoldOut>true</SoldOut>
  <VatRate>5</VatRate>
  <Visible>true</Visible>
  <VisibleToEveryone>true</VisibleToEveryone>
</ProductModel>

application/x-www-form-urlencoded

Sample:

Sample not available.