There is default paging implemented on each GET endpoint. In the response, you will find a separate object called links that contains a property called next. The next property contains the endpoint you need to call to retrieve the next set of data. You've come to the end of the data when the next property is empty.
You can also implement your own paging with the 'limit' and 'offset' link parameters. You can see the definitions of 'limit' and 'offset' in the documentation for each API call which uses them.
Example response of GET groups with the next links:
{
"data": [
{
"id": "1867abec-9ad3-4a18-b824-3bda579ff7ef",
"name": "test_236",
"refId": "ref_236",
"branchId": "78cc097e-45aa-4e0d-8103-21cb5ca43662",
"branchName": "branch_236",
"hasChildren": false,
"isActive": true
},
{
"id": "3143ece2-0906-4495-b0f0-2350a39367ac",
"name": "test_226",
"refId": "ref_226",
"branchId": "8bf7023b-de19-439a-96e5-915ed3af6fe3",
"branchName": "branch_226",
"hasChildren": false,
"isActive": true
}
],
...
"links": {
"next": "/v2/groups?limit=100&offset=100",
"count": "/v2/groups/count"
}
}Cursor-based paging
v3/expenses/exported
The export endpoint uses cursor-based paging. You never have to calculate page positions yourself — just follow the URL the API gives you.
Make the first call with your filters and, optionally, a limit (default and maximum 1000).
Read links.next from the response and call that URL to get the next page. It already contains all your original filters plus the cursor (startingAfter).
Repeat until the response no longer contains links.next. That means you have retrieved all expenses matching your filters.links.next is a relative path, so prepend the API host (https://api.rydoo.com, or https://sandbox-api.rydoo.com in the testing environment).