Skip to navigation

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:read and time-tracking:write scopes, plus contracts:read to look up contracts. See Authentication.
  • The ID of the worker’s GP contract. Get it from GET /contracts with types=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.

Create a shift rate Shift rate external_id Submit the shifts Created shifts Verify the shifts before the cutoff Shifts for the contract and dates Process the payroll cycle at the cutoff Your app Deel API Deel payroll

Submit and verify shifts

1

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.

curl --request POST 'https://api.letsdeel.com/rest/v2/time_tracking/shift_rates' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"external_id": "overtime-150",
"name": "Overtime 150%",
"type": "MULTIPLIER_PERCENTAGE",
"value": 150
}
}'

Save the rate’s external_id. Each shift references it as summary.shift_rate_external_id.

2

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.

curl --request POST 'https://api.letsdeel.com/rest/v2/time_tracking/shifts' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"contract_id": "3j5z2e6",
"shifts": [
{
"external_id": "shift-jane-2026-10-05",
"description": "Overtime: warehouse inventory count",
"date_of_work": "2026-10-05",
"summary": {
"shift_rate_external_id": "overtime-150",
"time_unit": "HOUR",
"time_amount": 8
}
}
]
}
}'

Save each shift’s external_id. You need it to verify, update, delete, or correct the shift.

3

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.

curl --globoff --request GET 'https://api.letsdeel.com/rest/v2/time_tracking/shifts?contract_id[]=3j5z2e6&from_date=2026-10-01&to_date=2026-10-31&limit=10&offset=0' \
--header 'Authorization: Bearer YOUR_API_TOKEN'

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.

ScenarioHow to trigger itExpected result
Overtime shiftCreate the overtime-150 rate, then submit the shift above201 Created for both, and the shift appears in the list
Duplicate shift rateCreate a second rate with external_id overtime-150409 Conflict: A shift rate with the provided external ID already exists.
Missing scopeCall POST /v2/time_tracking/shifts with a token that lacks time-tracking:write403 Forbidden
Late shift with a cycle referenceSubmit a shift with a payroll_cycle_ref.date in a cycle whose cutoff has passed400 Bad Request: Delayed submission is not allowed. Payroll cycle is already closed.

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.

"summary": {
"shift_rate_external_id": "regular-hourly",
"shift_duration_hours": 8,
"total_break_hours": 1,
"payable_break_hours": 0.5,
"total_payable_hours": 7.5
}

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.

curl --request PATCH 'https://api.letsdeel.com/rest/time_tracking/shifts/shift-jane-2026-10-05' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"summary": {
"time_amount": 7.5
}
}
}'

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

Deprecated

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:

1

Create shift rates

Create a shift rate for each type of pay. Every categorized shift references one.

2

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.

3

Submit categorized shifts

Submit shifts with a summary object in place of the meta object, as in Submit and verify shifts.

4

Stop calling the raw endpoints

Remove the raw shifts calls from your integration once categorized shifts are working.

Raw shift fieldCategorized shift field
external_id, description, date_of_workSame fields
meta.start, meta.end, meta.breaksThe summary time fields for the rate’s type
Not applicablesummary.shift_rate_external_id
meta.approval_dateNo equivalent

Troubleshooting

SymptomCauseFix
401 Unauthorized on every callThe token is missing or invalid.Replace YOUR_API_TOKEN with a valid token. See Authentication.
403 Forbidden on any callThe token is missing the time-tracking:read or time-tracking:write scope.Create a token with both scopes. See Authentication.
400: Delayed submission is not allowed. Payroll cycle is already closed.The shift’s payroll_cycle_ref.date points to a cycle whose cutoff has passed.Remove payroll_cycle_ref to move the shift to the next cycle, or point it at the next cycle.
403: You cannot update or delete this shift as payroll cycle is already closedThe shift’s payroll cycle has been processed.Submit a correction. See Correct a processed shift.
409 Conflict on a shift rateThe external_id already exists on create, or shifts reference the rate on update or delete.Choose a new external_id, or create a new rate.

Next steps