Pagination

Learn how PCE uses pagination to control the number of records returned in API responses.

Pagination allows you to control the number of records returned in a single API response and navigate through large datasets. Our API supports two distinct pagination methods depending on the endpoint type.

Offset-based Pagination

This method is used primarily in core API endpoints, such as /v1/payments, /v1/customers, and other primary resources. It uses a combination of limit and offset to retrieve "pages" of data.

ParameterTypeDescription
limitInt32Number of records to return in the response. Optional.
offsetInt32The starting index of the records to return. Used to skip previous records. Optional.

Example

GET /v1/payments?limit=100&offset=200

Returns 100 payment records, starting from the 201st record.


From/size-based Pagination

Used in reporting endpoints, such as /report/v1/tsys/batch or /report/v1/fd/batch.

ParameterTypeDescription
sizeInt32Number of records to return.
fromInt32Record index to start from (acts as an offset).

Example

GET /report/v1/tsys/batch?size=100&from=200

Returns 100 records, starting from the 201st record.


Notes

  • Offset-based pagination (limit and offset) is used on core GET endpoints.
  • From/size pagination (size and from) is used on reporting GET endpoints.
  • Default and maximum values for limit or size may vary depending on the endpoint.

Additional Query Parameters

Many list and reporting endpoints support common query parameters for filtering, sorting, and date-based queries.

ParameterTypeDefaultDescription
ascendingbooleanfalseSorts results in ascending (true) or descending (false) order.
filterstringGeneral search term (for example: name, email, city). Depends on the endpoint.
sortstringSorts the results by a specified field.
sortFieldstringField used for sorting results.
groupBystringGroups results by the specified field.
lastActivitystringFilters by recent activity (for example: Last30).
startDate, endDatestring (ISO 8601)Filters records within a specific time window.
dateRangestringDate range filter. Values include: Lifetime, Today, Yesterday, Week, Month, Last7, Last30, Custom.

Date Range (DR) Parameters

Used in acquiring account report endpoints.

ParameterTypeDescription
dr_typestringType of date range: q (quick), rel (relative), abs (absolute).
dr_fromstring (ISO 8601)Lower bound of absolute date range.
dr_tostring (ISO 8601)Upper bound of absolute date range.
dr_quickstringPredefined quick date range. Examples: today, yesterday, thisWeek, last_24_h, monthToDate, yearToDate.


© 2025 Priority Technology Holdings LLC. All rights reserved.