v1
latestOpenAPI 3.1.02026-07-243113441.2 MBCreate a time off policy
Create a time off policy
scope: time_off_policies:write
Path parameters
The UUID of the company
Headers
Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Request body
Name of the time off policy
Type of the time off policy. Currently only "vacation" and "sick" are supported
Accrual method of the time off policy
The rate at which the time off hours will accrue for an employee on the policy. Represented as a float, e.g. "40.0".
The number of hours an employee has to work or be paid for to accrue the number of hours set in the accrual rate. Only used for hourly policies (per_hour_paid, per_hour_paid_no_overtime, per_hour_work, per_hour_worked_no_overtime). Represented as a float, e.g. "40.0".
Boolean representing if an employee's accrued time off hours will be paid out on termination. If accrual_method is unlimited, then paid_out_on_termination must be false.
Number of days before an employee on the policy will begin accruing time off hours. If accrual_method is per_anniversary_year, per_calendar_year, or unlimited, then accrual_waiting_period_days should be 0.
The max number of hours an employee can carryover from one year to the next. If accrual_method is unlimited, then carryover_limit_hours must be blank.
The max number of hours an employee can accrue in a year. If accrual_method is yearly (per_anniversary_year, per_calendar_year) or unlimited, then max_accrual_hours_per_year must be blank.
The max number of hours an employee can accrue. If accrual_method is unlimited, then max_hours must be blank.
The date the policy resets. Format MM-DD
boolean representing if a policy has completed configuration
Example request
{
"name": "Vacation Policy"
}Response
created
Unique identifier of a time off policy
Unique identifier for the company owning the time off policy
Name of the time off policy
Type of the time off policy. Only "vacation" and "sick" can be created through the API, but other types may be present if the company was previously a Gusto.com customer.
Policy time off accrual method
The rate at which the time off hours will accrue for an employee on the policy. Represented as a float, e.g. "40.0".
The number of hours an employee has to work or be paid for to accrue the number of hours set in the accrual rate. Only used for hourly policies (per_hour_paid, per_hour_paid_no_overtime, per_hour_work, per_hour_worked_no_overtime). Represented as a float, e.g. "40.0".
Boolean representing if an employee's accrued time off hours will be paid out on termination
Number of days before an employee on the policy will begin accruing time off hours
The max number of hours an employee can carryover from one year to the next
The max number of hours an employee can accrue in a year
The max number of hours an employee can accrue
The date the policy resets. Format MM-DD
boolean representing if a policy has completed configuration
The current version of the object. See the versioning guide for information on how to use this field. The version will be null if the policy is no longer active.
boolean representing if a policy is active or not