Skip to main content
POST
Créer une fermeture exceptionnelle

Autorisations

x-api-key
string
header
requis

Clé API d’établissement ou d’organisation.

En-têtes

Idempotency-Key
string
requis

Clé unique permettant de réessayer cette création en toute sécurité ; les répétitions renvoient la réponse d’origine.

Paramètres de chemin

location_id
string
requis

Corps

application/json
starts_at
string<date-time>
requis
ends_at
string<date-time>
requis
reason
string

Human-readable reason passed to the AI clerk as context so it can explain the closing to customers.

Réponse

Fermeture exceptionnelle créée.

id
string
Exemple:

"scl_5a16c3f915a84bf0bd90729c"

object
enum<string>
Options disponibles:
special_closing
location_id
string
starts_at
string<date-time>
ends_at
string<date-time>
reason
string | null

Human-readable reason passed to the AI clerk as context so it can explain the closing to customers.

created_at
string<date-time>
updated_at
string<date-time>