---
updatedAt: 2025-06-05T01:13:43.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/v2.2023.0501/llms.txt
---

# Retrieve Time Punch

**[Minimum Plan Required](https://developers.7shifts.com/v2.2023.0501/docs/plan-requirements):** Entrée

#### Sample Response

```json
{
    "data": {
        "id": 85452022,
        "company_id": 1234,
        "shift_id": 185404,
        "user_id": 555,
        "editable_punch": false,
        "role_id": 2583,
        "location_id": 4569,
        "department_id": 7890,
        "hourly_wage": 1550,
        "approved": true,
        "clocked_in": "2021-11-26T15:12:00+00:00",
        "clocked_out": "2021-11-26T20:47:00+00:00",
        "notes": "",
        "auto_clocked_out": false,
        "clocked_in_offline": false,
        "clocked_out_offline": false,
        "tips": 0,
        "created": "2021-11-26T15:16:29+00:00",
        "modified": "2021-11-26T20:51:41+00:00",
        "deleted": false,
        "pos_type": "toast",
        "breaks": []
    },
    "object": "time_punche"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2023-05-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/time_punches/{time_punch_id}": {
      "get": {
        "tags": [
          "Time Punches"
        ],
        "summary": "Retrieve Time Punch",
        "operationId": "getTimePunchById",
        "x-public-api": true,
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "7shifts API version",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "An API version",
              "example": "2022-05-01"
            }
          },
          {
            "name": "x-company-guid",
            "in": "header",
            "description": "Company GUID",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "1310bfe1-cb3f-4f24-98a2-fde2bc504108"
          },
          {
            "name": "company_id",
            "in": "path",
            "description": "Company ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "time_punch_id",
            "in": "path",
            "description": "Time punch ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "time_punch"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "format": "int32",
                          "description": "Time punch ID"
                        },
                        "shift_id": {
                          "type": "integer",
                          "description": "Shift ID. Can be unassigned"
                        },
                        "user_id": {
                          "type": "integer",
                          "description": "The 7shifts ID of the user who is clocking in."
                        },
                        "editable_punch": {
                          "type": "boolean",
                          "description": "If true the time punch can be edited by a manager. Set to false via POS integrations"
                        },
                        "role_id": {
                          "type": "integer",
                          "description": "Role ID"
                        },
                        "company_id": {
                          "type": "integer",
                          "description": "Company ID"
                        },
                        "location_id": {
                          "type": "integer",
                          "description": "Location ID"
                        },
                        "department_id": {
                          "type": "integer",
                          "nullable": true,
                          "description": "Department ID. Defaults to 0 if not defined."
                        },
                        "hourly_wage": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Calculated hourly wage. Use the users_wages endpoint value for accuracy"
                        },
                        "approved": {
                          "type": "boolean",
                          "description": "If true the time punch is approved"
                        },
                        "clocked_in": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The start date and time when the user clocked in. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2020-01-20T12:00:00.000Z"
                        },
                        "clocked_out": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The start date and time when the user clocked out. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2020-01-20T12:00:00.000Z",
                          "nullable": true
                        },
                        "notes": {
                          "type": "string",
                          "description": "Additional notes for a shift"
                        },
                        "auto_clocked_out": {
                          "type": "boolean",
                          "description": "If true the time punch was auto clocked out"
                        },
                        "clocked_in_offline": {
                          "type": "boolean",
                          "description": "If true the time punch was clocked in offline"
                        },
                        "clocked_out_offline": {
                          "type": "boolean",
                          "description": "If true the time punch was clocked out offline"
                        },
                        "tips": {
                          "type": "integer",
                          "description": "Tips declared for the shift in cents"
                        },
                        "pos_type": {
                          "type": "string",
                          "nullable": true,
                          "description": "The source of the time punch. 7shift apps will be web",
                          "example": "web"
                        },
                        "breaks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "format": "int32"
                              },
                              "user_id": {
                                "type": "integer"
                              },
                              "custom_break_id": {
                                "type": "integer"
                              },
                              "paid": {
                                "type": "boolean"
                              },
                              "in": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2020-01-20T12:00:00-0400"
                              },
                              "out": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true,
                                "example": "2020-01-20T12:00:00-0400"
                              }
                            },
                            "required": [
                              "id",
                              "user_id",
                              "custom_break_id",
                              "paid",
                              "in",
                              "out"
                            ]
                          }
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The date and time when created. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2020-01-20T12:00:00.000Z",
                          "nullable": true
                        },
                        "modified": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The date and time when last modified. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2020-01-20T12:00:00.000Z",
                          "nullable": true
                        },
                        "deleted": {
                          "type": "boolean",
                          "description": "If true the time punch is deleted"
                        }
                      },
                      "required": [
                        "id",
                        "shift_id",
                        "user_id",
                        "editable_punch",
                        "role_id",
                        "location_id",
                        "company_id",
                        "approved",
                        "hourly_wage",
                        "clocked_in",
                        "clocked_out",
                        "notes",
                        "auto_clocked_out",
                        "clocked_in_offline",
                        "clocked_out_offline",
                        "tips",
                        "created",
                        "modified"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "password": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://app.7shifts.com/oauth2/authorize",
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          }
        }
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "7session"
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    },
    {
      "cookieAuth": []
    }
  ],
  "tags": [
    {
      "name": "Time Punches"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```