List Shifts
The shifts endpoint allows you to query for ongoing and completed work performed by an end user. It includes details about shift dates, timestamps, the type of work, and associated earnings. Shifts are returned in reverse chronological order by end_date. This is a paginated endpoint; see how Pinwheel implements pagination <a href='https://docs.pinwheelapi.com/docs/pagination-1' target='_blank'>here</a>.
Request
- Base URLhttps://api.getpinwheel.com/v1
- AuthAPI key in header X-API-SECRET
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
UUID of the payroll account.
Query parameters
Return shifts where the start_date field is on or after this date. ISO 8601 format.
Return shifts where the start_date field is on or before this date. ISO 8601 format.
Return shifts where the end_date field is on or after this date. ISO 8601 format.
Return shifts where the end_date field is on or before this date. ISO 8601 format.
The maximum number of results to return.
Cursor for the page you want to retrieve.
Headers
Version identifier specifying how the Pinwheel API should behave. See the Change Management page for more information.
Response
OK
Changes
No recorded changes to this operation across all 14 revisions of this API.