Sorting and paginating

The Price service now supports paginating and sorting of the query parameters. Sorting and paginating the parameters allows you to view the results in an organized format and find specific prices with ease.

Pagination is based on two parameters: pageSize and pageNumber Page size determines how many results are displayed on a single page, while page number determines which page you are viewing (if the results span more than a single page). By default, if you do not specify a page size or page number, a GET request displays 1000 results per page and the results appear on page one first. If you set a page number, but no page size, it displays 16 results per page. If you set a page size, but no page number, the results of the first page are displayed.

You can sort in ascending or descending order based on the following query parameters:

  • product ID (productId)
  • currency (currency)
  • item YRN (itemYrn)
  • group (group)

If a sort order is not specified, the results are sorted in ascending order.

For more information on sorting and paginating, see the Sorting and Pagination tutorials.

  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.