API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · booking_services

Booking Service Schema

ID du schéma
booking_service
Collection
booking_services
Autorisations
  • Lirebooking_service_view
  • Créerbooking_service_create
  • Modifierbooking_service_edit
  • Supprimerbooking_service_delete

Champs

Booking Service Schema

booking_services4 autorisations

Schema for validating booking service entities

namestringobligatoire

Service name

1–200 caractères
descriptionstringfacultatif

Optional service description (unbounded free text)

nullable
systemKeystringfacultatif

Marker for auto-provisioned, internal-only system services (e.g. "project_meeting"). Used to look up / lazily create a tenant-wide shared service. Null for normal user-created services.

max. 64 caractèresnullable
durationMinutesintegerobligatoire

Appointment duration in minutes, 5-minute grid up to 8 h (ADR 1026; before: only 15/30/45/60/90/120)

5 – 480Multiple de 5
bufferBeforeMinutesintegerfacultatif

Buffer time before the appointment in minutes

0 – 480Par défaut : 0
bufferAfterMinutesintegerfacultatif

Buffer time after the appointment in minutes

0 – 480Par défaut : 0
priceintegerfacultatif

Price in cents

≥ 0nullable
currencystringfacultatif

Currency code (ISO 4217)

max. 3 caractèresPar défaut : "EUR"
priceDisplayModestringfacultatif

How the price is displayed to the customer

showhideon_request
Par défaut : "show"
locationobjectfacultatif

Where the appointment takes place

nullable
typestringobligatoire

Location type

on_siteremotephonecustom
valuestringfacultatif

Location value (address, URL, phone number, etc.)

max. 500 caractèresnullable
assignedUserIdsuuid[]obligatoire

User IDs that can be booked for this service

min. 1 éléments
assignmentModestringobligatoire

How a user is assigned to a booking

any_availablecustomer_choosessmart_assign
maxConcurrentBookingsintegerfacultatif

Maximum concurrent bookings per time slot

1 – 10Par défaut : 1
autoConfirmbooleanfacultatif

Automatically confirm bookings without manual approval

Par défaut : true
requiresApprovalbooleanfacultatif

Whether bookings require manual approval

Par défaut : false
isActivebooleanfacultatif

Whether the service is active and bookable

Par défaut : true
colorstringfacultatif

Hex color for calendar display (e.g. #FF5733)

max. 7 caractèresnullable
categoryIduuidfacultatif

Category ID for grouping services

nullable
imageFileIduuidfacultatif

File ID for the service image

nullable
onlineMeetingProviderstringfacultatif

Online meeting provider for remote appointments

teamszoomgoogle_meet
nullable
reminderConfigobjectfacultatif

Reminder configuration

enabledbooleanobligatoire

Whether reminders are enabled

emailBeforeinteger[]facultatif

Minutes before appointment to send email reminders

Par défaut : []
cancellationPolicyobjectfacultatif

Cancellation and rescheduling policy

allowCancellationbooleanobligatoire

Whether customers can cancel bookings

minHoursBeforeintegerfacultatif

Minimum hours before appointment to allow cancellation

0 – 720Par défaut : 24
allowReschedulebooleanfacultatif

Whether customers can reschedule bookings

Par défaut : true
rescheduleMinHoursBeforeintegerfacultatif

Minimum hours before appointment to allow rescheduling

0 – 720Par défaut : 24
isGroupBookingbooleanfacultatif

Whether this service supports group bookings (multiple participants per slot)

Par défaut : false
maxParticipantsintegerfacultatif

Maximum participants per slot (only relevant when isGroupBooking=true)

2 – 100nullable
minParticipantsintegerfacultatif

Minimum participants for the booking to take place

1 – 100nullable
registrationDeadlineHoursintegerfacultatif

Hours before start after which registration closes

0 – 720nullable
followUpConfigobjectfacultatif

Follow-up email configuration after appointment

nullable
enabledbooleanfacultatif
Par défaut : false
delayHoursintegerfacultatif

Hours after appointment end to send follow-up

1 – 168Par défaut : 24
includeNpsbooleanfacultatif

Include NPS rating question in follow-up email

Par défaut : false
customMessagestringfacultatif

Custom follow-up message (HTML)

nullable
customFieldsobject[]facultatif

Custom intake form fields

Par défaut : []
idstringobligatoire

Unique field identifier

1–50 caractères
typestringobligatoire

Field input type

texttextareadropdowncheckboxnumberemailphone
labelobjectobligatoire

i18n labels (e.g. { de: "Name", en: "Name" })

placeholderobjectfacultatif

i18n placeholders

nullable
requiredbooleanobligatoire

Whether the field is required

optionsobject[]facultatif

Dropdown options

nullable
valuestringfacultatif
labelobjectfacultatif

i18n labels for option

validationobjectfacultatif

Validation rules

nullable
minLengthintegerfacultatif
maxLengthintegerfacultatif
minnumberfacultatif
maxnumberfacultatif
patternstringfacultatif

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/booking_services — Liste, paginée et filtrable
  • GET /api/v1/booking_services/<id> — Une entité
  • POST /api/v1/booking_services — Créer
  • PATCH /api/v1/booking_services/<id> — Mise à jour partielle
  • DELETE /api/v1/booking_services/<id> — Suppression logique
  • GET /api/v1/booking_services/<id>/timeline — Audit et activités

Recherche