Get On Duty Details API
This API is used to get detailed data of mentioned on duty ID.
Request URL:
https://people.zoho.com/people/api/attendance/getODDetails
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
zohopeople.attendance.ALL
(or)
zohopeople.attendance.READ
Parameters:
| Parameter Name | Description |
| recordId | Specify the record ID |
| formId | Specify the form ID of on duty form |
| userTypeId | Specify the user type id as ["19","-2"] in encoded format for active users, active non users |
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 Response:
Copied{
"result": {
"approvalDetails": {
"currentApprovalStatus": -1,
"formId": "3000000407001",
"comments": {
"totalComments": 0,
"comments": [],
"likedUsers": {},
"groupDts": {},
"type": "Approval",
"fdk": "92613945d1de6c51e2637a57186cf791f1fde11b5861899cfb3c9adfd92c91d4__",
"departmentDts": {}
},
"dataForApprovalId": "3000000446007",
"pending": [],
"recordowner": {
"erecno": "3000000033252",
"name": "Silver",
"photo": "https://contacts.csez.zohocorpin.com/file?ID=15187629&fs=thumb",
"employeeid": "2",
"email": "silver@zylker.com",
"zuid": 15187629
},
"fdk": "92613945d1de6c51e2637a57186cf791f1fde11b5861899cfb3c9adfd92c91d4__",
"pendingApprovalLevel": 1,
"approvalAction": 0,
"tableName": "P_AttendanceOD",
"canceledRecord": false,
"processed": [],
"approvalSettingsDetails": {
"formId": "3000000407001",
"isCancelMandatory": "0",
"isApprMandatory": 0,
"isRejMandatory": 0,
"isApprForward": false
},
"current": {
"currentApproverZUID": 5605185,
"erecno": "3000000028453",
"name": "You",
"photo": "https://contacts.csez.zohocorpin.com/file?ID=5605185&fs=thumb",
"shortName": "NM",
"employeeid": "1",
"email": "silver@zylker.com",
"approvertype": "Employee",
"zuid": 5605185
},
"isOwner": true,
"approvalSubmissionTime": "10-09-2021 11:01 AM",
"approvalId": "3000000443003",
"canForwardApproval": false,
"systemApproved": false,
"commentsAllowed": true,
"isSecondaryAppr": false,
"recOwner": "3000000033252",
"isPrimaryAppr": true
},
"details": {
"approvalStatus": "Waiting for approval",
"formId": "3000000407001",
"owner": "3000000033252",
"employeeName": "Silver",
"totalDaysTaken": 1,
"erecno": "3000000033252",
"endDate": "10-09-2021",
"isCancelPermitted": false,
"employeeId": "2",
"type": "Client visit",
"employeeName_notEnc": "Silver",
"recordId": "3000000446001",
"unit": 0,
"isClosePermitted": true,
"totalHrsTaken": 0,
"startDate": "10-09-2021",
"odDetails": [
{
"dayTaken": 0,
"originday": "10-09-2021",
"odDetailsId": "3000000446003",
"indApprovalStatus": "Waiting for approval",
"status": -1
}
],
"status": -1
},
"isRecordApprover": true
},
"message": "Success",
"uri": "/api/attendance/getODDetails",
"status": 0
}