Create a time off policy
Changed onCreates a time off policy for a company. Set the configuration object that matches accrual_method: annual_grant, per_payroll, or per_hour_worked.
post/time-off/policies
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"name": "California Paid Sick Leave",
"active": true,
"policy_year": {
"basis": "fixed_date",
"date": "01-01"
},
"earning_type": "sick",
"accrual_method": "per_hour_worked",
"annual_grant": {
"hours": "40.00",
"partial_year_method": "prorate"
},
"per_payroll": {
"hours_per_year": "120.00"
},
"per_hour_worked": {
"hours": "1.00",
"per_hours_worked": "30.00"
},
"limits": {
"min_balance": "0.00",
"max_rollover": "40.00",
"max_accrual_per_policy_year": "40.00"
},
"usage_waiting_period_days": 90
}Response
200
Example response
{
"id": "top_4fKq8Wz1mN2pR7sT",
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"name": "California Paid Sick Leave",
"active": true,
"policy_year": {
"basis": "fixed_date",
"date": "01-01"
},
"earning_type": "sick",
"accrual_method": "per_hour_worked",
"annual_grant": {
"hours": "40.00",
"partial_year_method": "prorate"
},
"per_payroll": {
"hours_per_year": "120.00"
},
"per_hour_worked": {
"hours": "1.00",
"per_hours_worked": "30.00"
},
"limits": {
"min_balance": "0.00",
"max_rollover": "40.00",
"max_accrual_per_policy_year": "40.00"
},
"usage_waiting_period_days": 90
}Changes
- info
endpoint added
- info