Loss Of Pay Report API
To get Loss of Pay (LOP) report of an specific pay cycle.
Request URL:
https://people.zoho.com/people/api/v2/leavetracker/reports/lop
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.leave.READ
Request Parameters:
Parameter Name | Values Allowed | Default Value | Description |
payPeriodSettingId* | Long | - | Id of the pay period setting which the pay cycle falls in |
from* | Date String | - | Pay Cycle start date |
to* | Date String | - | Pay Cycle end date |
employee | JSON Array (maximum 200) | - | Erecno(s) of the users |
unit | Day | Hour | Day | Unit of the report |
startIndex | integer | 0 | From which index of the employee report has to be fetched |
limit | Integer(0-200) | 200 | no of employee's reports that has to fetched |
dateFormat | String | - | Specify the date format (Org date format will be considered if nothing is specified) |
*mandatory parameters
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/lop
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Response
Copied{
"report": {
"100002000000031745": {
"lopDetail": {
"reason": "",
"total": 6,
"booked": 6,
"carryOver": 0,
"adjustment": 0,
"PreviousPayPeriodBalance": 0,
"lop": 6
},
"employee": {
"name": "Henry",
"id": "1",
"email": "henry@zylker.com"
}
},
"100002000000055013": {
"lopDetail": {
"reason": "",
"total": 0,
"booked": 0,
"carryOver": 0,
"adjustment": 0,
"PreviousPayPeriodBalance": 0,
"lop": 0
},
"employee": {
"name": "Jack",
"id": "2",
"email": "Jack@�zylker.com"
}
},
"employees": [
100002000000031745,
100002000000055013
]
}
}