Read servicing reminder settings
GET
/service-settings
const url = 'https://example.com/service-settings';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/service-settings \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Whether reminders go out, how many days before a due date (for a plan due within a month, before the 1st of the month), and whether the customer is emailed and the office told.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The settings
Media typeapplication/json
object
remindersOn
required
boolean
reminderDays
required
Array<integer>
remindCustomer
required
boolean
remindOffice
required
boolean
Example generated
{ "remindersOn": true, "reminderDays": [ 1 ], "remindCustomer": true, "remindOffice": true}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not an owner or admin, missing scope, or the plan does not open Equipment servicing
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not found, or Equipment servicing is not available to this business
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Equipment servicing is switched off, other equipment already has that detail, or the cylinder already has servicing set up
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" } ]}