SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
start_date (required) | date | Start date |
end_date (required) | date | End date |
type (required) | enum (attendance, vacations, availability, unavailability, hourly-availability, vacation-summary) | Report type attendance: Attendance report vacations: Vacations report availability: Availability report unavailability: Unavailability report |
location (accepted) | integer | Location id |
schedule (accepted) | varchar | Schedule |
employee (accepted) | varchar | Employee id Array of employees ids (eg. "234,563,770") |
skill (accepted) | varchar | Skill id |
Skill id (accepted) | integer | Force mater database 0: do not force master 1: force master |
remote_site (accepted) | integer | Remote site id |
leave_type (accepted) | integer | Remote site id |
DOCUMENTATION
GET
Retrieves a list of employee's reports.
Level 5 is required
--
Example Request:
{
"method":"GET",
"module":"reports.employee",
"request":{
"start_date":"Dec 15, 2016",
"end_date":"Dec 16, 2016",
"type":"availability",
"employee": 250832
}
}
Example Response:
{
"status":1,
"data":{
"statuses":{
"1":"All Day",
"2":"Available",
"3":"On Vacation",
"4":"Not Available"
},
"dates":[
{
"id":1326,
"date":{
"id":1326,
"month":12,
"day":15,
"wday":6,
"year":2016,
"weekday":"Sat",
"mname":"Dec",
"week":51,
"dayid":7,
"timeid":1,
"formatted":"Dec 15, 2016",
"time":"00:00",
"timestamp":1355526000,
"hours":0,
"minutes":0,
"seconds":0,
"date":"2016-12-15 00:00:00",
"day_of_year":"349",
"sp_wday":7
},
"formatted":"Dec 15, 2016"
},
{
"id":1327,
"date":{
"id":1327,
"month":12,
"day":16,
"wday":0,
"year":2016,
"weekday":"Sun",
"mname":"Dec",
"week":51,
"dayid":1,
"timeid":1,
"formatted":"Dec 16, 2016",
"time":"00:00",
"timestamp":1355612400,
"hours":0,
"minutes":0,
"seconds":0,
"date":"2016-12-16 00:00:00",
"day_of_year":"350",
"sp_wday":1
},
"formatted":"Dec 16, 2016"
}
],
"users":[
]
},
"token":"xxxxxxx"
}