POST StockCostPrice/UpdateCostPrices

Allows External updates to Cost Prices based on the PLU in the Tevalis Stock System which feeds to the POS via the Stock Cost Price Service

Request Information

URI Parameters

None.

Body Parameters

Collection of StockCostPriceUpdateCommand
Name Type Description Additional information
SiteID integer

Required

Plu string

Required

CostPrice decimal number

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "SiteID": 1,
    "Plu": "sample string 2",
    "CostPrice": 3.0
  },
  {
    "SiteID": 1,
    "Plu": "sample string 2",
    "CostPrice": 3.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfStockCostPriceUpdateCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.StockCostPrice.Commands">
  <StockCostPriceUpdateCommand>
    <CostPrice>3</CostPrice>
    <Plu>sample string 2</Plu>
    <SiteID>1</SiteID>
  </StockCostPriceUpdateCommand>
  <StockCostPriceUpdateCommand>
    <CostPrice>3</CostPrice>
    <Plu>sample string 2</Plu>
    <SiteID>1</SiteID>
  </StockCostPriceUpdateCommand>
</ArrayOfStockCostPriceUpdateCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StockCostPriceModel
Name Type Description Additional information
SuccessLog string

None.

FailLog string

None.

Response Formats

application/json, text/json

Sample:
{
  "SuccessLog": "sample string 1",
  "FailLog": "sample string 2"
}

application/xml, text/xml

Sample:
<StockCostPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
  <FailLog>sample string 2</FailLog>
  <SuccessLog>sample string 1</SuccessLog>
</StockCostPriceModel>