Retrieve policy validation templates
Changed onUse this endpoint to see the leave types that Deel supports in a country and the rules a policy of each type must follow. Call it before you set up time-off policies for workers in a new country, or to show the available leave types and their limits in an external HRIS. Only published templates are returned. The templates are country rules, not the policies of your organization: to get the policies of one worker, use GET /rest/time_offs/profile/{hris_profile_id}/policies.
Token scopes: time-off:read
Request
- Base URLhttps://api.letsdeel.com/rest
- AuthHTTP bearer
Query parameters
List of countries (ISO 3166-1 alpha-2 codes) to fetch policy templates and types for.
Response
Successful operation.
Changes
- info
added the optional property
data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_applicationto the response with the status - info
added the optional property
data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_incrementto the response with the status - info
added the optional property
data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_modeto the response with the status
- info