get https://api.bamboohr.com/api/gateway.php//v1/employees//time_off/calculator
This endpoint will sum future time off accruals, scheduled time off, and carry-over events to produce estimates for the anticipated time off balance on a given date in the future.
Sample Response
[
{
"timeOffType":"5",
"name":"Bereavement",
"units":"hours",
"balance":"-2.5",
"policyType":"discretionary",
"usedYearToDate":"2.5",
"end":"2013-12-31"
},{
"timeOffType":"6",
"name":"Jury duty",
"units":"days",
"balance":"-1.0",
"policyType":"manual",
"usedYearToDate":"5.0",
"end":"2013-12-31"
},{
"timeOffType":"2",
"name":"Sick",
"units":"hours",
"balance":"16.0",
"policyType":"accruing",
"usedYearToDate":"24.0",
"end":"2013-12-31"
},{
"timeOffType":"1",
"name":"Vacation",
"units":"hours",
"balance":"40.0",
"policyType":"accruing",
"usedYearToDate":"76.0",
"end":"2013-12-31"
}
]
<estimates end="2013-12-31">
<estimate timeOffType="5" name="Bereavement" units="hours" balance="-2.5" policyType="discretionary" usedYearToDate="2.5"/>
<estimate timeOffType="6" name="Jury duty" units="days" balance="-1.0" policyType="manual" usedYearToDate="5.0"/>
<estimate timeOffType="2" name="Sick" units="hours" balance="16.0" policyType="accruing" usedYearToDate="24.0"/>
<estimate timeOffType="1" name="Vacation" units="hours" balance="40.0" policyType="accruing" usedYearToDate="76.0"/>
</estimates>
Notes
The results will only contain time off types that the API user is authorized to see.
The date is specified in the form YYYY-MM-DD.