Pagination query parameters
The following associations of query parameters and values are used to define the pagination:| Parameter | Values |
|---|---|
page | Indicates the index of the page.Start value: 1Default value: 1 |
per_page | Indicates the number of items returned in each page.Maximum value: 100Default value: 10 |
users/154876/bank-details?page=2&per_page=10
Pagination header information
The following pagination-related information is always available in the response header:x-number-of-pagesindicates the total number of pages the entire list has been divided into.x-number-of-itemsindicates the total number of items in the entire list.linkprovides links to easily navigate in the pagination (to the first, previous, next, and last pages).
| Link to | Example |
|---|---|
| First page | <https://api.mangopay.com/v2/ClientId/users/UserId/bank-details?page=1&per_page=10>; rel=“first” |
| Previous page | <https://api.mangopay.com/v2/ClientId/users/UserId/bank-details?page=1&per_page=10>; rel=“prev” |
| Next page | <https://api.mangopay.com/v2/ClientId/users/UserId/bank-details?page=1&per_page=10>; rel=“next” |
| Last page | <https://api.mangopay.com/v2/ClientId/users/UserId/bank-details?page=1&per_page=10>; rel=“last” |