Pay Global Payroll workers for tracked shifts
Submit a Global Payroll (GP) worker’s shifts, priced by shift rates you define. Deel pays the shifts with the worker’s payroll. For how rates, payroll cycles, and corrections work, see Shift pay and payroll cycles.
Shifts apply to GP contracts only. Independent contractors report time with timesheets.
Prerequisites
- An organization token with the
time-tracking:readandtime-tracking:writescopes, pluscontracts:readto look up contracts. See Authentication. - The ID of the worker’s GP contract. Get it from
GET /contractswithtypes=global_payroll. - The payroll cycle cutoff dates for the worker’s legal entity. Your Deel representative sets up the payroll calendar during onboarding.
Treat the token like a password. Store it in an environment variable or a secrets manager, never in source code.
How the workflow fits together
The diagram shows the calls your app makes before the cutoff, and when Deel processes the payroll cycle.
Submit and verify shifts
Create a shift rate
Create a rate with an external_id you choose. Create each rate once and reuse it. See POST /v2/time_tracking/shift_rates for every field, and How shift rates set pay for the rate types.
Save the rate’s external_id. Each shift references it as summary.shift_rate_external_id.
Submit the shifts
Submit one or more shifts for the contract in one request. Each shift needs an external_id you choose, a description, the date_of_work, and a summary that references the shift rate. The summary fields depend on the rate’s type. See Match the summary to the shift rate, and POST /v2/time_tracking/shifts for every field.
Save each shift’s external_id. You need it to verify, update, delete, or correct the shift.
Verify the shifts before the cutoff
List the contract’s shifts for the payroll period and compare them with your records. See GET /v2/time_tracking/shifts for the filters.
Every shift you submitted for the period is listed with the expected shift_rate_external_id and amount.
At the cutoff, Deel processes the cycle and pays the shifts with the worker’s payroll. Fix a wrong shift before then. See A shift is wrong and the cutoff hasn’t passed.
Test the workflow in the sandbox
Run the workflow against the sandbox base URL, https://api-staging.letsdeel.com/rest, with a sandbox token and a GP contract in your sandbox. See Sandbox.
Common scenarios
Your shift rate is a flat hourly rate
A shift on a PER_HOUR_FLAT_RATE rate, such as regular-hourly, takes the hours fields in its summary instead of time_unit and time_amount: total_payable_hours, with shift_duration_hours, total_break_hours, and payable_break_hours.
Assign a shift to a specific cycle
Add payroll_cycle_ref.date to the shift, set to any date in the intended cycle, for example the cycle’s end date ("2026-10-31T00:00:00.000Z"). If that cycle’s cutoff has passed, the request fails with 400. Without payroll_cycle_ref, a late shift moves to the next cycle. See How shifts map to payroll cycles.
A shift is wrong and the cutoff hasn’t passed
Update the shift with PATCH /time_tracking/shifts/{external_id}. Send only the fields that change. To move the shift to another rate, pick one of the same type.
Deleting a shift can’t be undone. To pay the time later, submit the shift again before the cutoff.
To remove the shift, call DELETE /time_tracking/shifts/{external_id}. It returns 204 No Content.
The hours change after the cutoff
Submit a correction shift that adds or subtracts time in the next payroll cycle. See Correct a processed shift.
A shift rate needs to change
Update or delete a rate with PATCH /time_tracking/shift_rates/{external_id} or DELETE /time_tracking/shift_rates/{external_id} while no shift references it. Once shifts use a rate, create a new rate for future shifts.
Your integration submits uncategorized (raw) shifts
Uncategorized (raw) shifts are deprecated. The raw shifts endpoints keep working until the sunset date, October 13, 2027. See API versioning for how deprecation and sunset work.
Move to categorized shifts before the sunset date:
Calculate the time to pay
Convert each raw shift’s start time, end time, and breaks into the summary fields for its rate’s type. See Match the summary to the shift rate.
Submit categorized shifts
Submit shifts with a summary object in place of the meta object, as in Submit and verify shifts.