PUT api/{lang}/PriceList/AddRootPrice

Dada un número de producto - precio, crea el item en la lista raíz

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

None.

Body Parameters

Número de producto - precio

ProductPriceViewModel
NameDescriptionTypeAdditional information
ProductCode

string

Required

Price

decimal number

Range: inclusive between 0,01 and 1,79769313486232E+308

Request Formats

application/json, text/json

Sample:
{
  "ProductCode": "sample string 1",
  "Price": 2.1
}

application/xml, text/xml

Sample:
<ProductPriceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels.Trading.Pricing">
  <Price>2.1</Price>
  <ProductCode>sample string 1</ProductCode>
</ProductPriceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

True si la actualización es correcta, False si ocurre un error

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.