dashboard.onnow

Returns a list of currently clocked employees and employees who are late for work.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
lateforwork (accepted)varcharLate for work

DOCUMENTATION

GET
Returns a list of currently clocked employees and employees who are late for work.
Level 5 is required

--

Example Request:

{
   "module":"dashboard.onnow",
   "method":"GET",
   "request":{
   }
}

Example Response:

{
    "status": 1,
    "data": [
        {
            "employee_id": "2119304",
            "employee_eid": "",
            "employee_name": "Will Smith",
            "employee_avatar": "0",
            "employee_avatar_url": null,
            "schedule_id": "1068295",
            "schedule_name": "Waiter",
            "schedule_color": "17",
            "timeclock_id": null,
            "clockin_time": null,
            "shift_id": "337613678",
            "shift_start": {
                "id": 2966,
                "month": 6,
                "day": 12,
                "wday": 1,
                "year": 2017,
                "weekday": "Mon",
                "mname": "Jun",
                "week": 24,
                "dayid": 2,
                "timeid": 73,
                "timeid_exact": 73,
                "formatted": "Jun 12, 2017",
                "iso8601": "2017-06-12T18:00:00+0200",
                "time": "6:00pm",
                "timestamp": 1497283200,
                "hours": 18,
                "minutes": 0,
                "seconds": 0,
                "date": "Jun 12, 2017",
                "day_of_year": "162",
                "week_adjusted": 24,
                "sp_wday": 2,
                "date_timestamp": "2017-06-12 18:00:00"
            },
            "shift_end": {
                "id": 2966,
                "month": 6,
                "day": 12,
                "wday": 1,
                "year": 2017,
                "weekday": "Mon",
                "mname": "Jun",
                "week": 24,
                "dayid": 2,
                "timeid": 77,
                "timeid_exact": 77,
                "formatted": "Jun 12, 2017",
                "iso8601": "2017-06-12T19:00:00+0200",
                "time": "7:00pm",
                "timestamp": 1497286800,
                "hours": 19,
                "minutes": 0,
                "seconds": 0,
                "date": "Jun 12, 2017",
                "day_of_year": "162",
                "week_adjusted": 24,
                "sp_wday": 2,
                "date_timestamp": "2017-06-12 19:00:00"
            },
            "is_on_break": null,
            "break": [],
            "lateDuration": "3m"
        }
    ],
    "token": "xxxxxxx"
}