POST api/pricelists/pricelistlines?id={id}&date={date}

Gets pricelist lines changed since a date for selected articles.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

PriceList ID.

globally unique identifier

Required

date

Date changed after.

date

Required

Body Parameters

List of article numbers.

Collection of integer

Remarks




Parameter

Description



id

Pricelist Guid identifier



date

Date from which pricelist lines have changed.



Example

//Gets the pricelist with id = {Guid} and specified lines that have chanced since a date.
http://localhost/api/pricelists/pricelistlines?id={guid}&date=01-01-2020
BODY: [1, 2, 3]

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <long>1</long>
  <long>2</long>
</ArrayOflong>

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 'List`1'.

Response Information

Resource Description

Returns the pricelist with the pricelist lines, corresponding to the articles input, that have changed since date.

PricelistHeadResponse
NameDescriptionTypeAdditional information
Id

globally unique identifier

Required

Name

string

Required

Max length: 200

Expire

date

None.

CurrencyId

integer

Required

CurrencyName

string

Required

IncludeVat

boolean

Required

PriceListLines

Collection of PricelistLineResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "7ce931d9-1bf7-4040-bbaf-6f587e906ab9",
  "Name": "sample string 2",
  "Expire": "12/21/2025 1:09:54 PM",
  "CurrencyId": 3,
  "CurrencyName": "sample string 4",
  "IncludeVat": true,
  "PriceListLines": [
    {
      "ArticleNo": 1,
      "Price": 2.0,
      "DiscountFactor": 3.0,
      "ArticlePackageId": "5e1f7ba7-c2c1-46e3-a833-4657e13d5052"
    },
    {
      "ArticleNo": 1,
      "Price": 2.0,
      "DiscountFactor": 3.0,
      "ArticlePackageId": "5e1f7ba7-c2c1-46e3-a833-4657e13d5052"
    }
  ]
}

application/xml, text/xml

Sample:
<PricelistHeadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article">
  <CurrencyId>3</CurrencyId>
  <CurrencyName>sample string 4</CurrencyName>
  <Expire>2025-12-21T13:09:54.2180142+00:00</Expire>
  <Id>7ce931d9-1bf7-4040-bbaf-6f587e906ab9</Id>
  <IncludeVat>true</IncludeVat>
  <Name>sample string 2</Name>
  <PriceListLines>
    <PricelistLineResponse>
      <ArticleNo>1</ArticleNo>
      <ArticlePackageId>5e1f7ba7-c2c1-46e3-a833-4657e13d5052</ArticlePackageId>
      <DiscountFactor>3</DiscountFactor>
      <Price>2</Price>
    </PricelistLineResponse>
    <PricelistLineResponse>
      <ArticleNo>1</ArticleNo>
      <ArticlePackageId>5e1f7ba7-c2c1-46e3-a833-4657e13d5052</ArticlePackageId>
      <DiscountFactor>3</DiscountFactor>
      <Price>2</Price>
    </PricelistLineResponse>
  </PriceListLines>
</PricelistHeadResponse>