Create shifts
Creates categorised shifts, each with a shift type and rate, for a Global Payroll contract, including corrections to shifts already exported to payroll. Shifts are saved first and exported to payroll in the background, so the call returns before the export finishes. To create shifts with only clock-in and clock-out times, use POST /rest/v2/time_tracking/shifts/raw.
Token scopes: time-tracking:write
Authentication
AuthorizationBearer
Authentication
The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.
curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \
-H 'Authorization: Bearer YOUR-TOKEN-HERE'
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/
Request
Request body to create time tracking shifts supporting regular shifts and correction shifts.
data
Response
Successful operation.
data
Errors
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error