curl --request GET \
--url https://api.stackone.com/unified/hris/shifts/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"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",
"source_value": "Confirmed"
},
"approval_status": {
"value": "approved",
"source_value": "Approved"
},
"breaks": [
{
"id": "break_123456789",
"start_time": "2024-03-20T12:00:00Z",
"end_time": "2024-03-20T13:00:00Z",
"duration": "PT1H",
"is_paid": true,
"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"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}curl --request GET \
--url https://api.stackone.com/unified/hris/shifts/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"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",
"source_value": "Confirmed"
},
"approval_status": {
"value": "approved",
"source_value": "Approved"
},
"breaks": [
{
"id": "break_123456789",
"start_time": "2024-03-20T12:00:00Z",
"end_time": "2024-03-20T13:00:00Z",
"duration": "PT1H",
"is_paid": true,
"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"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The account identifier
Indicates that the raw request result should be returned in addition to the mapped result (default value is false)
Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key
The comma separated list of fields to return in the response (if empty, all fields are returned)
The shift with the given identifier was retrieved.
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
The employee ID associated with this shift
"emp_123456789"
The location ID where this shift takes place
"loc_123456789"
The company ID associated with this shift
"comp_123456789"
The start time of the shift (ISO8601 date-time without timezone)
"2024-03-20T09:00:00.000"
The end time of the shift (ISO8601 date-time without timezone)
"2024-03-20T17:00:00.000"
The total break duration for this shift in ISO 8601 duration format
"PT1H30M"
The breaks taken during this shift
Show child attributes
The unique identifier of the break
"break_123456789"
The start time of the break
"2024-03-20T12:00:00Z"
The end time of the break
"2024-03-20T13:00:00Z"
The duration of the break in ISO 8601 duration format
"PT1H"
Whether the break is paid
true
The date and time the break was created
"2024-03-20T10:00:00Z"
The date and time the break was last updated
"2024-03-20T10:00:00Z"
The date and time the shift was created
"2024-03-20T08:00:00Z"
The date and time the shift was last updated
"2024-03-20T08:00:00Z"
Was this page helpful?