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
Attribute | Type | Description |
---|---|---|
count | integer | Total number of results |
next | string | Link to next page |
previous | string | Link to previous page |
results | array of objects | List of shifts |
id | string | Unique ID of shifts |
external_id | string | External ID of selected shifts |
created_at | string | Shift creation timestamp |
updated_at | string | Shift update timestamp |
start_date | string | Shift start date |
end_date | string | Shift end date |
time_entries | array of objects | List of shift-related time entries |
id | string | Unique time entry ID |
external_id | string | Time entry external ID |
created_at | string | Time entry creation timestamp |
updated_at | string | Time entry update timestamp |
entry_date | string | Entry date of event in time tracking system |
start | string | Date and time when work shift started |
end | string | Date and time when work shift ended |
earnings | array of objects | Aggregated earnings for shift |
type | string | Type 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": []
}