POST api/V3/Product/UpdatePrice

Upload the price of the products (Max 2000 records can be updated in one request)

Request Information

URI Parameters

None.

Body Parameters

Products to be updated

Collection of V3.ProductPrice
NameDescriptionTypeAdditional information
ProductERPId

SAP or ERP code of the product

string

Required

String length: inclusive between 0 and 50

Price

Price of the product for the retailer

decimal number

None.

PTD

Price To Distributor of the product

decimal number

None.

MRP

MRP of the product

decimal number

None.

Display_MRP

Display MRP of the product

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProductERPId": "sample string 1",
    "Price": 2.1,
    "PTD": 3.0,
    "MRP": 4.0,
    "Display_MRP": "sample string 5"
  },
  {
    "ProductERPId": "sample string 1",
    "Price": 2.1,
    "PTD": 3.0,
    "MRP": 4.0,
    "Display_MRP": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
  <ProductPrice>
    <Display_MRP>sample string 5</Display_MRP>
    <MRP>4</MRP>
    <PTD>3</PTD>
    <Price>2.1</Price>
    <ProductERPId>sample string 1</ProductERPId>
  </ProductPrice>
  <ProductPrice>
    <Display_MRP>sample string 5</Display_MRP>
    <MRP>4</MRP>
    <PTD>3</PTD>
    <Price>2.1</Price>
    <ProductERPId>sample string 1</ProductERPId>
  </ProductPrice>
</ArrayOfProductPrice>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.