Pagination

All API resources that can return multiple records (eg. the payments API) are paginated. These endpoints provide the same set of parameters that allow you to specify which page and how many records per page to return.


Query parameters

ParameterDefaultDescription
page1The current page.
perPage50The number of records to return per page (maximum: 100).
offset0The offset to start from.

Response headers

The following pagination headers are included in the response. All pagination headers are integers.

HeaderDescription
X-TotalThe total number of records in the query.
X-Total-PagesThe number of pages that the query is made up of.
X-PageThe current page.
X-Per-PageThe number of records per page.
X-Next-PageThe next page.
X-Prev-PageThe previous page
X-OffsetThe offset being used.