POST api/CustomPrice/SaveCustomPriceList
Request Information
URI Parameters
None.
Body Parameters
ReqSaveCustomPrice| Name | Description | Type | Additional information |
|---|---|---|---|
| PriceListId | integer |
None. |
|
| PriceListName | string |
None. |
|
| Products | Collection of ReqCustomProductPrice |
None. |
Request Formats
application/json, text/json
Sample:
{
"PriceListId": 1,
"PriceListName": "sample string 2",
"Products": [
{
"ProductId": 1,
"CustomPrice": 2.0
},
{
"ProductId": 1,
"CustomPrice": 2.0
}
]
}
application/xml, text/xml
Sample:
<ReqSaveCustomPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NEOWAY.Models.Request.CustomPrice">
<PriceListId>1</PriceListId>
<PriceListName>sample string 2</PriceListName>
<Products>
<ReqCustomProductPrice>
<CustomPrice>2</CustomPrice>
<ProductId>1</ProductId>
</ReqCustomProductPrice>
<ReqCustomProductPrice>
<CustomPrice>2</CustomPrice>
<ProductId>1</ProductId>
</ReqCustomProductPrice>
</Products>
</ReqSaveCustomPrice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |