List absences
shiftbase_list_absencesList absences (leave, sick leave, other time off) overlapping a date range of at most 366 days: employee, absence type, start/end date, hours or days, status Approved/Declined/Pending and who reviewed it. Needs the Basic plan. GET /absentees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page, 1-200 (default 50). The reply's total and next_offset show what is left. | |
| offset | No | Index of the first result; pass the previous reply's next_offset. | |
| status | No | Only absences with this status (Pending = requests waiting for review). | |
| include | No | Add related data: the per-day breakdown, the employee or the absence type. | |
| user_id | No | Only this employee. | |
| max_date | Yes | Last date (yyyy-mm-dd), at most 366 days after min_date. | |
| min_date | Yes | First date (yyyy-mm-dd). | |
| only_open_ended | No | Only open-ended absences (no end date yet, e.g. long-term sick leave). | |
| absence_type_ids | No | Only these absence types (ids from shiftbase_list_absence_types). |