How do you sort and paginate responses to an API request.
Overview
All Bond Studio GET endpoints (for example, cards, customers) support pagination. You can define the number of results you want returned using the starting_after and ending_before parameters. You can also use limit to define the number of results returned per page.
Pagination
| Parameter | Description | Valid values | Default |
|---|---|---|---|
limit | Number of results to display per page. | int | 50 |
starting_after | Returns the objects listed after the uuid object that is passed. | uuid | |
ending_before | Returns the objects listed before the uuid object that is passed. | uuid |
Sorting
Sorting of the results is fixed; there is no sorting parameter. Results are implicitly sorted by created_time so that returned pages are consistent.
