User Report API

To get user report for current leave year.

Request URL:

https://people.zoho.com/people/api/v2/leavetracker/reports/user

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Scope:

ZOHOPEOPLE.leave.READ

Request Parameters: 

Parameter NameValues Allowed Default Value Description
employee* Long-Erecno of the employee
to Data StringCurrent leave year endReport till date of the current year

*mandatory parameter

 Threshold Limit:  30 requests | Lock period: 2 minutes

Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.

Request

Copiedhttps://people.zoho.com/people/api/v2/leavetracker/reports/user

Header

CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Response

Copied{
    "employeeName": "Keerthana N",
	  "employeeId": "1",
    "leavetypes": [
        {
            "unit": "Day",
            "leavetypeName": "Absent",
            "taken": -0,
            "available": 0,
            "type": "Unpaid",
            "leavetypeColor": "#ff0000",
            "leavetypeID": 15000000012365
        },
        {
            "unit": "Day",
            "leavetypeName": "Casual",
            "taken": -0,
            "available": 13,
            "type": "Paid",
            "leavetypeColor": "#64d5fd",
            "leavetypeID": 15000000019127
        },
        {
            "unit": "Day",
            "DH_previouslyBooked": 1,
            "leavetypeName": "Detuctable Holidays",
            "taken": 2,
            "available": 27,
            "DH_allowance": 28,
            "DH_holidays": 1,
            "type": "Paid",
            "leavetypeColor": "#64d5fd",
            "leavetypeID": 15000000017035,
            "DH_availableForBooking": 27
        },
        {
            "unit": "Hour",
            "leavetypeName": "Hour",
            "taken": -0,
            "available": 56,
            "type": "Paid",
            "leavetypeColor": "#64d5fd",
            "leavetypeID": 15000000018001
        }
    ]
}