Shifts

Learn more about information related to ongoing and completed work shifts.

Overview

The Shifts endpoint includes time entries such as clock in and clock out, the type of work, and earnings. Shifts is related to the link_id from Truv's Income and Employment API.

Attributes

The values in the table below cover attributes of Shifts

AttributeTypeDescription
countintegerTotal number of results
nextstringLink to next page
previousstringLink to previous page
resultsarray of objectsList of shifts
idstringUnique ID of shifts
external_idstringExternal ID of selected shifts
created_atstringShift creation timestamp
updated_atstringShift update timestamp
start_datestringShift start date
end_datestringShift end date
time_entriesarray of objectsList of shift-related time entries
idstringUnique time entry ID
external_idstringTime entry external ID
created_atstringTime entry creation timestamp
updated_atstringTime entry update timestamp
entry_datestringEntry date of event in time tracking system
startstringDate and time when work shift started
endstringDate and time when work shift ended
earningsarray of objectsAggregated earnings for shift
typestringType of shift, four types of shifts available
- Other
- Delivery
- Rideshare
- Shift

Endpoint

The item below is the available endpoint for Shifts.

Example response

The response object below is the returned JSON value.

{
  "count": 0,
  "next": null,
  "previous": null,
  "results": []
}