Authorizations
Headers
Query Parameters
Example:
Example:
Example:
curl --request GET \
--url https://api.stackone.com/unified/hris/time_off \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"next_page": "<string>",
"next": "<string>",
"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": "<string>",
"response": {}
}
]
}curl --request GET \
--url https://api.stackone.com/unified/hris/time_off \
--header 'Authorization: Basic <encoded-value>' \
--header 'x-account-id: <x-account-id>'{
"next_page": "<string>",
"next": "<string>",
"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": "<string>",
"response": {}
}
]
}Show child attributes
Was this page helpful?