---
title: "Get Shift details"
method: GET
path: "/time_tracking/shifts/{external_id}"
tags: ["timeTrackingShifts"]
---

# Get Shift details

`GET /time_tracking/shifts/{external_id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/time_tracking/shifts/{external_id}`
- Auth: HTTP bearer

Retrieves a shift by its external ID. Use it to review a single shift you created before correcting or removing it; to find the ID, use `GET /rest/v2/time_tracking/shifts`.

 **Token scopes**: `time-tracking:read`

## Path parameters

- `external_id` string, required

## Response `200`

Shift details retrieved successfully

- TimeTrackingShiftsGetTimeTrackingShiftByExternalIdResponse200: Shift response wrapper
  - `data` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaData, required
    - `meta` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMeta
      - `end` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMetaEnd, required
        - `date` string, required: Shift end date
        - `time` string, required: Shift end time in HH:mm format
        - `is_rest_day` boolean, required: Indicates if it is a rest day
        - `is_public_holiday` boolean, required: Indicates if it is a public holiday
      - `start` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMetaStart, required
        - `date` string, required: Shift start date
        - `time` string, required: Shift start time in HH:mm format
        - `is_rest_day` boolean, required: Indicates if it is a rest day
        - `is_public_holiday` boolean, required: Indicates if it is a public holiday
      - `breaks` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMetaBreaksItems[]
        - `end` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMetaBreaksItemsEnd, required
          - `date` string, required: Break end date
          - `time` string, required: Break end time in HH:mm format
        - `start` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataMetaBreaksItemsStart, required
          - `date` string, required: Break start date
          - `time` string, required: Break start time in HH:mm format
        - `is_paid` boolean: Indicates if the break is paid
      - `approval_date` string: Approval date for the shift, in ISO format
    - `summary` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataSummary
      - `time_unit` 'DAY' | 'HOUR' | 'MONTH' | 'WEEK': The unit of time for the shift (DAY, HOUR, MONTH, WEEK)
      - `time_amount` number, double: The amount of time for the shift
      - `total_break_hours` number, double: Total break duration in hours
      - `payable_break_hours` number, double: Break hours that are payable
      - `total_payable_hours` number, double: Total payable working hours after break deductions
      - `shift_duration_hours` number, double: Total duration of the shift in hours
      - `shift_rate_external_id` string, required: External ID of the shift rate associated with this shift
    - `created_at` string, date-time, required: Date when the shift was created
    - `shift_type` 'REGULAR' | 'CORRECTION_ABSOLUTE' | 'CORRECTION_DELTA' | 'TIME_OFF_QUALIFYING', required: Type of the shift
    - `updated_at` string, date-time, required: Date when the shift was last updated
    - `contract_id` string, required: Associated contract ID for the shift
    - `description` string, required: Description of the shift
    - `external_id` string, required: ID specified by the client for uniquely identifying the shift
    - `date_of_work` string, required: Date when the shift takes place, in YYYY-MM-DD format
    - `payroll_cycle_ref` TimeTrackingShiftsExternalIdGetResponsesContentApplicationJsonSchemaDataPayrollCycleRef: Payroll cycle reference
      - `date` string, date-time, required: date in ISO
    - `shift_reference_id` string: External ID of the original shift this one references (set on correction shifts).

## Other responses

- `400`: Invalid request parameters
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/endpoints-3.md) - [All operations](https://skmtc.dev/deel/apis/endpoints-3/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints-3/revisions/4585b4e41a87?raw)
