Pagination & Sorting
Learn how to navigate through large sets of data returned by our API.
Pagination
Endpoints that return a list of objects, such as retrieving transactions, support pagination via query parameters. This allows you to retrieve data in manageable chunks rather than all at once. We use limit/offset style pagination.
limit: The maximum number of results to return. The default is 50, and the maximum is 100.offset: The number of results to skip from the beginning of the list.
Example: Fetching the second page of transactions
cURL
# Fetching transactions 51-100
curl -X GET 'https://api.cashpay-all.com/api/b2b/account/transactions?limit=50&offset=50' \
-H 'Authorization: Bearer <YOUR_API_KEY>'Sorting
For most list endpoints, results are sorted by their creation date in descending order (newest first) by default. Custom sorting is not currently supported via the API.