Sites & Organisation

Zones

A Zone is a logical area within a site used to group resources for reservations and reporting (e.g. Pool Deck, Hydrotherapy, Garden Cabanas). Zones are referenced by area-booking types, practitioners, and other bookable resources.

get/shop/zones

List zones

listZones

Returns a paginated list of Zone objects configured at the given site, ordered by name. Use this to populate a zone picker when configuring rooms, practitioners, or area-booking types.

Requires the RESERVATIONS_VIEW permission on the site.

Query parameters

  • site_idstringrequired

    Filter results by the site they belong to

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

Responses

  • 200

    A paginated list of Zone objects configured at the site.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

post/shop/zones

Create a zone

createZone

Creates a new Zone at a site. Requires the SETTINGS_MANAGE permission on the target site.

Request body

  • namestringrequired

    Display name for the new zone. Plain text only. Zone names do not need to be unique within a site, but duplicates can make the UI confusing — pick distinct labels where possible.

  • site_iduuidrequired

    ID of the site to create this zone under. The caller's API key must have access to the site and the SETTINGS_MANAGE permission on it.

  • organisation_iduuidoptional

    Optional organisation to attribute the zone to. Defaults to the caller's primary organisation when omitted.

Responses

  • 201

    A single Zone.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/shop/zones/{zoneId}

Retrieve a zone

getZone

Returns a single Zone by ID. Requires the RESERVATIONS_VIEW permission on the zone's site.

Path parameters

  • zoneIdobject-idrequired

    The unique identifier of the Zone.

Responses

  • 200

    A single Zone.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

put/shop/zones/{zoneId}

Update a zone

updateZone

Updates the name of an existing Zone. Requires the SETTINGS_MANAGE permission on the zone's site.

Path parameters

  • zoneIdobject-idrequired

    The unique identifier of the Zone.

Request body

  • namestringrequired

    New display name for the zone.

Responses

  • 200

    A single Zone.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/shop/zones/{zoneId}

Delete a zone

deleteZone

Removes a Zone. Resources that referenced the zone retain the (now-invalid) ID until their next update — the booking engine treats missing zones as unrestricted. Requires the SETTINGS_MANAGE permission on the zone's site.

Path parameters

  • zoneIdobject-idrequired

    The unique identifier of the Zone.

Responses

  • 204

    Zone deleted successfully.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

post/shop/zones/{zoneId}/copy

Duplicate a Zone

copyZone

Creates a copy of an existing Zone. Any properties supplied in the request body are overlaid on the source values, letting you rename the copy or move it to a different site without rebuilding from scratch. Properties omitted from the body are inherited from the original verbatim.

Requires the SETTINGS_MANAGE permission on the target site.

Path parameters

  • zoneIdobject-idrequired

    The unique identifier of the Zone.

Request body

  • idobject-idrequired

    Unique identifier for the zone.

  • namestringrequired

    Display name for the zone, shown wherever zones are listed or filtered. Plain text only.

  • organisation_iduuidrequired

    ID of the organisation that owns this zone. Inherited from the site on create.

  • site_iduuidrequired

    ID of the site this zone belongs to.

Responses

  • 201

    A single Zone.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation