timeclock.clockout

Clock In Employee (Default: Authenticated User)

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
employee (accepted)integerEmployee id
photo (accepted)varcharPhoto eg.{"large":"timeclock/pic_250834.135402.jpg", "small":"timeclock/sm_250834.135402.jpg", "tiny":"timeclock/ti_250834.135402.jpg"}
location (accepted)varcharClock in location - IP address
latitude (accepted)varcharLatitude
longitude (accepted)varcharLongitude
clock_out_time(accepted)timeeg. "Mar 11, 2015 01:33am"
by default it is the current timestamp
tips (accepted)doubleTips
schedule (accepted)integerPosition id
notes (accepted)varcharNotes

DOCUMENTATION

GET
Clock Out Employee (Default: Authenticated User)
Level 5 is required

--

Example Request:

{
   "module":"timeclock.clockout",
   "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": "1497019885",
    "out_day": "2963",
    "in_hour": "70",
    "out_hour": "72",
    "in_location": "TC Location  IP",
    "out_location": "TC Location  IP",
    "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": "2017-06-09 17:51:25",
    "in_picture_url": "",
    "out_picture_url": null,
    "in_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
    "out_gps": "{\"latitude\":\"\",\"longitude\":\"\",\"supported\":0}",
    "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": {
      "hours": 0,
      "mins": 29,
      "total_hours": "0.49"
    },
    "out_time": {
      "time": "5:51pm",
      "day": "Jun 9, 2017",
      "timestamp": "2017-06-09 17:51:25"
    },
    "end": {
      "id": 2963,
      "month": 6,
      "day": 9,
      "wday": 5,
      "year": 2017,
      "weekday": "Fri",
      "mname": "Jun",
      "week": 23,
      "dayid": 6,
      "timeid": 72,
      "timeid_exact": 72,
      "formatted": "Jun 9, 2017",
      "iso8601": "2017-06-09T17:51:25+0300",
      "time": "5:51pm",
      "timestamp": 1497019885,
      "hours": 17,
      "minutes": 51,
      "seconds": 25,
      "date": "2017-06-09 17:51:25",
      "day_of_year": "159",
      "week_adjusted": 23,
      "sp_wday": 6
    },
    "current_length": {
      "hours": 0,
      "mins": 29,
      "total_hours": "0.49"
    },
    "events": []
  },
  "token": "xxxxxxx"
}