Discussions
HTTP 500 Error on /v1/company/time-offs Endpoint
yesterday by Fabian Kirchhoff
Problem
GET /v1/company/time-offs returns HTTP 500 for a specific customer/organization, regardless of pagination parameters.
Response:
{"success": false, "error": {"message": "Something went wrong", "code": 500}}
Reproduction
# This works:
GET /v1/company/time-off-types?limit=200&offset=0
→ Returns 308 absence types ✓
# This fails:
GET /v1/company/time-offs?limit=50&offset=0&start_date=2025-11-06&end_date=2026-03-06
→ HTTP 500 ✗
# Also tested and failed: limit=200, limit=10, different date ranges
Context
- Other endpoints: All working fine (employees, time-off-types, auth)
- Other orgs: Work fine
I can't sync absences → bookings not cancelled automatically → manual work for customer.
