reports.timesheets

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
start_date (required)dateStart date
end_date (required)dateEnd date
type (required)enum (timesheets_summary, timesheets_attendance, timesheets_late_summary)Type

timesheets_summary: Timesheets summary
timesheets_attendance: Timesheets attendance
timesheets_late_summary:
Timesheets late summary
deductbreaks (accepted)integerDeduct breaks

null or 0 : Do not deduct breaks
1: Deduct breaks
location (accepted)integerLocation
schedule (accepted)varcharSchedule
employee (accepted)varcharEmployee
skill (accepted)varcharSkill
remote_site (accepted)integerRemote site
approval_statusinteger-1 - All timesheets
1 - Approved timesheets
2 - Unapproved timesheets

DOCUMENTATION

GET
Retrieves a list of timesheet reports.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
        "method":"GET",
        "module":"reports.timesheets",
        "request":{
           "start_date":"1",
           "end_date":"15",
           "location":"342",
           "schedule":"1584",
           "employee":"954",
           "skill":"24",
           "type":"timesheets_summary"
        }
     }

Example Response:

{
        "status":"1",
        "data":{
           "id":"1376",
           "name":"John Smith",
           "shifts":"0",
           "hours_scheduled":"0",
           "hours_clocked":"0",
           "late":"0",
           "absent":"0",
           "karma":"0",
           "percent":"0"
        },
        "token":"xxxxxxxx"
 }