POST stock/AddStockPriceToList
Request Information
URI Parameters
None.
Body Parameters
Collection of StockPricesEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| PriceId | integer |
None. |
|
| StockId | integer |
None. |
|
| PricelistId | integer |
None. |
|
| Price | decimal number |
None. |
|
| Active | boolean |
None. |
|
| PriceVersionId | integer |
None. |
|
| HasMinimumPrice | boolean |
None. |
|
| MinimumPriceExc | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"PriceId": 1,
"StockId": 2,
"PricelistId": 3,
"Price": 1.0,
"Active": true,
"PriceVersionId": 5,
"HasMinimumPrice": true,
"MinimumPriceExc": 1.0
},
{
"PriceId": 1,
"StockId": 2,
"PricelistId": 3,
"Price": 1.0,
"Active": true,
"PriceVersionId": 5,
"HasMinimumPrice": true,
"MinimumPriceExc": 1.0
}
]
text/html
Sample:
[{"PriceId":1,"StockId":2,"PricelistId":3,"Price":1.0,"Active":true,"PriceVersionId":5,"HasMinimumPrice":true,"MinimumPriceExc":1.0},{"PriceId":1,"StockId":2,"PricelistId":3,"Price":1.0,"Active":true,"PriceVersionId":5,"HasMinimumPrice":true,"MinimumPriceExc":1.0}]
application/xml, text/xml
Sample:
<ArrayOfStockPricesEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Stock">
<StockPricesEntity>
<Active>true</Active>
<HasMinimumPrice>true</HasMinimumPrice>
<MinimumPriceExc>1</MinimumPriceExc>
<Price>1</Price>
<PriceId>1</PriceId>
<PriceVersionId>5</PriceVersionId>
<PricelistId>3</PricelistId>
<StockId>2</StockId>
</StockPricesEntity>
<StockPricesEntity>
<Active>true</Active>
<HasMinimumPrice>true</HasMinimumPrice>
<MinimumPriceExc>1</MinimumPriceExc>
<Price>1</Price>
<PriceId>1</PriceId>
<PriceVersionId>5</PriceVersionId>
<PricelistId>3</PricelistId>
<StockId>2</StockId>
</StockPricesEntity>
</ArrayOfStockPricesEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.