POST api/pricelists/pricelistline
Adds price list line to an pricelist
Request Information
URI Parameters
None.
Body Parameters
PricelistLinePostRequest| 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
Updates pricelist line if there already is one with same article number
Example
None.
Request Formats
application/json, text/json
Sample:
{
"PriceListId": "8ed3c4ec-9193-44d1-8b54-c10773032db2",
"ArticleNo": 2,
"Price": 3.0,
"DiscountFactor": 4.0,
"ArticlePackageId": "8f4dd979-9c32-41c4-8467-06522a641808"
}
application/xml, text/xml
Sample:
<PricelistLinePostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article"> <ArticleNo>2</ArticleNo> <ArticlePackageId>8f4dd979-9c32-41c4-8467-06522a641808</ArticlePackageId> <DiscountFactor>4</DiscountFactor> <Price>3</Price> <PriceListId>8ed3c4ec-9193-44d1-8b54-c10773032db2</PriceListId> </PricelistLinePostRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PricelistLinePostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of PostPricelistLineError |
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:
<PricelistLinePostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article">
<Errors>
<PostPricelistLineError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostPricelistLineError>
<PostPricelistLineError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PostPricelistLineError>
</Errors>
<Success>true</Success>
</PricelistLinePostResponse>