Cliento API reference: Locations

Base URL: https://api.cliento.com

A location is one place of business, such as one salon or one branch of a car wash. An organisation with one salon has one location. A chain has one per salon.

Everything else in the API belongs to a location: customers, services, bookings, staff, points of sale and stock.

Locations

The Locations API lists the locations your API key can use. Start here: almost every other call takes a location id in its path, as /v1/locations/{locationId}/....

A location has an id of the form loc_.... An API key belongs to one organisation. It can be limited to some of the organisation's locations.

A customer is registered at one location, and is changed or deleted through that location's path. An organisation can share its customers between its locations. GET /v1/customers then lists them for every location your key can use, each with its locationId.

An item can also be read by its id, without its location. See "Identifiers" in the introduction.

List locations

GET /v1/locations

Stability: preview

The locations this API key can be used on. Almost everything else is addressed under one of them.

Responses

StatusDescriptionBody
200OKLocationList
defaultAny failure. See the Errors section.Error

Get a location

GET /v1/locations/{locationId}

Stability: preview

Parameters

NameInTypeRequiredDescription
locationIdpathstringYes

Responses

StatusDescriptionBody
200OKLocation
defaultAny failure. See the Errors section.Error

Schemas

Error

The body of every non-2xx response.

FieldTypeRequiredDescription
codestringYesStable, machine-readable error code. Values today: invalid_request, validation_failed, entity_not_found, duplicate, merchant_required, code_already_used, gift_card_already_used, pin_not_recognised, insufficient_stock, not_allowed, request_in_progress, idempotency_key_reused, unauthenticated, forbidden, account_blocked, rate_limited, route_not_found, method_not_allowed, internal_error.
detailsobject of any valueNoExtra detail. For validation_failed, fieldErrors maps each rejected field to the reason.
messagestringYesHuman-readable explanation. Not stable; do not parse it.

Location

One place of business, such as one salon or one branch of a car wash. Everything else in the API belongs to a location.

FieldTypeRequiredDescription
currencystringYesISO 4217 currency code. Example: SEK.
idstringYesLocation id. Example: loc_4fK9xQ2mLr8TzB1vNc7HdW.
namestringYes
timeZonestringYesIANA time zone. Example: Europe/Stockholm.

LocationList

FieldTypeRequiredDescription
dataarray of LocationYes