Pagination
v1 API
Quickstart API
The following query parameters are used for pagination:
page_size
: The maximum number of results to return in a single page. If the specifiedpage_size
is less than 1 or greater than 50, Zuora will return a 400 error.cursor
: A cursor for use in pagination. cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects ending withnext_page=W3sib3JkZXJ=
, your subsequent call can includecursor=W3sib3JkZXJ=
in order to fetch the next page of the list.
Note: This query parameter is applicable to Quickstart API and partial v1 API.
How pagination works in Zuora
When retrieving information using GET methods of the REST API, the optionalpageSize
query parameter sets the maximum number of rows to return in a response. The maximum is 40
; larger values are treated as 40
. If this value is empty or invalid, pageSize
typically defaults to 10
.The default value for the maximum number of rows retrieved can be overridden at the method level.
If more rows are available, the response will include anextPage
element, which contains a URL for requesting the next page. If this value is not provided, no more rows are available. No "previous page" element is explicitly provided; to support backward paging, use the previous call.Array Size
For data items that are not paginated, the REST API supports arrays of up to 300 rows. Thus, for instance, repeated pagination can retrieve thousands of customer accounts, but within any account an array of no more than 300 rate plans is returned.