Optional filter query parameters

Example request

https://api.7shifts.com/v1/time_punches/123?localized=1

Parameter

Type

Required

Description

localized

Integer

No

Defaults to 0, which means returning the clocked_in and clocked_out time in UTC. If set to 1, it returns the value of the clocked_in and clocked_out fields in the timezone set for the location that the punch belongs to.

Example response

{
  "status": "success",
  "data": {
    "time_punch": {
      "id": 123,
      "shift_id": 0,
      "user_id": 789,
      "editable_punch": true,
      "role_id": 101112,
      "location_id": 131415,
      "department_id": 161718,
      "approved": true,
      "clocked_in": "2021-08-07 06:30:00",
      "clocked_out": "2021-08-07 10:00:00",
      "notes": "",
      "auto_clocked_out": false,
      "clocked_in_offline": false,
      "clocked_out_offline": false,
      "tips": 0,
      "created": "2021-08-11 23:54:48",
      "modified": "2021-08-12 00:05:17",
      "pos_type": "web",
      "clocked_in_iso": "2021-08-07T06:30:00+00:00",
      "clocked_out_iso": "2021-08-07T10:00:00+00:00",
      "unused_enforceable_breaks": null
    },
    "time_punch_break": [
      {
        "id": 456,
        "user_id": 789,
        "custom_break_id": 0,
        "paid": true,
        "in": "2021-08-07 07:00:00",
        "out": "2021-08-07 07:15:00",
        "in_iso": "2021-08-07T07:00:00+00:00",
        "out_iso": "2021-08-07T07:15:00+00:00"
      }
    ]
  },
  "message": ""
}
Language
Authentication
Basic
base64
:
Response
Click Try It! to start a request and see the response here!