Discussions
employees - not all returned employees - paging not working
almost 3 years ago by Oliver
Hello,
I have a problem with a customer of yours - I want to import all employees - do it like this:
https://api.personio.de/v1/company/employees?limit=200&offset=0
https://api.personio.de/v1/company/employees?limit=200&offset=1
https://api.personio.de/v1/company/employees?limit=200&offset=2
... despite offset 2 - the API always stays on "current_page": 0 how can I jump to the next pages otherwise?
....
"metadata": {
"total_elements": 665,
"current_page": 0,
"total_pages": 4
},
"offset": 2,
"limit": 200