List Employee Absences
list_absencesGet absence records (leave taken or TOIL/Flexi added) with filters for employee, reason, status, dates, duration, department, location. Includes physician, certificate, and attachment details.
Instructions
Get employee absence records (leave taken, or TOIL/Flexi leave added). Includes absence reason, status, dates, duration, physician/certificate details and attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 'taken' for leave taken records, 'added' for TOIL/Flexi leave added back | |
| group | No | Only return records within this group (note: the field is always called 'group' in the API even if renamed to Branch/Entity etc. in the app) | |
| comments | No | Search for this text within the comments field | |
| employee | No | Employee code to only return records for that particular employee | |
| location | No | One or more location names (separated by commas) to filter by | |
| physician | No | Return records with this partial text in the physician name field | |
| department | No | One or more department names (separated by commas) to filter by | |
| duration_to | No | Return only records with a duration less than or equal to this value | |
| max_records | No | Optional client-side limit on the number of records returned. Use to keep responses small when exploring data; the API itself does not paginate. | |
| duration_from | No | Return only records with a duration greater than or equal to this value | |
| absence_reason | No | Return only absence records with this absence reason | |
| absence_status | No | Return records which have this absence status set | |
| absence_date_to | No | Return leave records on/before this date (format yyyy-mm-dd) | |
| absence_date_from | No | Return leave records on/after this date (format yyyy-mm-dd) | |
| certificate_number | No | Return records with this text within the certificate field | |
| show_linked_request | No | Include extra info on any linked leave request in a linked_request child object. Warning: slows the response considerably; use other filters to limit records (true/false) |