timeOff

Retrieve policy validation templates

Changed on

Use 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

get/time_offs/policy-validation-templates

Request

  • Base URL
    https://api.letsdeel.com/rest
  • Auth
    HTTP bearer

Query parameters

countries, string[] required

List of countries (ISO 3166-1 alpha-2 codes) to fetch policy templates and types for.

Response

Successful operation.

TimeOffGetTimeOffPolicyValidationTemplatesResponse200 required
data, TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaData

Changes

    • info

      added the optional property data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_application to the response with the status

    • info

      added the optional property data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_increment to the response with the status

    • info

      added the optional property data/policy_validation_templates/items/policy_allowance_proration/oneOf[subschema #1: TimeOffsPolicyValidationTemplatesGetResponsesContentApplicationJsonSchemaDataPolicyValidationTemplatesItemsPolicyAllowanceProration]/rounding_mode to the response with the status