POST Employee clockin
Changed on/employees/:id/clockin Permission level: 5
post/employees/{id}/clockin
Request
- Base URLhttps://www.humanity.com/api/v2
- AuthAPI key in query parameter access_token
Path parameters
idinteger required
employee id
Request body application/x-www-form-urlencoded
Response
200
Example response
{
"status": 1,
"data": {
"id": "101708167",
"store": "343161",
"status": "0",
"created": "1545862595",
"in_timestamp": "1545784380",
"in_day": "3528",
"out_timestamp": "0",
"out_day": "0",
"in_hour": "7",
"out_hour": "0",
"in_location": "178.148.20.103",
"out_location": "Website",
"in_terminal": "0",
"out_terminal": "-98",
"approved_by": "0",
"approved_time": "0",
"break_time": "0",
"start_timestamp": "2018-12-26 01:33:00",
"in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
"created_at": "2018-12-26 23:16:35",
"updated_at": "2018-12-26 23:16:35",
"employee": {
"id": "3999371",
"name": "Alan Ford"
},
"in_time": {
"time": "01:33",
"day": "Dec 26, 2018",
"timestamp": "2018-12-26 01:33:00"
},
"start": {
"id": 3528,
"month": 12,
"day": 26,
"wday": 3,
"year": 2018,
"weekday": "Wed",
"mname": "Dec",
"week": 52,
"dayid": 4,
"timeid": 7,
"timeid_exact": 7,
"formatted": "Dec 26, 2018",
"iso8601": "2018-12-26T01:33:00+0100",
"time": "01:33",
"timestamp": 1545784380,
"hours": 1,
"minutes": 33,
"date": "2018-12-26 01:33:00",
"day_of_year": "359",
"week_adjusted": 52,
"sp_wday": 4
},
"current_length": {
"hours": 21,
"mins": 44,
"total_hours": "21.73"
},
"events": [
{
"id": "146845092",
"type": "8",
"timestamp": "2018-12-26 23:16:35",
"clock_time": "101708167",
"data": {
"tips": 40
}
}
]
},
"token": "7778d004508c4fc28f7bbe176f0ca5d76744d346"
}Changes
- info
endpoint added
- info