Get Holidays API

This API is used to fetch specific holidays of any employees using their employee ID, email ID and record ID parameters.

Request URL:

https://people.zoho.com/people/api/leave/getHolidays?userId=<userId>

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Request Parameter

userIdEmployee Id/Employee MailId/Record Id of the Employee

Example URLs

https://people.zoho.com/people/api/leave/getHolidays?authtoken=9c69640f94ebb37f50ca148734b2c5e4&userId=2

https://people.zoho.com/people/api/leave/getHolidays?authtoken=9c69640f94ebb37f50ca148734b2c5e4&userId=karenjohn@zykler.com

https://people.zoho.com/people/api/leave/getHolidays?authtoken=9c69640f94ebb37f50ca148734b2c5e4&userId=3000000011693

 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.

Header

CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Response

Copied<?xml version="1.0" encoding="UTF-8"?> <response uri="/api/leave/getHolidays"> <status>0</status> <message>Data fetched successfully</message> <result> <Holiday> <Name>Test</Name> <Remarks></Remarks> <Id>3000000065001</Id> </Holiday> <Holiday> <Name>Tokyo</Name> <LocationId>3000000237009;3000000237010;3000000237011</LocationId> <LocationName>Tokyo;Chennai;New York</LocationName> <Remarks></Remarks> <Id>3000000237021</Id> </Holiday> </result> </response>
Copied{ "response": { "message": "Data fetched successfully", "result": [ { "Name": "Test", "LocationId": "",LocationName": "", "Remarks": "", "Id": 3000000065001 }, { "Name": "Tokyo", "LocationId": "3000000237009;3000000237010;3000000237011", "LocationName": "Tokyo;Chennai;New York" "Remarks": "", "Id": 3000000237021 } ], "status": 0, "uri": "/api/leave/getHolidays" } }