Sorting and paginating
The Checkout 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 orders 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:
- customer ID (customerId)
- order created (orderCreated)
- completed checkouts after a failed initial attempt (checkoutCompleted)
- checkout modification date and time (modifiedFrom and modifiedTo)
If a sort order is not specified, the results are sorted in ascending order.
For more information on sorting and paginating, see the Retrieve a Checkout tutorial.
YRN support
The Checkout service now supports the YaaS Global Resource Name (YRN) concept. The YRN concept is described as a best practice in the YaaS DevPortal. See Resource Identifier. Corresponding YRNs are supported for the following parameters:
- cart ID
- cart item ID
- checkout ID
- customer ID
- discount ID
- order ID
- price ID
- product ID
Display additional information in orders
To make the order more informative, two new parameters are now passed from the Checkout service to the Order service. They are:
- the item's original price
- the payment mode (live or test)
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.