POST api/V3/RegionalPricing/Update
Updates Regional pricing for products
Request Information
URI Parameters
None.
Body Parameters
List of Regional Pricing Object
Collection of V3.RegionalPricingAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductErpId |
Product ErpId |
string |
Required String length: inclusive between 1 and 50 |
| Region |
Region |
string |
Required String length: inclusive between 0 and 100 |
| Price |
Price |
decimal number |
None. |
| PTD |
PTD |
decimal number |
None. |
| MBQ |
MBQ |
integer |
None. |
| IsActive |
IsActive |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"ProductErpId": "sample string 1",
"Region": "sample string 2",
"Price": 1.0,
"PTD": 1.0,
"MBQ": 1,
"IsActive": true
},
{
"ProductErpId": "sample string 1",
"Region": "sample string 2",
"Price": 1.0,
"PTD": 1.0,
"MBQ": 1,
"IsActive": true
}
]
application/xml, text/xml
Sample:
<ArrayOfRegionalPricing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
<RegionalPricing>
<IsActive>true</IsActive>
<MBQ>1</MBQ>
<PTD>1</PTD>
<Price>1</Price>
<ProductErpId>sample string 1</ProductErpId>
<Region>sample string 2</Region>
</RegionalPricing>
<RegionalPricing>
<IsActive>true</IsActive>
<MBQ>1</MBQ>
<PTD>1</PTD>
<Price>1</Price>
<ProductErpId>sample string 1</ProductErpId>
<Region>sample string 2</Region>
</RegionalPricing>
</ArrayOfRegionalPricing>
Response Information
Resource Description
Response Summary to indicate sucess or failure
ApiResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| ERPId |
ERPID of the Requested insertion/updation |
string |
None. |
| Message |
Error Message for the indicated ERPID |
string |
None. |
| ResponseStatus |
Status of the action requested from Api |
ResponseStatus |
None. |
| GUID |
GUID of the database Entry with respect to the ERP Id Provided |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage>