Delivery areas to offer drivers
GET
/rounds/learned/area-suggestions
const url = 'https://example.com/rounds/learned/area-suggestions';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/rounds/learned/area-suggestions \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Postcode districts and areas drivers really deliver to that their delivery areas leave out, with stop counts from the last 8 weeks. Nothing changes until the owner adds one.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The suggestions, busiest first
Media typeapplication/json
object
items
required
Array<object>
object
driverUserId
required
string
driverName
required
string
term
required
string
kind
required
string
stops
required
integer
districts
required
Array<string>
Example
{ "items": [ { "kind": "district" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not the owner in the office app, or on a plan without rounds
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not found
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The words can’t be kept, with the reason
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" } ]}