Paging

Some of the Invoice Matching RESTful web services have the potential to bring back a significant number of records, and therefore these services are equipped to segment the result into pages. The page number to retrieve and the size of the page are added as input parameters to all the paged services.

Each paged result includes the following information:

  • Total Record Count: Displays the number of all records matching the service input criteria.

  • Next Page URL: Shows the service URL with same input parameters, but with the pageNumber plus 1, when more records exist.

  • Previous Page URL: Shows the service URL with same input parameters and the pageNumber input value minus 1, when page number is not 1.

Next or previous page URL is not provided when:
  • No records are returned.

  • Previous page is not returned, when the page number is 1.

  • Next page is not returned, when the record reaches the last page.

Figure - Javascript for Paging Information Merchandising Web Services


This image shows the javascript for paging information in Merchandising Web Services