Get planning settings
GET
/planning
const url = 'https://example.com/planning';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/planning \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>The working day for any driver without hours of their own, how long loading takes, and what a stop costs on top of the drive to it. These turn a list of stops into a length of day, which is how a round is judged to fit a driver’s shift.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The settings
Media typeapplication/json
object
routingPreferences
string
dayStart
required
string
dayEnd
required
string
breakMinutes
required
integer
deliveryWindowHours
required
loadMinutes
required
integer
stopMinutes
required
number
itemMinutes
required
number
trafficPercent
required
integer
peakPercent
required
integer
peakMorningFrom
required
string | null
peakMorningTo
required
string | null
peakEveningFrom
required
string | null
peakEveningTo
required
string | null
updatedAt
required
string format: date-time
Example
{ "dayStart": "07:30", "dayEnd": "07:30", "deliveryWindowHours": 1, "peakMorningFrom": "07:30", "peakMorningTo": "07:30", "peakEveningFrom": "07:30", "peakEveningTo": "07:30"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}