PUT api/pricelists/pricelistline

Updates price list line to an pricelist

Request Information

URI Parameters

None.

Body Parameters

PricelistLinePutRequest
NameDescriptionTypeAdditional information
PriceListId

Id of the pricelist

globally unique identifier

None.

ArticleNo

Article number

integer

Required

Price

decimal(18,2)

decimal number

Required

DiscountFactor

decimal(9,4)
Discount factor, 1.0 = 100% discount, 0.5 = 50% discount

decimal number

Required

ArticlePackageId

Id for article package

globally unique identifier

None.

Remarks

Creates pricelist line if no line could be found

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "PriceListId": "125886b5-fbc4-464f-873b-14f5ae51271d",
  "ArticleNo": 2,
  "Price": 3.0,
  "DiscountFactor": 4.0,
  "ArticlePackageId": "39f20538-7b09-46f9-806e-901f84690774"
}

application/xml, text/xml

Sample:
<PricelistLinePutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article">
  <ArticleNo>2</ArticleNo>
  <ArticlePackageId>39f20538-7b09-46f9-806e-901f84690774</ArticlePackageId>
  <DiscountFactor>4</DiscountFactor>
  <Price>3</Price>
  <PriceListId>125886b5-fbc4-464f-873b-14f5ae51271d</PriceListId>
</PricelistLinePutRequest>

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 'PricelistLinePutRequest'.

Response Information

Resource Description

PricelistLinePutResponse
NameDescriptionTypeAdditional information
Errors

List of errors when updating pricelist line

Collection of PutPricelistLineError

None.

Success

Returns true if pricelist line is updated

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<PricelistLinePutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article">
  <Errors>
    <PutPricelistLineError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutPricelistLineError>
    <PutPricelistLineError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutPricelistLineError>
  </Errors>
  <Success>true</Success>
</PricelistLinePutResponse>