Vai alla navigazione

Create Location

Add a new business location.

Header

xi-api-keystringOpzionale
xi-workspace-idstring or nullOpzionale
The customer workspace a reseller's API key acts on.

Richiesta

This endpoint expects an object.
namestringObbligatorio
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
addressstringOpzionale
Street address.
notesstringOpzionale
Directions or other notes for customers, e.g. 'Free parking behind the building'.
operating_hoursobject or nullOpzionale

Per-location operating hours. On create, omit to have the server prefill from the most recently added active location.

customer_facing_namestringOpzionale

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOpzionale1-999Predefinito a 1

Maximum number of appointments that may overlap at this location at a single instant. Only enforced while the booking page setting concurrent_limit_enabled is on.

is_activebooleanOpzionalePredefinito a true

Risposta

Risposta riuscita
namestring
Internal name, e.g. 'Main Office' or 'Downtown Branch', shown in the dashboard and owner notifications.
_idstring
is_activebooleanSola lettura
addressstringOpzionale
Street address.
notesstringOpzionale
Directions or other notes for customers, e.g. 'Free parking behind the building'.
operating_hoursobjectOpzionale
customer_facing_namestringOpzionale

Name shown to customers; empty reuses name.

max_concurrent_appointmentsintegerOpzionale1-999Predefinito a 1

Maximum number of appointments that may overlap at this location at a single instant. Only enforced while the booking page setting concurrent_limit_enabled is on.

deactivated_at_unixinteger or nullOpzionale
Unix timestamp when this location was deactivated. None when active.
deactivation_reasonenum or nullOpzionale
Why this location was deactivated. None when active.
Valori consentiti:

Errori

422
Unprocessable Entity Error