GET api/Pricelists/{id}
Gets a pricelist using paging for the pricelist lines.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
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 pricelist with id = {Guid} and all lines in the first page.
http://localhost/api/pricelists/{Guid}
//Gets the pricelist with id = {Guid} and all lines in the fifth page with a page size of 25.
http://localhost/api/pricelists/{Guid}?pageNumber=5&pageSize=25
//Gets the pricelist with id = {Guid} and all lines in the 1 page using default page size.
http://localhost/api/pricelists/{Guid}?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": "b5728acc-f199-4f82-97dc-a83697514a12",
"Name": "sample string 2",
"Expire": "12/21/2025 1:06:04 PM",
"CurrencyId": 3,
"CurrencyName": "sample string 4",
"IncludeVat": true,
"PriceListLines": [
{
"ArticleNo": 1,
"Price": 2.0,
"DiscountFactor": 3.0,
"ArticlePackageId": "27403b0c-5981-4b28-9c10-2c4a041e2f9c"
},
{
"ArticleNo": 1,
"Price": 2.0,
"DiscountFactor": 3.0,
"ArticlePackageId": "27403b0c-5981-4b28-9c10-2c4a041e2f9c"
}
]
},
"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:04.9419614+00:00</Expire>
<Id>b5728acc-f199-4f82-97dc-a83697514a12</Id>
<IncludeVat>true</IncludeVat>
<Name>sample string 2</Name>
<PriceListLines>
<PricelistLineResponse>
<ArticleNo>1</ArticleNo>
<ArticlePackageId>27403b0c-5981-4b28-9c10-2c4a041e2f9c</ArticlePackageId>
<DiscountFactor>3</DiscountFactor>
<Price>2</Price>
</PricelistLineResponse>
<PricelistLineResponse>
<ArticleNo>1</ArticleNo>
<ArticlePackageId>27403b0c-5981-4b28-9c10-2c4a041e2f9c</ArticlePackageId>
<DiscountFactor>3</DiscountFactor>
<Price>2</Price>
</PricelistLineResponse>
</PriceListLines>
</PricelistHeadReponse>
</PagedPricelistHeadResponse>