Get Compensatory Off Requests API - v3

To get the list of compensatory off request records.

Request URL:

https://people.zoho.com/people/api/v3/leave-tracker/compensatory

Scope:

ZOHOPEOPLE.leave.READ

Request Type:

GET

Request Parameters:

Parameter NameValues allowedDefault valueDescription
from_datedate-From date
to_datedate-To date 
employee_zoho_IdsJSONArray[]Array of employee erecnos
employee_department_idsJSONArray[]Array of department Ids
employee_location_idsJSONArray[]Array of location Ids
employee_statusJSONAArray[]Array with values ACTIVE_USERS|ACTIVE_EMPLOYEE_PROFILES|EX_EMPLOYEES|LOGIN_DISABLED
approval_statusString (APPROVED|PENDING|
REJECTED|CANCELLED|
CANCEL_PENDING|ALL)
ALLApproval status of records
data_selectString (MINE|SUBORDINATES|
DIRECT_SUBORDINATES|
MINE,SUBORDINATES|ALL)
ALLMINE - Fetches only my data
SUBORDINATES - Fetches all reportees under the employee
DIRECT_SUBORDINATES - Fetches only direct reportees under the employee
MINE,SUBORDINATES - Fetches both my data and all the reportees data
ALL - Fetches all applicable data
record_statusJSONArray (BOOKABLE|AVAILED|EXPIRED)[]Status of the compensatory request
offsetInteger0Start index of the record fetch
limitInteger-Limit of record fetch
sortString (worked_date, -worked_date, expiry_date, -expiry_date, employee, -employee)-

Sort based on leave type/ employee/ from date/ to date

- should be appended in front for descending order

Threshold Limit: 30 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/v3/leave-tracker/compensatory

Sample Response:

Copied   {
       "data": [
           {
               "reason": "",
               "unit": "FULL_DAY",
               "leave_avail_info": {
                   "leave_balance": 3,
                   "leave_credited": 4,
                   "leave_availed": 1
               },
               "record_status": "BOOKABLE",
               "approval_status": "APPROVED",
               "expiry_date": "31-Dec-2025",
               "compensatory_id": "100002000000169001",
               "worked_day": {
                   "worked_date": "14-Sep-2025"
               },
               "employee": {
                   "zoho_id": "100002000000040456",
                   "name": "Dhivya Dharshini",
                   "id": "1"
               }
           },
           {
               "reason": "water",
               "unit": "HOURS",
               "leave_avail_info": {
                   "leave_credited": "06:00",
                   "leave_availed": "00:00"
               },
               "approval_status": "PENDING",
               "expiry_date": "31-Dec-2025",
               "compensatory_id": "100002000000172001",
               "worked_day": {
                   "worked_date": "07-Sep-2025"
               },
               "employee": {
                   "zoho_id": "100002000000040456",
                   "name": "Dhivya Dharshini",
                   "id": "1"
               }
           }
      ],
       "message": "Record(s) fetched successfully.",
       "status": "success"
   }