reports.employee

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
start_date (required)dateStart date
end_date (required)dateEnd 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)integerLocation id
schedule (accepted)varcharSchedule
employee (accepted)varcharEmployee id

Array of employees ids (eg. "234,563,770")
skill (accepted)varcharSkill id
Skill id (accepted)integerForce mater database

0: do not force master
1: force master
remote_site (accepted)integerRemote site id
leave_type (accepted)integerRemote 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"
}