---
updatedAt: 2026-06-12T23:00:16.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/llms.txt
---

# Create Time Punch

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

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2026-06-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/time_punches": {
      "post": {
        "tags": [
          "Time Punches"
        ],
        "summary": "Create Time Punch",
        "operationId": "postTimePunch",
        "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": "The company id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "location_id": {
                    "type": "integer",
                    "description": "Location ID."
                  },
                  "department_id": {
                    "type": "integer",
                    "description": "Department ID. Defaults to 0 if not defined. Required if location has departments setup."
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "The 7shifts ID of the user who is clocking in."
                  },
                  "role_id": {
                    "type": "integer",
                    "description": "The ID of the role that the user is clocking in to work for. Defaults to 0 if not defined."
                  },
                  "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": "2021-01-01T00: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": "2021-01-01T00:00:00.000Z"
                  },
                  "notes": {
                    "type": "string",
                    "description": "Additional notes for a shift."
                  },
                  "tips": {
                    "type": "integer",
                    "description": "Tips declared for the shift in cents",
                    "nullable": true
                  },
                  "breaks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "paid": {
                          "type": "boolean",
                          "description": "Specifies whether the break is paid or unpaid. Default true when no existing setting is found."
                        },
                        "in": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The start date and time of the break. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2021-01-01T00:00:00.000Z"
                        },
                        "out": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The end date and time of the break. Formatted as ISO8601 datetime in UTC timezone.",
                          "example": "2021-01-01T00:00:00.000Z"
                        },
                        "custom_break_id": {
                          "type": "integer",
                          "description": "The custom break id belonging to the break if the break is a custom break.",
                          "example": 1234,
                          "nullable": true
                        }
                      },
                      "required": [
                        "paid",
                        "in"
                      ]
                    }
                  }
                },
                "required": [
                  "location_id",
                  "user_id",
                  "clocked_in"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "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"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "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"
                  ]
                },
                "examples": {
                  "400": {
                    "summary": "An example of a 400 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Bad Request error message",
                      "status": 400,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 400,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "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"
                  ]
                },
                "examples": {
                  "401": {
                    "summary": "An example of a 401 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Unauthorized error message",
                      "status": 401,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 401,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "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"
                  ]
                },
                "examples": {
                  "403": {
                    "summary": "An example of a 403 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Forbidden error message",
                      "status": 403,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 403,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "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"
                  ]
                },
                "examples": {
                  "404": {
                    "summary": "An example of a 404 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a No found error message",
                      "status": 404,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 404,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "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"
                  ]
                },
                "examples": {
                  "422": {
                    "summary": "An example of a 422 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Unprocessable Entity error message",
                      "status": 422,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 422,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "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"
                  ]
                },
                "examples": {
                  "500": {
                    "summary": "An example of a 500 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Server error message",
                      "status": 500,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 500,
                      "param": "param"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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"
    }
  ]
}
```