---
updatedAt: 2026-04-21T16:11:36.000Z
agentTools:
  projectIndex: https://apidoc.factorialhr.com/llms.txt
---

# Attendance > Shift > Clock outs

Subscription_type: `attendance/shift/clock_out`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Factorial API",
    "description": "",
    "version": "2026-10-01"
  },
  "webhooks": {
    "Webhooks > Attendance > Shift > Clock outs": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "description": "Subscription_type: `attendance/shift/clock_out`",
        "deprecated": false,
        "summary": "Attendance > Shift > Clock outs",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Return a 200 status to indicate that the data was received successfully"
          }
        },
        "requestBody": {
          "description": "Callback payload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/attendance_shift"
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": false
  },
  "servers": [
    {
      "url": "https://api.factorialhr.com",
      "description": "Production server"
    },
    {
      "url": "https://api.demo.factorial.dev",
      "description": "Demo server (deprecated)"
    },
    {
      "url": "https://api.eu2.demo.factorial.dev",
      "description": "Demo server"
    }
  ],
  "security": [
    {
      "oauth2": []
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://id.factorialhr.com/oauth/authorize",
            "tokenUrl": "https://id.factorialhr.com/api/oauth/token",
            "refreshUrl": "https://id.factorialhr.com/api/oauth/token",
            "scopes": {
              "read": "Required for all operations",
              "write": "Required for write operations",
              "approvals": "Access to approvals",
              "banking": "Access to banking",
              "company_holidays": "Access to company holidays",
              "company_legal_entities": "Access to company legal entities",
              "company_locations": "Access to company locations",
              "compensations": "Access to compensations",
              "contracts": "Access to contracts",
              "custom_fields": "Access to custom fields",
              "documents": "Access to documents",
              "employee_updates": "Access to employee updates",
              "employees": "Access to employees",
              "expenses": "Access to expenses",
              "finance": "Access to finance",
              "integrations": "Access to integrations",
              "it_management": "Access to it management",
              "job_catalog": "Access to job catalog",
              "marketplace": "Access to marketplace",
              "payroll": "Access to payroll",
              "payroll_supplements": "Access to payroll supplements",
              "performance": "Access to performance",
              "posts": "Access to posts",
              "processes": "Access to processes",
              "project_management_expenses": "Access to project management expenses",
              "project_management_projects": "Access to project management projects",
              "project_management_time": "Access to project management time",
              "recruitment": "Access to recruitment",
              "shift_management": "Access to shift management",
              "tasks": "Access to tasks",
              "time_off": "Access to time off",
              "time_tracking": "Access to time tracking",
              "trainings": "Access to trainings"
            }
          }
        }
      }
    },
    "schemas": {
      "attendance_shift": {
        "type": "object",
        "required": [
          "id",
          "employee_id",
          "date",
          "reference_date",
          "created_at",
          "company_id",
          "updated_at",
          "minutes"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the shift",
            "example": "1"
          },
          "employee_id": {
            "type": "string",
            "description": "Identifier for the employee assigned to the shift",
            "example": "1"
          },
          "date": {
            "type": "string",
            "description": "Date of the shift",
            "example": "2023-10-01"
          },
          "reference_date": {
            "type": "string",
            "description": "The business day this shift is attributed to; can differ from `date` for overnight shifts that cross midnight",
            "example": "2023-09-30"
          },
          "clock_in": {
            "type": "string",
            "description": "Time when the employee clocked in",
            "example": "08:30"
          },
          "clock_out": {
            "type": "string",
            "description": "Time when the employee clocked out",
            "example": "12:30"
          },
          "in_source": {
            "type": "string",
            "description": "Source of the clock-in time",
            "example": "automatic"
          },
          "out_source": {
            "type": "string",
            "description": "Source of the clock-out time",
            "example": "automatic"
          },
          "observations": {
            "type": "string",
            "description": "Additional observations about the shift",
            "example": "Employee arrived late due to traffic"
          },
          "location_type": {
            "type": "string",
            "description": "Type of location for the shift",
            "enum": [
              "office",
              "business_trip",
              "work_from_home"
            ],
            "example": "office"
          },
          "half_day": {
            "type": "string",
            "description": "Which half of the day the shift covers when it is a half-day — `beginning_of_day` or `end_of_day`; null for full-day shifts",
            "enum": [
              "beginning_of_day",
              "end_of_day"
            ],
            "example": "beginning_of_day"
          },
          "in_location_latitude": {
            "type": "number",
            "description": "Latitude of the clock-in location",
            "example": 37.7749
          },
          "in_location_longitude": {
            "type": "number",
            "description": "Longitude of the clock-in location",
            "example": -122.419
          },
          "in_location_accuracy": {
            "type": "number",
            "description": "Accuracy of the clock-in location",
            "example": 5
          },
          "out_location_latitude": {
            "type": "number",
            "description": "Latitude of the clock-out location",
            "example": 37.7749
          },
          "out_location_longitude": {
            "type": "number",
            "description": "Longitude of the clock-out location",
            "example": -122.419
          },
          "out_location_accuracy": {
            "type": "number",
            "description": "Accuracy of the clock-out location",
            "example": 5.7
          },
          "workable": {
            "type": "boolean",
            "description": "Whether the shift counts as worked (workable) time rather than a break",
            "example": true
          },
          "created_at": {
            "type": "string",
            "description": "Timestamp when the shift record was created",
            "example": "2023-10-01T08:00:00.000Z"
          },
          "workplace_id": {
            "type": "string",
            "description": "Identifier for the location",
            "example": "1"
          },
          "time_settings_break_configuration_id": {
            "type": "string",
            "description": "Identifier for the break configuration",
            "example": "1"
          },
          "company_id": {
            "type": "string",
            "description": "Identifier for the company",
            "example": "1"
          },
          "updated_at": {
            "type": "string",
            "description": "Timestamp when the shift record was updated",
            "example": "2023-10-01T08:00:00.000Z"
          },
          "minutes": {
            "type": "integer",
            "description": "Number in minutes of the shift",
            "example": 240
          },
          "clock_in_with_seconds": {
            "type": "string",
            "description": "Clock in time with seconds",
            "example": "08:30:15"
          }
        }
      }
    }
  }
}
```