Pagination
Control how many records are returned and navigate through large datasets efficiently.
Pagination allows you to control the number of records returned in a single API response and navigate through large datasets efficiently.
Banking APIs support multiple pagination controls when retrieving entity data.
You can paginate results using either of the following approaches:
pageSizeandpageNumberlimitandoffset
Supported Pagination Parameters
| Parameter | Type | Description |
|---|---|---|
pageSize | Integer | Number of records returned per page. Default is 1000. Maximum allowed value is 1000. |
pageNumber | Integer | Page number of the result set to retrieve. Default value is 1. |
limit | Integer | Maximum number of records returned in a response. Default is 100. Maximum allowed value is 100. |
offset | String | Identifier of the last record returned in the previous response. Used as the starting point for the next query. |
Pagination Behavior
The pagination parameters follow specific precedence rules:
pageSizeandpageNumbertake precedence over other pagination parameters if provided.limitacts as the only governing parameter if passed withoutpageSizeorpageNumber.- If no pagination parameters are provided, the API automatically applies:
pageSize= 1000pageNumber= 1
Using limit and offset
limit and offsetIn addition to pageSize and pageNumber, you can also paginate results using limit and offset.
In this approach:
limitspecifies the number of records to return in a response.offsetindicates the position from which the next set of results should start.
Typically, the offset value corresponds to the identifier of the last record returned in the previous response.
Examples:
GET /v1/accounts?limit=100
This request returns the first 100 records.
GET /v1/accounts?limit=100&offset=<last_record_id>
This request returns the next set of records starting after the specified offset.
This approach allows you to efficiently traverse large datasets by continuously passing the offset of the last retrieved record in subsequent requests.
Updated 3 days ago