v1

latestOpenAPI 3.1.02026-07-1274177461.2 KB
Employees
Shifts

Get Employee Shift

get/unified/hris/employees/{id}/shifts/{subResourceId}

Path parameters

idstring required
subResourceIdstring required

Query parameters

rawboolean nullable

Indicates that the raw request result should be returned in addition to the mapped result (default value is false)

proxyobject nullable

Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key

fieldsstring nullable

The comma separated list of fields to return in the response (if empty, all fields are returned)

Headers

x-account-idstring required

The account identifier

Preferstring
Example:heartbeat

Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)

Response

The shift with the given identifier for the specified employee was retrieved.

Example response

{
  "data": {
    "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
    "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
    "employee_id": "emp_123456789",
    "location_id": "loc_123456789",
    "company_id": "comp_123456789",
    "start_time": "2024-03-20T09:00:00.000",
    "end_time": "2024-03-20T17:00:00.000",
    "break_duration": "PT1H30M",
    "status": {
      "value": "confirmed"
    },
    "approval_status": {
      "value": "approved"
    },
    "breaks": [
      {
        "id": "break_123456789",
        "start_time": "2024-03-20T12:00:00Z",
        "end_time": "2024-03-20T13:00:00Z",
        "duration": "PT1H",
        "created_at": "2024-03-20T10:00:00Z",
        "updated_at": "2024-03-20T10:00:00Z"
      }
    ],
    "created_at": "2024-03-20T08:00:00Z",
    "updated_at": "2024-03-20T08:00:00Z"
  }
}