Get Leave Record by ID API
Get leave records by ID using API.
Request URL:
https://people.zoho.com/people/api/v2/leavetracker/leaves/records/<record-id>
Header:
Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf
Request Method:
GET
Request Parameters:
| No parameters required |
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.
JSON Request URL:
Copiedhttps://people.zoho.com/people/api/v2/leavetracker/leaves/records/<record-id>Header:
CopiedAuthorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxfResponse:
Copied{
"record": {
"Employee": "Christine Spalding",
"Leavetype": "Casual",
"Days": {
"26-Jan-2023": {
"LeaveCount": "0.25",
"EndTime": "18:00",
"StartTime": "15:00",
"Session": 4
},
"27-Jan-2023": {
"LeaveCount": "0.5",
"EndTime": "13:00",
"StartTime": "09:00",
"Session": 1
},
"25-Jan-2023": {
"LeaveCount": "0.5",
"EndTime": "18:00",
"StartTime": "13:00",
"Session": 2
}
},
"Zoho.ID": 100002000000188009,
"From": "25-Jan-2023",
"To": "27-Jan-2023",
"Unit": "Days",
"ApprovalStatus": "Approved",
"Employee.ID": 100002000000031745
}
}