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

Booking Link Schema

ID del esquema
booking_link
Colección
booking_links
Permisos
  • Leerbooking_link_view
  • Crearbooking_link_create
  • Modificarbooking_link_edit
  • Eliminarbooking_link_delete

Campos

Booking Link Schema

booking_links4 permisos

Schema for validating booking link entities

namestringobligatorio
1–200 caracteres
slugstringopcional
3–100 caracteresPatrónadmite null
serviceIduuidopcional
assignedUserIdsuuid[]opcional
Valor por defecto: []
technicianModestringopcional

all_required = alle Techniker müssen frei sein (1-to-many), any_one = ein verfügbarer reicht (1-of-many)

all_requiredany_one
Valor por defecto: "any_one"
assignmentModeOverridestringopcional

Only relevant when technicianMode=any_one

any_availablecustomer_choosessmart_assignnull
admite null
durationOverrideintegeropcional
5 – 480Múltiplo de 5admite null
descriptionOverridestringopcional

Per-link description, mirroring booking_service.description. Same override pattern as durationOverride/locationOverride: the booking page and the created calendar_event take this value over service.description; null (the default, and the value on every link created before this field existed) falls back to the service. Needed because the system services behind the Vorgangs-Links are tenant-wide singletons — editing one link must not rewrite the text shown by every other link on the same service.

admite null
priceOverrideintegeropcional

Per-link price in cents, mirroring booking_service.price. Falls back to service.price when null. Currency and priceDisplayMode stay on the service — they are presentation, not amount.

≥ 0admite null
availabilityWindowsobject[]obligatorio
mín. 1 elementos
modestringopcional

recurring = weekday-based, fixed = specific date or date range

recurringfixed
Valor por defecto: "recurring"
labelstringopcional
máx. 100 caracteresadmite null
weekdaysinteger[]opcional

ISO weekdays (1=Mo, 7=Su). Required for mode=recurring, empty for mode=fixed.

Valor por defecto: []
fixedDatedateopcional

Specific date (YYYY-MM-DD). Required for mode=fixed.

admite null
fixedDateEnddateopcional

Optional end date for a date range. Only for mode=fixed.

admite null
startTimestringobligatorio
Patrón
endTimestringobligatorio
Patrón
validFromdateopcional
admite null
validUntildateopcional
admite null
breakStartTimestringopcional
Patrónadmite null
breakEndTimestringopcional
Patrónadmite null
schedulingPolicyobjectopcional
minLeadTimeHoursintegerobligatorio
0 – 720Valor por defecto: 24
maxLeadTimeDaysintegerobligatorio
1 – 180Valor por defecto: 30
slotIntervalMinutesintegerobligatorio
153060
Valor por defecto: 30
slotModestringopcional

How start times are generated. grid = on the fixed day grid of slotIntervalMinutes; back_to_back = one after another (duration + buffer), restarting after existing appointments. Missing = grid. slotIntervalMinutes is kept in back_to_back mode so switching back loses nothing.

gridback_to_back
bufferBeforeMinutesintegeropcional

Minimum gap between an existing appointment of the technicians and the start of a booking made through this link. Takes precedence over booking_service.bufferBeforeMinutes; missing = the service's value, otherwise 0. Applies to appointments only, not to breaks or the edges of windows and working hours.

0 – 480
bufferAfterMinutesintegeropcional

Minimum gap between the end of a booking made through this link and the next existing appointment of the technicians. Same precedence as bufferBeforeMinutes. The UI writes both fields with the same value.

0 – 480
maxBookingsTotalintegeropcional
≥ 1admite null
maxBookingsPerCustomerintegeropcional
≥ 1admite null
linkedPartyIdstringopcional

Pre-selected company (Firma). When set, a booking made through this link stamps the created calendar_event with this partyId as linkedPartyId (takes precedence over the party derived from the customer email).

Patrónadmite null
linkedContactPartyIdstringopcional

Pre-selected contact person (Kontakt, a PERSON party — usually an employee of linkedPartyId). When set, a booking made through this link adds this person as a type=party participant on the created calendar_event.

Patrónadmite null
linkedProjectIdstringopcional

When set, a booking made through this link stamps the created calendar_event with referenceType=PROJECT / referenceId=linkedProjectId so it appears in the project Termine tab. Legacy shortcut for linkedReferenceType=PROJECT — still written by the project meeting link (project-booking.routes.ts) and honoured as a fallback; the generic pair below wins when both are set.

Patrónadmite null
linkedReferenceTypestringopcional

Vorgang ("Auftrag") the booking belongs to. A booking made through this link stamps the created calendar_event with this referenceType/referenceId pair, so the appointment shows up on the ticket/project/task/asset it was booked for. Values mirror calendar_event.referenceType.

TICKETHR_TICKETPROJECTTASKCONTACT_PERSONASSETOPPORTUNITYnull
admite null
linkedReferenceIdstringopcional

Id of the linked Vorgang. Only meaningful together with linkedReferenceType.

Patrónadmite null
eventTitleOverridestringopcional

Optional title for the created calendar_event (e.g. project context). Falls back to "service.name — customer" when null.

máx. 200 caracteresadmite null
locationOverrideobjectopcional

Per-link location, mirroring booking_service.location. Set when the appointment type differs per link — a ticket link is booked on site, by phone or remote depending on the case, while the shared system service can only carry one. The created calendar_event takes this value over service.location; null (the default, and the value on every link created before this field existed) keeps the previous behaviour of falling back to the service.

admite null
bookedEventsFixedbooleanopcional

ADR 1081: appointments booked through this link are created as FIX (isFixed). Setting it requires calendar_event_fixed_manage; only effective while the tenant switch settings.calendar.fixedEventsEnabled is on at booking time. Missing = false. On create, a missing value takes the tenant default settings.calendar.bookingLinksFixedByDefault; only deviating from that default requires the permission.

solo lectura
expiresAtdatetimeopcional
admite null
isActivebooleanopcional
Valor por defecto: true
customWelcomeMessagestringopcional
admite null
customConfirmationMessagestringopcional
admite null
brandingobjectopcional
admite null

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_links — Lista, paginada y filtrable
  • GET /api/v1/booking_links/<id> — Una entidad
  • POST /api/v1/booking_links — Crear
  • PATCH /api/v1/booking_links/<id> — Actualización parcial
  • DELETE /api/v1/booking_links/<id> — Eliminación lógica
  • GET /api/v1/booking_links/<id>/timeline — Auditoría y actividades

Búsqueda