API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · booking_services

Booking Service Schema

ID del esquema
booking_service
Colección
booking_services
Permisos
  • Leerbooking_service_view
  • Crearbooking_service_create
  • Modificarbooking_service_edit
  • Eliminarbooking_service_delete

Campos

Booking Service Schema

booking_services4 permisos

Schema for validating booking service entities

namestringobligatorio

Service name

1–200 caracteres
descriptionstringopcional

Optional service description (unbounded free text)

admite null
systemKeystringopcional

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.

máx. 64 caracteresadmite null
durationMinutesintegerobligatorio

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

5 – 480Múltiplo de 5
bufferBeforeMinutesintegeropcional

Buffer time before the appointment in minutes

0 – 480Valor por defecto: 0
bufferAfterMinutesintegeropcional

Buffer time after the appointment in minutes

0 – 480Valor por defecto: 0
priceintegeropcional

Price in cents

≥ 0admite null
currencystringopcional

Currency code (ISO 4217)

máx. 3 caracteresValor por defecto: "EUR"
priceDisplayModestringopcional

How the price is displayed to the customer

showhideon_request
Valor por defecto: "show"
locationobjectopcional

Where the appointment takes place

admite null
typestringobligatorio

Location type

on_siteremotephonecustom
valuestringopcional

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

máx. 500 caracteresadmite null
assignedUserIdsuuid[]obligatorio

User IDs that can be booked for this service

mín. 1 elementos
assignmentModestringobligatorio

How a user is assigned to a booking

any_availablecustomer_choosessmart_assign
maxConcurrentBookingsintegeropcional

Maximum concurrent bookings per time slot

1 – 10Valor por defecto: 1
autoConfirmbooleanopcional

Automatically confirm bookings without manual approval

Valor por defecto: true
requiresApprovalbooleanopcional

Whether bookings require manual approval

Valor por defecto: false
isActivebooleanopcional

Whether the service is active and bookable

Valor por defecto: true
colorstringopcional

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

máx. 7 caracteresadmite null
categoryIduuidopcional

Category ID for grouping services

admite null
imageFileIduuidopcional

File ID for the service image

admite null
onlineMeetingProviderstringopcional

Online meeting provider for remote appointments

teamszoomgoogle_meet
admite null
reminderConfigobjectopcional

Reminder configuration

enabledbooleanobligatorio

Whether reminders are enabled

emailBeforeinteger[]opcional

Minutes before appointment to send email reminders

Valor por defecto: []
cancellationPolicyobjectopcional

Cancellation and rescheduling policy

allowCancellationbooleanobligatorio

Whether customers can cancel bookings

minHoursBeforeintegeropcional

Minimum hours before appointment to allow cancellation

0 – 720Valor por defecto: 24
allowReschedulebooleanopcional

Whether customers can reschedule bookings

Valor por defecto: true
rescheduleMinHoursBeforeintegeropcional

Minimum hours before appointment to allow rescheduling

0 – 720Valor por defecto: 24
isGroupBookingbooleanopcional

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

Valor por defecto: false
maxParticipantsintegeropcional

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

2 – 100admite null
minParticipantsintegeropcional

Minimum participants for the booking to take place

1 – 100admite null
registrationDeadlineHoursintegeropcional

Hours before start after which registration closes

0 – 720admite null
followUpConfigobjectopcional

Follow-up email configuration after appointment

admite null
enabledbooleanopcional
Valor por defecto: false
delayHoursintegeropcional

Hours after appointment end to send follow-up

1 – 168Valor por defecto: 24
includeNpsbooleanopcional

Include NPS rating question in follow-up email

Valor por defecto: false
customMessagestringopcional

Custom follow-up message (HTML)

admite null
customFieldsobject[]opcional

Custom intake form fields

Valor por defecto: []
idstringobligatorio

Unique field identifier

1–50 caracteres
typestringobligatorio

Field input type

texttextareadropdowncheckboxnumberemailphone
labelobjectobligatorio

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

placeholderobjectopcional

i18n placeholders

admite null
requiredbooleanobligatorio

Whether the field is required

optionsobject[]opcional

Dropdown options

admite null
valuestringopcional
labelobjectopcional

i18n labels for option

validationobjectopcional

Validation rules

admite null
minLengthintegeropcional
maxLengthintegeropcional
minnumberopcional
maxnumberopcional
patternstringopcional

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/booking_services — Lista, paginada y filtrable
  • GET /api/v1/booking_services/<id> — Una entidad
  • POST /api/v1/booking_services — Crear
  • PATCH /api/v1/booking_services/<id> — Actualización parcial
  • DELETE /api/v1/booking_services/<id> — Eliminación lógica
  • GET /api/v1/booking_services/<id>/timeline — Auditoría y actividades

Búsqueda