Add Compensatory Off Requests API - v3

To add a compensatory off request.

Request URL:

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

Scope:

ZOHOPEOPLE.leave.CREATE

Request Type:

POST

Request Parameters:

Parameter NameValues allowedDefault valueDescription
employee_zoho_id*long-erecno of the employee
worked_date*date-worked date 
unit*String(Days/ Hours)-request unit - days or hours
duration*

FULL_DAY|HALF_DAY|QUARTER_DAY - for Days

time in HH:MM format or number of hours - for Hours

-mention as full day/ half day/ quarter day if unit is Days. Mention the time duration if unit is Hours
worked_time_fromtime(HH:MM)-worked time start time
worked_time_totime(HH:MM)-worked time end time
expiry_datedate expiry date for the request
reasonstring-compensatory reason

Parameters marked with an asterisk (*) are mandatory.

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": {
           "compensatory_id": "100002000000178001"
       },
       "message": "Record(s) added successfully.",
       "status": "success"
   }