/timeclocks/:id Permission level: 5

get/timeclocks/{id}

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Path parameters

idinteger required

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": {
    "id": "101661706",
    "store": "343161",
    "status": "0",
    "schedule": {
      "id": "1849682",
      "name": "Cook"
    },
    "notes": "poruka",
    "created": "1545822424",
    "in_timestamp": "1545811200",
    "in_day": "3528",
    "out_timestamp": "1545840000",
    "out_day": "3528",
    "in_hour": "37",
    "out_hour": "69",
    "in_location": "Website",
    "out_location": "Website",
    "in_terminal": "0",
    "out_terminal": "-98",
    "approved_by": "3999479",
    "approved_time": "1545822424",
    "approved_notes": "autoapproved",
    "break_time": "0",
    "start_timestamp": "2018-12-26 09:00:00",
    "end_timestamp": "2018-12-26 17:00:00",
    "created_at": "2018-12-26 12:07:04",
    "updated_at": "2018-12-26 12:07:04",
    "employee": {
      "id": "3999479",
      "name": "Alan Ford"
    },
    "in_time": {
      "time": "09:00",
      "day": "Dec 26, 2018",
      "timestamp": "2018-12-26 09:00:00"
    },
    "start": {
      "id": 3528,
      "month": 12,
      "day": 26,
      "wday": 3,
      "year": 2018,
      "weekday": "Wed",
      "mname": "Dec",
      "week": 52,
      "dayid": 4,
      "timeid": 37,
      "timeid_exact": 37,
      "formatted": "Dec 26, 2018",
      "iso8601": "2018-12-26T09:00:00+0100",
      "time": "09:00",
      "timestamp": 1545811200,
      "hours": 9,
      "date": "2018-12-26 09:00:00",
      "day_of_year": "359",
      "week_adjusted": 52,
      "sp_wday": 4
    },
    "length": {
      "hours": 8,
      "total_hours": "8.00"
    },
    "out_time": {
      "time": "17:00",
      "day": "Dec 26, 2018",
      "timestamp": "2018-12-26 17:00:00"
    },
    "end": {
      "id": 3528,
      "month": 12,
      "day": 26,
      "wday": 3,
      "year": 2018,
      "weekday": "Wed",
      "mname": "Dec",
      "week": 52,
      "dayid": 4,
      "timeid": 69,
      "timeid_exact": 69,
      "formatted": "Dec 26, 2018",
      "iso8601": "2018-12-26T17:00:00+0100",
      "time": "17:00",
      "timestamp": 1545840000,
      "hours": 17,
      "date": "2018-12-26 17:00:00",
      "day_of_year": "359",
      "week_adjusted": 52,
      "sp_wday": 4
    },
    "current_length": {
      "hours": 3,
      "mins": 50,
      "total_hours": "3.83"
    },
    "events": [
      {
        "id": "146777244",
        "type": "3",
        "timestamp": "2018-12-26 09:00:00",
        "clock_time": "101661706",
        "data": {
          "notes": "note"
        }
      }
    ]
  },
  "token": "xxxxxxxx"
}

Changes