Skip to content

Read Assets and Equipment servicing settings

GET
/business-settings
curl --request GET \
--url https://example.com/business-settings \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>

Whether Assets and Equipment servicing are switched on, and where each stands for this business: hidden, locked behind a bigger plan, off or on.

The settings

Media typeapplication/json
object
settings
required
object
assetsEnabled
required

Whether products can be tracked one cylinder at a time. On unless the business switches it off. Nothing changes on screen until a product is tracked.

boolean
assetScanningEnabled
required

Whether drivers and yard staff can record cylinders with the phone’s camera. Set by Bottle once the business’s cylinders have been tested.

boolean
servicingEnabled
required

Whether the business keeps service dates for the equipment its customers have. Off unless switched on.

boolean
assets
required

Hidden: not available to this business. locked: needs a bigger plan. off: available, and switched off. on: in use.

string
Allowed values: hidden locked off on
servicing
required

Hidden: not available to this business. locked: needs a bigger plan. off: available, and switched off. on: in use.

string
Allowed values: hidden locked off on
trackedProducts
required
Array<object>
object
id
required
string
name
required
string

Example

{
"assets": "hidden",
"servicing": "hidden"
}

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, or the plan does not open this

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not available to this business

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Assets cannot be switched off while products are tracked

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
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string

Example

{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}