Paginating through records
When pagination is available, the API will respond with a payload similar to:next_page_token and prev_page_token. As their name suggest, the next_page_token is
used to request the next page, and the prev_page_token is used to retrieve the previous page. In addition, when there isn’t
a next page token or a previous page token, the value for either token will be null.
To request the next or previous page, you must pass the url parameter page_token with the next_page_token value assigned to
it. For example, here is a request to get the next page of Ledgers:
Keep in mind that the
page_token url parameter is optional. If the value is not specified, the first page will be returned
by the API. Page sizes
By default, the API returns 50 records per page, with a maxiumum value of 100 records per page. This value is configurable by passing thelimit attribute as a url parameter. For example: