Discussions
Bug with pagination of time-offs endpoint
Hi there,
The pagination for the "time-offs" endpoint (get request) no longer works. After the first page, no further data is returned. For the "attendances" endpoint everything is fine.
Get request for second page:
https://api.personio.de/v1/company/time-offs?start_date=2021-01-01&end_date=2022-05-02&includePending=True&limit=200&offset=200
Response:
{"success":true,"metadata":{"total_elements":462,"current_page":200,"total_pages":3},"data":[],"offset":200,"limit":200}
Note that "curent_page" is set to 200 which is the offset! If I call the "attendances" endpoint with those parameters, "current_page" correctly increments by 1.
We have now temporarily disabled pagination for this endpoint by no longer using the limit and offset parameters. Could you please look into this?
Best,
Stefan