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 (timesheets_summary, timesheets_attendance, timesheets_late_summary) | Type timesheets_summary: Timesheets summary timesheets_attendance: Timesheets attendance timesheets_late_summary: Timesheets late summary |
deductbreaks (accepted) | integer | Deduct breaks null or 0 : Do not deduct breaks 1: Deduct breaks |
location (accepted) | integer | Location |
schedule (accepted) | varchar | Schedule |
employee (accepted) | varchar | Employee |
skill (accepted) | varchar | Skill |
remote_site (accepted) | integer | Remote site |
approval_status | integer | -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"
}