Retrieve a list of Time Sheets
Changed onRetrieves a paginated list of Time Sheets based on the applied filters and pagination.
Request
- Base URLhttps://api.workiz.com/crm/api
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Number of records to return per page.
The page index.
Beta: This property is subject to change.
The field to sort results by. Must be combined with order.
Beta: This property is subject to change.
The sort direction. Must be combined with field. Defaults to DESC.
Filter by tech ID (prefix USR-).
Filter by job ID (prefix JOB-).
Filter by start date range in the format YYYY-MM-DD_YYYY-MM-DD.
When true, only returns shifts associated with a job. Ignored if jobId is provided.
Headers
Bearer Token
Response
A paginated list of Time Sheets.
Example response
{
"pageSize": 10,
"page": 1,
"totalResults": 50,
"hasMore": true,
"data": [
{
"id": "TS-de9750285414508f",
"techId": "USR-81ce48127c24fd23",
"techName": "John Doe",
"startDate": "2024-01-24 08:00:00",
"endDate": "2024-01-24 16:00:00",
"notes": "This is a note",
"jobId": "JOB-BA5r7o4bqzR9MONa",
"laborCost": 34.75,
"shiftLength": "08:00"
}
]
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
added the new optional
queryrequest parameterfield - info
added the new optional
queryrequest parameterorder
- info