Skip to main content
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
nextstring, nullLink to next page
previousstring, nullLink 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
time_entries[].idstringUnique time entry ID
time_entries[].external_idstringTime entry external ID
time_entries[].created_atstringTime entry creation timestamp
time_entries[].updated_atstringTime entry update timestamp
time_entries[].entry_datestringEntry date of event in time tracking system
time_entries[].startstringDate and time when work shift started
time_entries[].endstringDate and time when work shift ended
earningsarray of objectsAggregated earnings for shift
earnings[].namestringName of earnings (required)
earnings[].amountstring (decimal)Amount of earnings (required)
earnings[].categorystringCategory of earnings (required), one of: regular, overtime, bonus, commission, other_pay
earnings[].ratestring (decimal), nullRate of earnings
earnings[].unitsstring (decimal), nullUnits of earnings
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": []
}