Gérez les rendez-vous avec les clients. Créez des consultations, des essayages et des rendez-vous de retrait.
/api/vendor/appointmentsRetourne les rendez-vous, filtrés optionnellement par période.
Scope requis : appointments:read
curl -s "https://brutlers.com/api/vendor/appointments?from=2026-04-01&to=2026-04-30" \
-H "X-Api-Key: brut_your_api_key_here"/api/vendor/appointmentsCrée un nouveau rendez-vous pour un client existant.
Scope requis : appointments:write
| Field | Type | Description | |
|---|---|---|---|
| customerId | string | Champ obligatoire | ID du client (CUID) |
| type | string | Champ obligatoire | Type de rendez-vous |
| date | string | Champ obligatoire | Date et heure (ISO 8601) |
| duration | number | Optionnel | Durée en minutes (15–480, par défaut : 60) |
| notes | string | Optionnel | Notes sur le rendez-vous |
| orderId | string | Optionnel | Commande associée (optionnel) |
Type de rendez-vous
curl -X POST https://brutlers.com/api/vendor/appointments \
-H "X-Api-Key: brut_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"customerId": "clx1234567890abcdef",
"type": "CONSULTATION",
"date": "2026-04-15T10:00:00Z",
"duration": 60,
"notes": "Erstberatung Brautkleid"
}'Les rendez-vous passent par les statuts suivants :
PROPOSED → CONFIRMED, PROPOSED → CANCELLED, CONFIRMED → COMPLETED, CONFIRMED → CANCELLED
/api/vendor/appointments/:idMet à jour un rendez-vous. Les transitions de statut sont validées.
Scope requis : appointments:write
/api/vendor/appointments/:idSupprime un rendez-vous. Possible uniquement avec le statut PROPOSED ou CANCELLED.
Scope requis : appointments:write