v1

latestOpenAPI 3.1.02026-07-1274177461.2 KB
Shifts

List Shifts

get/unified/hris/shifts

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)

updated_afterstring date-time nullable

Use a string with a date to only select results updated after that given date

status'draft' | 'published' | 'confirmed' | 'cancelled' | 'unmapped_value' nullable

Filter to select shifts by status

starts_afterstring datetime-local

Filter shifts that start after this date

ends_beforestring datetime-local

Filter shifts that end before this date

HRIS Shifts filters

{
  "updated_after": "2020-01-01T00:00:00.000Z",
  "starts_after": "2024-01-15T09:00",
  "ends_before": "2024-01-15T17:00"
}
pagestring nullable

The page number of the results to fetch

page_sizestring nullable

The number of results per page (default value is 25)

nextstring nullable

The unified cursor

updated_afterstring date-time nullable
Example:2020-01-01T00:00:00.000Z

Use a string with a date to only select results updated after that given date

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 list of shifts was retrieved.

nextstring nullable

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"
    }
  ]
}