timeclock.status

Get Clock Status of Employee (Default: Authenticated User). Returns 'in' or 'out'

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
employee (accepted)integerEmployee id
details (accepted)enum(1)Details:
1. With details

DOCUMENTATION

GET
Get Clock Status of Employee (Default: Authenticated User). Returns 'in' or 'out'
If ("details":"1"), then returns detailed timeclock.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
   "module":"timeclock.status",
   "method":"GET",
   "request":{
      "employee":2097936,
      "details":1
   }
}

Example response

{
  "status": 1,
  "data": {
    "id": "64601743",
    "store": "202039",
    "status": "0",
    "schedule": null,
    "notes": null,
    "created": "1497020114",
    "in_timestamp": "1497020114",
    "in_day": "2963",
    "out_timestamp": "0",
    "out_day": "0",
    "in_hour": "73",
    "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:55:14",
    "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:55pm",
      "day": "Jun 9, 2017",
      "timestamp": "2017-06-09 17:55:14"
    },
    "start": {
      "id": 2963,
      "month": 6,
      "day": 9,
      "wday": 5,
      "year": 2017,
      "weekday": "Fri",
      "mname": "Jun",
      "week": 23,
      "dayid": 6,
      "timeid": 73,
      "timeid_exact": 72,
      "formatted": "Jun 9, 2017",
      "iso8601": "2017-06-09T17:55:14+0300",
      "time": "5:55pm",
      "timestamp": 1497020114,
      "hours": 17,
      "minutes": 55,
      "seconds": 14,
      "date": "2017-06-09 17:55:14",
      "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": "xxxxxxx"
}