Pagination is supported for all the lists returned by the Mangopay API. Pagination consists in breaking down returned results in pages, hence improving the performance when a lot of information is returned.Documentation Index
Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
Use this file to discover all available pages before exploring further.
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: 1 Default value: 1 |
per_page | Indicates the number of items returned in each page. Maximum value: 100 Default 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” |