curl --request GET \
--url https://api.stackone.com/unified/hris/time_off/{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": "1687-3",
"remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"approver_id": "1687-4",
"remote_approver_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"status": {
"value": "approved",
"source_value": "<string>"
},
"type": {
"value": "sick",
"source_value": "<string>"
},
"start_date": "2021-01-01T01:01:01.000",
"end_date": "2021-01-01T01:01:01.000",
"start_half_day": true,
"end_half_day": true,
"duration": "P3Y6M4DT12H30M5S",
"time_off_policy_id": "cx280928933",
"remote_time_off_policy_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"reason": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>"
},
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z",
"policy": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "Holidays",
"description": "Usable for regional and national holidays of employees.",
"type": {
"value": "holiday",
"source_value": "<string>"
},
"duration_unit": {
"value": "hours",
"source_value": "<string>"
},
"reasons": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>"
}
],
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"comment": "Taking a day off for personal reasons"
},
"raw": [
{
"method": "<string>",
"url": "<string>",
"body": {},
"response": {}
}
]
}curl --request GET \
--url https://api.stackone.com/unified/hris/time_off/{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": "1687-3",
"remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"approver_id": "1687-4",
"remote_approver_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"status": {
"value": "approved",
"source_value": "<string>"
},
"type": {
"value": "sick",
"source_value": "<string>"
},
"start_date": "2021-01-01T01:01:01.000",
"end_date": "2021-01-01T01:01:01.000",
"start_half_day": true,
"end_half_day": true,
"duration": "P3Y6M4DT12H30M5S",
"time_off_policy_id": "cx280928933",
"remote_time_off_policy_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48",
"reason": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>"
},
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z",
"policy": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "Holidays",
"description": "Usable for regional and national holidays of employees.",
"type": {
"value": "holiday",
"source_value": "<string>"
},
"duration_unit": {
"value": "hours",
"source_value": "<string>"
},
"reasons": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>"
}
],
"created_at": "2021-01-01T01:01:01.000Z",
"updated_at": "2021-01-01T01:01:01.000Z"
},
"comment": "Taking a day off for personal reasons"
},
"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 that will be returned in the response (if empty, all fields are returned)
"id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,time_off_policy_id,remote_time_off_policy_id,reason,comment,duration,created_at,updated_at,policy,unified_custom_fields"
The comma separated list of fields that will be expanded in the response
"policy"
The time off request 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
"1687-3"
Provider's unique identifier of the employee
"e3cb75bf-aa84-466e-a6c1-b8322b257a48"
The approver ID
"1687-4"
Provider's unique identifier of the approver
"e3cb75bf-aa84-466e-a6c1-b8322b257a48"
The type of the time off request
Show child attributes
sick, unmapped_value, vacation, long_term_disability, short_term_disability, absent, comp_time, training, annual_leave, leave_of_absence, break, child_care_leave, maternity_leave, jury_duty, sabbatical, accident, paid, unpaid, holiday, personal, in_lieu, bereavement, other, The start date of the time off request (ISO8601 date-time without timezone)
"2021-01-01T01:01:01.000"
Inclusive end date of the time off request (ISO8601 date-time without timezone). The time off includes this day
"2021-01-01T01:01:01.000"
True if the start of the time off request begins half way through the day
true
True if the end of the time off request ends half way through the day
true
The duration of the time off request
"P3Y6M4DT12H30M5S"
The time off policy id associated with this time off request
"cx280928933"
Provider's unique identifier of the time off policy id associated with this time off request
"e3cb75bf-aa84-466e-a6c1-b8322b257a48"
Timestamp when the time off request was created
"2021-01-01T01:01:01.000Z"
Timestamp when the time off request was last updated
"2021-01-01T01:01:01.000Z"
The time off policy associated with Time Off
Show child attributes
Unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
Provider's unique identifier
"8187e5da-dc77-475e-9949-af0f1fa4e4e3"
The name of this policy
"Holidays"
The description of this policy
"Usable for regional and national holidays of employees."
The type of this policy
Show child attributes
The unified value for the type of the time off policy. If the provider does not specify this unit, the value will be set to unmapped_value
sick, unmapped_value, vacation, long_term_disability, short_term_disability, absent, comp_time, training, annual_leave, leave_of_absence, break, child_care_leave, maternity_leave, jury_duty, sabbatical, accident, paid, unpaid, holiday, personal, in_lieu, bereavement, other, "holiday"
The duration unit of the current policy
Show child attributes
The unified value for the duration unit. If the provider does not specify this unit, the value will be set to unknown
minutes, hours, days, weeks, months, years, unknown, unmapped_value, "hours"
The created_at date of this policy
"2021-01-01T01:01:01.000Z"
The updated_at date of this policy
"2021-01-01T01:01:01.000Z"
Allows users to provide additional context or notes for their time off request
"Taking a day off for personal reasons"
Was this page helpful?