Shifts
Get all shifts
Changed onList courier shifts with optional filtering by time range and store location. Filter by start_time, end_time, store_location_id, or external_store_location_id.
get/v1/shifts
Request
- Base URLhttps://api.sandbox.usenash.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
startTimestring date-time required
The start time of the shifts to list.
Example:2025-05-01T00:00:00Z
endTimestring date-time required
The end time of the shifts to list.
Example:2025-06-01T00:00:00Z
storeLocationIdstring nullable
The store location ID to list shifts for.
externalStoreLocationIdstring nullable
The external store location ID to list shifts for.
Response
OK
Example response
{
"optimizationParams": {
"serviceTimeRelativeEfficiency": 1,
"plannedBreaks": [
{
"end": 30,
"start": 0
}
],
"departureDelay": 15,
"shiftEndServiceTimeMinutes": 10
}
}Changes
- info
api operation id
get_shifts_v1_shifts_getremoved and replaced withshifts_v1_get_shifts_route_shifts_get - info
added the optional property
//to the response with the status
- info