When Bottle plans the next day
GET
/rounds/planning-time
const url = 'https://example.com/rounds/planning-time';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/planning-time \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>The time, UK time, that Bottle makes the next day’s plan.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”When Bottle plans the next day
Media typeapplication/json
object
planAt
required
string
Example generated
{ "planAt": "example"}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 open to this business
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" } ]}