List leave requests
deputy_list_leaveSearch leave requests by employee, location, status and time window. Status: 0 awaiting approval, 1 approved, 2 declined, 3 cancelled, 4 date approved without pay, 5 pay approved without date. Start/End are unix; LeaveRule is the leave type id. Deputy: POST /api/v1/resource/Leave/QUERY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Only leave starting at or before this time: a unix timestamp in seconds, or an ISO 8601 date/datetime (include an offset for local times). | |
| max | No | Page size, 1-500 (Deputy's cap). Default 100. | |
| from | No | Only leave starting at or after this time: a unix timestamp in seconds, or an ISO 8601 date/datetime (include an offset for local times). | |
| start | No | Pagination offset (0-based). Pass the previous page's next_start. | |
| status | No | Only this status (0-5, see description). | |
| employee_id | No | Only this employee's leave. | |
| location_id | No | Only leave against this location (Company id). |