A chair, room, table or seat is a service point (service_point). A booking type (reservation_definition) is tied to service points by naming them. How many bookings fit in one time slot is the booking type's spots.
Video tutorials for this topic
Ask first
- What they are (chair, room, table…) and how many, with names if they have them.
- Which booking type they belong to, and which location.
Steps
1. Reservations: the service points
For each one, call POST crm/reservations/service-point/create with:
name: a slug, e.g.chair-1displayName: e.g. "Chair 1"kind: e.g.chaircapacity: 1bookable: truebusinessLocationId: the location, if known
Hands on: the service points' names.
2. Reservations: tie them to the booking type
Update the booking type with update_record_partial:
type: "service_point"servicePointParent: the service points' names, e.g.["chair-1", "chair-2"]servicePointKind: the kind, e.g.chairspots: the number of service points, so no more bookings fit in one slot than there are chairs
Keep its services, hours and everything else as they are.
Check: read the booking type back. Its type, servicePointParent and spots are set.
3. Open it
Open /reservations?openDefinition=<sk>. The service points are listed under /reservations?tab=service-points.
Say plainly
A booking is not given a particular chair on its own: the limit is the number of bookings per slot (spots). Don't say a booking "goes to chair 2" unless someone picked it.
