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 NameValues AllowedDefault ValueDescription
from*String-From date to be specified
to*String-To date to be specified
employeeJSONArray[]Employee IDs of the employees whose requests are to be fetched
locationJSONArray[]Location IDs of the employees whose requests are to be fetched
departmentJSONArray[]Department IDs of the employees whose requests are to be fetched
approvalStatusJSONArray[]Allowed Values - APPROVED, PENDING, REJECTED, CANCELLED, CANCELPENDING
dataSelectMINE|SUBS|DIRSUBS|MINE,SUBS|ALLALLMINE - 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
bookingStatusJSONArray[]Allowed Values - BOOKABLE, AVAILED, EXPIRED
sortdate, -date, 
expiry, -expiry, employee, -employee
-Sort based on date/employee/expiry
- should be appended in front for descending order
startIndexInteger1Start Index of the record fetch
limitInteger200Limit 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

Copiedhttps://people.zoho.com/api/v2/leavetracker/compensatory/records

Sample Response

Copied{
   "records": [
       {
           "date": "21-Sep-2024",
           "approvalStatus": "PENDING",
           "duration": 0.25,
           "unit": "QUARTER_DAY",
           "description": "",
           "expiry": "31-Dec-2024",
           "id": "100002000000499028",
           "employee": {
               "name": "Zenitsu Agatsuma",
               "employeeId": "1",
               "id": "100002000000031573"
           },
           "credited": 0.25,
           "availed": 0
       },
       {
           "date": "07-Sep-2024",
           "approvalStatus": "APPROVED",
           "duration": "09:00",
           "unit": "HOURS",
           "balance": "03:00",
           "description": "",
           "expiry": "31-Dec-2024",
           "id": "100002000000450005",
           "employee": {
               "name": "Nezuko Kamado",
               "employeeId": "13",
               "id": "100002000000139001"
           },
           "credited": "09:00",
           "availed": "06:00",
           "status": "BOOKABLE"
       },
       {
           "date": "22-Sep-2024",
           "approvalStatus": "",
           "duration": 0.5,
           "unit": "HALF_DAY",
           "balance": 0.5,
           "description": "",
           "expiry": "30-Sep-2024",
           "id": "100002000000481300",
           "employee": {
               "name": "Nezuko Kamado",
               "employeeId": "13",
               "id": "100002000000139001"
           },
           "credited": 0.5,
           "availed": 0,
           "status": "BOOKABLE"
       },
       {
           "date": "28-Sep-2024",
           "approvalStatus": "",
           "duration": 1,
           "unit": "FULL_DAY",
           "balance": 1,
           "description": "",
           "expiry": "31-Dec-2024",
           "id": "100002000000481534",
           "employee": {
               "name": "Nezuko Kamado",
               "employeeId": "13",
               "id": "100002000000139001"
           },
           "credited": 1,
           "availed": 0,
           "status": "BOOKABLE"
       }
   ]
}