Clock In Employee (Default: Authenticated User)
SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
employee (accepted) | integer | Employee id |
photo (accepted) | varchar | Photo eg.{"large":"timeclock/pic_250834.135402.jpg", "small":"timeclock/sm_250834.135402.jpg", "tiny":"timeclock/ti_250834.135402.jpg"} |
location (accepted) | varchar | Clock in location - IP address |
latitude (accepted) | varchar | Latitude |
longitude (accepted) | varchar | Longitude |
clock_in_time(accepted) | time | eg. "Mar 11, 2015 01:33am" by default it is the current timestamp |
tips (accepted) | double | Tips |
DOCUMENTATION
GET
Clock In Employee (Default: Authenticated User).
Level 5 is required.
--
Example Request:
{
"module":"timeclock.clockin",
"method":"GET",
"request":{
"employee":"2097936"
}
}
Example response:
{
"status": 1,
"data": {
"id": "64598896",
"store": "202039",
"status": "0",
"schedule": null,
"notes": null,
"created": "1497018132",
"in_timestamp": "1497018132",
"in_day": "2963",
"out_timestamp": "0",
"out_day": "0",
"in_hour": "70",
"out_hour": "0",
"in_location": "TC Location IP",
"out_location": "Website",
"in_terminal": "0",
"out_terminal": "-98",
"approved_by": "0",
"approved_time": "0",
"approved_notes": "",
"in_picture": null,
"out_picture": "",
"screenshots": null,
"break_time": "0",
"start_timestamp": "2017-06-09 17:22:12",
"end_timestamp": null,
"in_picture_url": "",
"out_picture_url": null,
"in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
"out_gps": null,
"shift": null,
"employee": {
"id": "2097936",
"name": "Jelena Pavlovic"
},
"in_time": {
"time": "5:22pm",
"day": "Jun 9, 2017",
"timestamp": "2017-06-09 17:22:12"
},
"start": {
"id": 2963,
"month": 6,
"day": 9,
"wday": 5,
"year": 2017,
"weekday": "Fri",
"mname": "Jun",
"week": 23,
"dayid": 6,
"timeid": 70,
"timeid_exact": 70,
"formatted": "Jun 9, 2017",
"iso8601": "2017-06-09T17:22:12+0300",
"time": "5:22pm",
"timestamp": 1497018132,
"hours": 17,
"minutes": 22,
"seconds": 12,
"date": "2017-06-09 17:22:12",
"day_of_year": "159",
"week_adjusted": 23,
"sp_wday": 6
},
"length": [],
"out_time": [],
"end": [],
"current_length": {
"hours": 0,
"mins": 0,
"total_hours": "0.00"
},
"events": []
},
"token": "xxxxxx"
}