GET api/Pricelists/{id}?date={date}
Gets changed prices in a pricelist using paging for the pricelist lines.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
|
| date | date |
Required |
Body Parameters
None.
Remarks
Paging parameters are passed with the request url and the following parameters apply:
Description
Defines how many items to return in each page. The page size cannot be larger than 5000. If the page size is omitted a default page size of 25 is used.
Defines the current page number starting with 1. The default page number is 1 if not given.
Example
//Gets the changed pricelist header and lines with id = {Guid} and date 2020-01-01 and all lines in the first page.
http://localhost/api/pricelists/{Guid}&date=2020-01-01
//Gets the changed pricelist header and lines with id = {Guid} and date 2020-01-01 and all lines in the fifth page with a page size of 25.
http://localhost/api/pricelists/{Guid}&date=2020-01-01&pageNumber=5&pageSize=25
//Gets the changed pricelist header and lines with id = {Guid} and date 2020-01-01 and all lines in the 1 page using default page size.
http://localhost/api/pricelists/{Guid}&date=2020-01-01&pageNumber=1
Response Information
Resource Description
Returns the pricelist with the specified id with pricelist lines paged.
PagedPricelistHeadResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PricelistHeadReponse |
List of customers in the requested page. |
PricelistHeadResponse |
None. |
| TotalPages |
Total number of pages. |
integer |
None. |
| NextPage |
Link to the next page. |
string |
None. |
| PreviousPage |
Link to the previous page. |
string |
None. |
| LastPage |
Link to the last page. |
string |
None. |
| FirstPage |
Link to the first page. |
string |
None. |
Response Formats
application/json, text/json
{
"PricelistHeadReponse": {
"Id": "0c44679c-bf4a-401f-aa53-efdc64865b06",
"Name": "sample string 2",
"Expire": "12/21/2025 1:06:21 PM",
"CurrencyId": 3,
"CurrencyName": "sample string 4",
"IncludeVat": true,
"PriceListLines": [
{
"ArticleNo": 1,
"Price": 2.0,
"DiscountFactor": 3.0,
"ArticlePackageId": "891e488c-564a-43d8-accf-a8fa375fd2dd"
},
{
"ArticleNo": 1,
"Price": 2.0,
"DiscountFactor": 3.0,
"ArticlePackageId": "891e488c-564a-43d8-accf-a8fa375fd2dd"
}
]
},
"TotalPages": 1,
"NextPage": "sample string 2",
"PreviousPage": "sample string 3",
"LastPage": "sample string 4",
"FirstPage": "sample string 5"
}
application/xml, text/xml
<PagedPricelistHeadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Article">
<FirstPage xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">sample string 5</FirstPage>
<LastPage xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">sample string 4</LastPage>
<NextPage xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">sample string 2</NextPage>
<PreviousPage xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">sample string 3</PreviousPage>
<TotalPages xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO">1</TotalPages>
<PricelistHeadReponse>
<CurrencyId>3</CurrencyId>
<CurrencyName>sample string 4</CurrencyName>
<Expire>2025-12-21T13:06:21.6661581+00:00</Expire>
<Id>0c44679c-bf4a-401f-aa53-efdc64865b06</Id>
<IncludeVat>true</IncludeVat>
<Name>sample string 2</Name>
<PriceListLines>
<PricelistLineResponse>
<ArticleNo>1</ArticleNo>
<ArticlePackageId>891e488c-564a-43d8-accf-a8fa375fd2dd</ArticlePackageId>
<DiscountFactor>3</DiscountFactor>
<Price>2</Price>
</PricelistLineResponse>
<PricelistLineResponse>
<ArticleNo>1</ArticleNo>
<ArticlePackageId>891e488c-564a-43d8-accf-a8fa375fd2dd</ArticlePackageId>
<DiscountFactor>3</DiscountFactor>
<Price>2</Price>
</PricelistLineResponse>
</PriceListLines>
</PricelistHeadReponse>
</PagedPricelistHeadResponse>