PUT productpricingmodel/editdiscount

Edits the discount. 1) Code: Mandatory. String, max 20 chars. To link to pricing model 2) MatrixCode: Mandatory. String, 1 char. Must be a valid pricing band letter per official Spicers or VOW data. 3) RequiredVolume: Mandatory. Whole number. Provide 1 if discount does not depend on quantity ordered 4) Percentage: Mandatory. Number representing a percentage added to the cost price, or given as a discount off RRP. Percentage will be the only thing updated. To update any other field remove and re add.

Request Information

Parameters

NameDescriptionAdditional information
productPricingModel
The product pricing model.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Code": "sample string 2",
  "ExtremePricePercentage": 1.1,
  "DateAdded": "2024-12-21T14:04:37.8395753+00:00",
  "Type": "sample string 4",
  "MatrixCode": "sample string 5",
  "RequiredVolume": 6,
  "Percentage": 1.1,
  "GetTypeId": 0
}

application/xml, text/xml

Sample:
<ProductPricingModelModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <Code>sample string 2</Code>
  <DateAdded>2024-12-21T14:04:37.8395753+00:00</DateAdded>
  <ExtremePricePercentage>1.1</ExtremePricePercentage>
  <MatrixCode>sample string 5</MatrixCode>
  <Name>sample string 1</Name>
  <Percentage>1.1</Percentage>
  <RequiredVolume>6</RequiredVolume>
  <Type>sample string 4</Type>
</ProductPricingModelModel>

application/x-www-form-urlencoded

Sample:

Sample not available.