POST stock/updateStockPrice

Request Information

URI Parameters

None.

Body Parameters

StockPricesEntity
NameDescriptionTypeAdditional 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
}

text/html

Sample:
{"PriceId":1,"StockId":2,"PricelistId":3,"Price":1.0,"Active":true,"PriceVersionId":5,"HasMinimumPrice":true,"MinimumPriceExc":1.0}

application/xml, text/xml

Sample:
<StockPricesEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Stock">
  <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>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StockPricesEntity'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.