Fetch Last Attendance Entries API
This API fetches the latest attendance entries with Regularisation entries that has been added/updated within the latest minutes(given in param).
Note:This api can be accessed by admin and data admin only.
Request URL
https://people.zoho.com/api/attendance/fetchLatestAttEntries?duration=5&dateTimeFormat=dd-MM-yyyy HH:mm:ss
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Request parameter
duration: Duration in minutes within which the latest entries should be fetched.
dateTimeFormat : Format of the date and time of Attendance entries in response is returned.
Response Keys
singleRegEntries - Entries added through Regularisation("Replace existing first check-in/ last check-out entry" setting in Attendance->General Settings).
multiRegEntries - Entries added through Regularisation("Create a new check-in/check-out entry" setting in Attendance->General Settings).
attEntries - Entries added through all inputs except Regularisation.
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
Success Response JSON:
Copied{
"response": {
"result": [
{
"firstName": "Richard",
"lastName": "Johnson",
"entries": [
{
"2020-06-06": {
"singleRegEntries": {
"checkOutTime": "06-Jun-2020 15:00:00",
"checkInTime": "06-Jun-2020 09:00:00"
}
}
},
{
"2020-06-07": {
"multiRegEntries": [
{
"checkOutTime": "07-Jun-2020 18:00:00",
"checkInTime": "07-Jun-2020 09:06:00"
}
]
}
},
{
"2020-06-08": {
"attEntries": [
{
"checkInLocation": "160, Lexington Avenue, New York City, USA",
"checkOutLocation": "160, Lexington Avenue, New York City, USA",
"checkOutTime": "08-Jun-2020 20:10:00",
"checkInTime": "08-Jun-2020 20:06:00"
},
{
"checkInLocation": "160, Lexington Avenue, New York City, USA",
"breakId": 104998000000127011,
"checkOutLocation": "160, Lexington Avenue, New York City, USA",
"checkOutTime": "08-Jun-2020 20:18:00",
"breakName": "General_Manual",
"checkInTime": "08-Jun-2020 20:12:00"
},
{
"checkInLocation": "160, Lexington Avenue, New York City, USA",
"checkOutLocation": "160, Lexington Avenue, New York City, USA",
"checkOutTime": "08-Jun-2020 20:35:00",
"checkInTime": "08-Jun-2020 20:30:00"
}
]
}
}
],
"erecNo": 1049981000001235005,
"employeeId": "1",
"emailId": "johnson+test2@zohocorp.com"
}
],
"message": "Success",
"uri": "/api/attendance/fetchLatestAttEntries",
"status": 0
}
}