Add Clock Time.
SUPPORTED METHODS:
GET
| Parameters | Type | Description |
|---|---|---|
| token (required) | Valid token | |
| employee (required) | integer | Employee id |
| datein (required) | varchar | Clock in time timestamp |
| dateout (accepted) | varchar | Clock out time timestamp |
| onlyin (accepted) | enum (0, 1) | 0: Add clock in and clock out time 1: Just add clock in time |
| schedule (accepted) | integer | Position id |
| notes (accepted) | varchar | Notes |
| remote_site (accepted) | integer | Remote Site |
| tips (accepted) | varchar | Tips |
DOCUMENTATION
GET
Add clock time (require parameters datein and dateout) or only clock in (require parameters datein and onlyin set to 1) for an employee with the given id.
Level 5 is required (all users can fetch this module)
--
Example Request:
{
"module":"timeclock.addclocktime",
"method":"GET",
"request":{
"employee":"159345",
"datein":"June 09, 2017 09:00 AM",
"dateout":"June 09, 2017 05:00 PM"
}
}
Example response:
{
"status": 1,
"data": "Clock time added.",
"token": "xxxxxxx"
}
