GET /2023-03-01/xhr/time-off-balances
curl \
-X GET https://api.affixapi.com/2023-03-01/xhr/time-off-balances \
-H "Authorization: $API_KEY"
Response examples (200)
[
{
"employee_id": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
"employee_remote_id": "19202938",
"balance": 24.5,
"used": 12,
"policy_id": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
"policy_remote_id": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
"policy_name": "Comp/In Lieu Time",
"policy_type": "vacation",
"remote_created_at": "2020-10-11",
"remote_modified_at": "2020-10-11"
}
]
Response examples (202)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (401)
{
"error": "authentication_error",
"message": "Your password is incorrect",
"code": "incorrect_username_or_password"
}
Response examples (429)
# Headers
Retry-After: 42
# Payload
{
"message": "string"
}
Response examples (500)
{
"message": "string"
}
Response examples (501)
{
"message": "string"
}