> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ontime.hosai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin: an employee's day detail (shift, worked bands

> Admin: an employee's day detail (shift, worked bands, punches, location)



## OpenAPI

````yaml /api-reference/openapi.json get /api/attendance/employee/{id}/day/{date}
openapi: 3.1.0
info:
  title: ontime API
  description: APIs for ontime.v2
  version: 1.0.0
servers:
  - url: https://app.ontime.hosai.app
    description: Production
security:
  - apiKey: []
paths:
  /api/attendance/employee/{id}/day/{date}:
    get:
      tags:
        - Attendance
      summary: 'Admin: an employee''s day detail (shift, worked bands'
      description: 'Admin: an employee''s day detail (shift, worked bands, punches, location)'
      operationId: getApiAttendanceEmployeeByIdDayByDate
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          required: true
        - in: path
          name: date
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type: string
                  weekday:
                    type: string
                  status:
                    anyOf:
                      - type: string
                        enum:
                          - Present
                          - Absent
                          - Leave
                          - Half
                          - WeeklyOff
                          - Holiday
                      - type: 'null'
                  shift:
                    anyOf:
                      - type: object
                        properties:
                          code:
                            anyOf:
                              - type: string
                                enum:
                                  - G
                                  - M
                                  - E
                                  - 'N'
                                  - F
                              - type: 'null'
                          name:
                            type: string
                          startTime:
                            type: string
                          endTime:
                            type: string
                          startMin:
                            anyOf:
                              - type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              - type: 'null'
                          endMin:
                            anyOf:
                              - type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              - type: 'null'
                          gracePeriodMinutes:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          unpaidBreakMinutes:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                        required:
                          - code
                          - name
                          - startTime
                          - endTime
                          - startMin
                          - endMin
                          - gracePeriodMinutes
                          - unpaidBreakMinutes
                      - type: 'null'
                  location:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            anyOf:
                              - type: string
                                format: uuid
                                pattern: >-
                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                              - type: 'null'
                          name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          geofenceLat:
                            anyOf:
                              - type: number
                              - type: 'null'
                          geofenceLng:
                            anyOf:
                              - type: number
                              - type: 'null'
                          geofenceRadiusM:
                            anyOf:
                              - type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              - type: 'null'
                        required:
                          - id
                          - name
                          - geofenceLat
                          - geofenceLng
                          - geofenceRadiusM
                      - type: 'null'
                  geofenceStatus:
                    type: string
                    enum:
                      - Inside
                      - Outside
                      - Pending
                  bands:
                    type: array
                    items:
                      type: object
                      properties:
                        startMin:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        endMin:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        open:
                          type: boolean
                      required:
                        - startMin
                        - endMin
                        - open
                  firstIn:
                    anyOf:
                      - type: string
                      - type: 'null'
                  lastOut:
                    anyOf:
                      - type: string
                      - type: 'null'
                  workedMinutes:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  breakMinutes:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  otMinutes:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  lateMinutes:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  events:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        employeeId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        employeeName:
                          type: string
                        employeeCode:
                          type: string
                        timestamp:
                          type: string
                        direction:
                          type: string
                          enum:
                            - IN
                            - OUT
                        source:
                          type: string
                          enum:
                            - MobileGPS
                            - SelfieGPS
                            - Biometric
                            - Web
                        deviceId:
                          anyOf:
                            - type: string
                              format: uuid
                              pattern: >-
                                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                            - type: 'null'
                        deviceCode:
                          anyOf:
                            - type: string
                            - type: 'null'
                        lat:
                          anyOf:
                            - type: number
                            - type: 'null'
                        lng:
                          anyOf:
                            - type: number
                            - type: 'null'
                        accuracyMeters:
                          anyOf:
                            - type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            - type: 'null'
                        geofenceStatus:
                          type: string
                          enum:
                            - Inside
                            - Outside
                            - Pending
                        selfieRef:
                          anyOf:
                            - type: string
                            - type: 'null'
                        reason:
                          anyOf:
                            - type: string
                            - type: 'null'
                        status:
                          type: string
                          enum:
                            - Approved
                            - Pending
                            - Rejected
                        conflictFlag:
                          type: boolean
                      required:
                        - id
                        - employeeId
                        - employeeName
                        - employeeCode
                        - timestamp
                        - direction
                        - source
                        - deviceId
                        - deviceCode
                        - lat
                        - lng
                        - accuracyMeters
                        - geofenceStatus
                        - selfieRef
                        - reason
                        - status
                        - conflictFlag
                  sources:
                    type: array
                    items:
                      type: object
                      properties:
                        source:
                          type: string
                          enum:
                            - MobileGPS
                            - SelfieGPS
                            - Biometric
                            - Web
                        count:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                      required:
                        - source
                        - count
                  impact:
                    anyOf:
                      - type: string
                      - type: 'null'
                  canRegularize:
                    type: boolean
                required:
                  - date
                  - weekday
                  - status
                  - shift
                  - location
                  - geofenceStatus
                  - bands
                  - firstIn
                  - lastOut
                  - workedMinutes
                  - breakMinutes
                  - otMinutes
                  - lateMinutes
                  - events
                  - sources
                  - impact
                  - canRegularize
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ont_ API key
      description: >-
        Issue keys in Settings → API. Send them as `Authorization: Bearer ont_…`
        (an `X-Api-Key: ont_…` header is also accepted). Session-cookie routes
        are used by the OnTime web apps and are shown for completeness.

````