Sorting and pagination

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

ParameterDescriptionValid valuesDefault
limitNumber of results to display per page.int50
starting_afterReturns the objects listed after the uuid object that is passed.uuid
ending_beforeReturns 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.