Get Compensatory Requests API
To get the list of compensatory-off request records.
Request URL:
https://people.zoho.com/people/api/v2/leavetracker/compensatory/records
Header
Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf
Method
GET
Scope
ZOHOPEOPLE.leave.READ
Request Parameters
Parameter Name | Values Allowed | Default Value | Description |
from* | String | - | From date to be specified |
to* | String | - | To date to be specified |
employee | JSONArray | [] | Employee IDs of the employees whose requests are to be fetched |
location | JSONArray | [] | Location IDs of the employees whose requests are to be fetched |
department | JSONArray | [] | Department IDs of the employees whose requests are to be fetched |
approvalStatus | JSONArray | [] | Allowed Values - APPROVED, PENDING, REJECTED, CANCELLED, CANCELPENDING |
dataSelect | MINE|SUBS|DIRSUBS|MINE,SUBS|ALL | ALL | MINE - Fetches only mydata SUBS - Fetches all reportees under the employee DIRSUBS - Fetches only direct reportees under the employee MINE,SUBS - Fetches both mydata and all the reportees data ALL - Fetches all applicable data |
bookingStatus | JSONArray | [] | Allowed Values - BOOKABLE, AVAILED, EXPIRED |
sort | date, -date, expiry, -expiry, employee, -employee | - | Sort based on date/employee/expiry - should be appended in front for descending order |
startIndex | Integer | 1 | Start Index of the record fetch |
limit | Integer | 200 | Limit of comp off requests to be fetched |
Threshold Limit: 300 requests | Lock period: 5 minutes
Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.
Sample Request
Copied
Sample Response
Copied