Skip to navigation

Get Timeoff Policy

Gets a timeoff policy from company

Authentication

X-Thera-API-Keystring
API Key authentication via header

Path parameters

companyIdstringRequired
policyIdstringRequired

Response

This endpoint returns an object.
idstring
policyNamestring
payTypeenum
Allowed values:
leaveTypestring
allowanceTypeobject
midYearJoiningAllowanceenum
Allowed values:
accrualTypemap from enums to enums
Whether the policy allowance is per month or per year
Allowed values:
Allowed values:
autoDeductEnabledmap from enums to booleans
Whether to automatically create deductions for PTO overages
Allowed values:
createdByUserIdstring
creationTimestamplong
lastUpdationTimestamplong
timeOffPolicyAddedForset of enums
Allowed values:
deletionDetailsobjectOptional
holidayDefinitionslist of objectsOptional
accrualConfigByEmploymentTypemap from enums to objectsOptional
Allowed values:
carryoverConfigByEmploymentTypemap from enums to objectsOptional
Allowed values:
negativeBalanceBehaviorByEmploymentTypemap from enums to enumsOptional
Allowed values:
Allowed values: