/timeclocks Permission level: 5

get/timeclocks

Request

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

Query parameters

start_datestring date
end_datestring date
scheduleinteger
employeeinteger
statusstring

[approved, unapproved]

pageinteger
per_pageinteger
order_bystring

[id, end_timestamp]

directionstring

[asc, desc]

updated_atstring date

Returns timeclocks which were updated after the given DateTime.

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    {
      "id": "46504175",
      "store": "251300",
      "status": "0",
      "schedule": {
        "id": "1321635",
        "name": "Waiter"
      },
      "created": "1470143318",
      "in_timestamp": "1470110700",
      "in_day": "2652",
      "out_timestamp": "1470141120",
      "out_day": "2652",
      "in_hour": "25",
      "out_hour": "59",
      "in_location": "Website",
      "out_location": "Website",
      "in_terminal": "0",
      "out_terminal": "-98",
      "approved_by": "0",
      "approved_time": "0",
      "break_time": "0",
      "start_timestamp": "2016-08-02 06:05:00",
      "end_timestamp": "2016-08-02 14:32:00",
      "employee": {
        "id": "2736727",
        "name": "Brian Lane"
      },
      "in_time": {
        "time": "6:05am",
        "day": "Aug 2, 2016",
        "timestamp": "2016-08-02 06:05:00"
      },
      "length": {
        "hours": 8,
        "mins": 27,
        "total_hours": "8.45"
      },
      "out_time": {
        "time": "2:32pm",
        "day": "Aug 2, 2016",
        "timestamp": "2016-08-02 14:32:00"
      },
      "current_length": {
        "hours": 9,
        "mins": 41,
        "total_hours": "9.69"
      },
      "events": [
        {
          "id": "63256051",
          "type": "6",
          "timestamp": "2016-08-02 06:05:00",
          "clock_time": "46504175",
          "data": {
            "position": "1321635"
          }
        }
      ]
    }
  ],
  "token": "xxxxxxx"
}

Changes