PUT api/pricelists/pricelistline
Updates price list line to an pricelist
Request Information
URI Parameters
None.
Body Parameters
PricelistLinePutRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PriceListId | globally unique identifier |
None. |
|
| ArticleNo | integer |
Required |
|
| Price | decimal number |
Required |
|
| DiscountFactor | decimal number |
Required |
|
| ArticlePackageId | globally unique identifier |
None. |
Remarks
Creates pricelist line if no line could be found
Example
None.
Request Formats
application/json, text/json
Sample:
{
"PriceListId": "a4cb20a1-05c4-44de-9cac-75fb9c24e3a0",
"ArticleNo": 2,
"Price": 3.0,
"DiscountFactor": 4.0,
"ArticlePackageId": "7d8ecb6e-dcc7-4a27-ac9a-df037a19169b"
}
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>7d8ecb6e-dcc7-4a27-ac9a-df037a19169b</ArticlePackageId> <DiscountFactor>4</DiscountFactor> <Price>3</Price> <PriceListId>a4cb20a1-05c4-44de-9cac-75fb9c24e3a0</PriceListId> </PricelistLinePutRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PricelistLinePutResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of PutPricelistLineError |
None. |
|
| Success | 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>