---
title: "Process time-off requests from an external HRIS"
method: POST
path: "/time_offs/global-payroll/sync"
tags: ["timeOff"]
---

# Process time-off requests from an external HRIS

`POST /time_offs/global-payroll/sync`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/time_offs/global-payroll/sync`
- Auth: HTTP bearer

Synchronizes time-off requests from an external HRIS into Deel for Global Payroll contracts only. Each record is upserted or deleted based on its external ID — records carrying `deleted: true` are removed while all others are inserted or updated — and Deel calculates the payroll cycle impact of each operation.

 **Token scopes**: `time-off:write`

## Request body

- object
  - `data` TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaData
    - `time_offs` TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems[], required
      - union
        - TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems0
          - `amount` string: The amount in time units for this time off. When no amount is informed, it will be calculated using work schedules and public holidays defined at Deel.
          - `is_paid` boolean: Allows the consumer to specify whether the time off is considered as paid (at statutory) or unpaid based on the configuration of the policy in the external HRIS.
          - `end_date` string, date, required: The end date of the time off.
          - `start_date` string, date, required: The start date of the time off.
          - `approved_at` string, date: The approval date of the time off. If no approval date is informed, the start date of this request will be used as the approval date. Note: use this field in order to support retrospective leaves so Deel can identify requests made after the payroll cycle.
          - `description` string, nullable: The description of the time off.
          - `external_id` string, required: External ID to link a Deel time off object with an external time off object. It will be used to determine which operation should be done: INSERT, UPDATE or DELETE.
          - `policy_name` string: The policy name the time off is being requested for. If not informed, a default name will be generated using the policy type and contract's country (eg: Vacation - US).
          - `policy_type` 'Adoption leave' | 'Advanced vacation' | 'Bereaved partner's paternity leave' | 'Bereavement leave' | 'Blood donation leave' | 'Breastfeeding leave' | 'Carer's leave' | 'Childbirth leave' | 'Childcare leave' | 'Civic/public duty leave' | 'Compensatory leave' | 'Disability leave' | 'Doctor's appointment leave' | 'Family & domestic violence leave' | 'Family responsibility leave' | 'Floating Holiday Allowance' | 'Hajj leave' | 'Hospitalization leave' | 'Long Service Leave' | 'Make-up time' | 'Marriage/wedding leave' | 'Maternity leave' | 'Menstrual leave' | 'Military leave' | 'Moving leave' | 'Neonatal care leave' | 'Other leave' | 'Paid leave' | 'Parental bereavement leave' | 'Parental leave' | 'Paternity leave' | 'Personal leave' | 'Pregnancy leave' | 'Regional holiday' | 'RTT' | 'Shared parental leave' | 'Sick leave' | 'Strike' | 'Study leave' | 'Supplementary Leave' | 'Unpaid leave' | 'Vacation' | 'Vacation - public holidays replacement' | 'Volunteer leave' | 'Voting leave' | 'Work accident leave' | 'Work away from office' | 'Work Location', nullable, required: The Deel policy type of the policy the time off is being requested for.
          - `contract_oid` string, required: The contract id that has requested the time off.
          - `requested_at` string, date: The request date of the time off.
          - `entitlement_unit` 'HOUR' | 'BUSINESS_DAY' | 'CALENDAR_DAY' | 'WEEK' | 'MONTH' | 'YEAR': The time unit for this time off. *Mandatory when amount parameter is informed*. If no amount and no entitlement_unit are informed, it will be calculated using Deel's internal country templates for compliant time off policies.
        - TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems1
          - `deleted` boolean, required: Indicates this time off request must be deleted
          - `external_id` string, required: External ID to link a Deel time off object with an external time off object. It will be used to determine which operation should be done: INSERT, UPDATE or DELETE.
          - `contract_oid` string, required: The contract id that has requested the time off.

## Response `200`

Successful operation time offs returned

- TimeOffSyncTimeOffGlobalPayrollResponse200: List of time offs persisted at Deel
  - `data` TimeOffsGlobalPayrollSyncPostResponsesContentApplicationJsonSchemaData
    - `deleted` number, double: Number of time off requests that were deleted
    - `updated` number, double: Number of time off requests that were updated
    - `inserted` number, double: Number of time off requests that were inserted

## Other responses

- `400`: Operation failed.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

## Changes

- **2026-12-01** `4585b4e41a87`: 1 info
  - added the new `Make-up time` enum value to the request property `data/time_offs/items/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems0]/policy_type/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItemsOneOf0PolicyType]/`
- **2026-11-25** `250bafebbcb9`: 1 info
  - added the new `Voting leave` enum value to the request property `data/time_offs/items/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems0]/policy_type/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItemsOneOf0PolicyType]/`
- **2026-11-06** `ee55a2afd30c`: 1 info
  - added the new `Strike` enum value to the request property `data/time_offs/items/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItems0]/policy_type/oneOf[subschema #1: TimeOffsGlobalPayrollSyncPostRequestBodyContentApplicationJsonSchemaDataTimeOffsItemsOneOf0PolicyType]/`
- …earlier changes not shown

[Operation history](https://skmtc.dev/deel/apis/endpoints-3/changes/time_offs/global-payroll/sync/post.md)

---

[API](https://skmtc.dev/deel/apis/endpoints-3.md) - [All operations](https://skmtc.dev/deel/apis/endpoints-3/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints-3/revisions/4585b4e41a87?raw)
