Booking links
A booking link is a public page — /book/<token> — where somebody can take one
of your free times without an account. The appointment is written into your own
calendar as an ordinary event, and the visitor gets a confirmation with the
appointment as an iCalendar file (.ics) and a link to move or cancel it.
The page is at Settings, Booking link (/settings/booking). The calendar
page's Booking link button opens the same page.
What the page offers
- Your working hours. For each weekday you give a start and an end; leave both empty to offer nothing that day. Times are the ones in your profile's time zone, shown to the visitor with the zone's name.
- Lengths. One or more lengths a visitor may choose (15, 30, 45, 60, 90 or 120 minutes). They choose a length first; the offered days and times follow that choice.
- Buffer. Time kept free on both sides of an appointment that is already in your calendar, so back-to-back bookings do not touch. A busy event closes its own time; the buffer closes a little more around it.
- Notice. The shortest time between now and a booking that is accepted.
- Days ahead. How far into the future a visitor may book.
- The calendar. Where the appointments are written. The first calendar that accepts events is used when none is chosen. Subscribed calendars are never offered.
- Description. A short text above the times. It is your words; the page itself promises nothing.
The free times are not stored. They are worked out from your calendars when the
visitor asks (Kantoor.Bookings), from every calendar you can see, including
calendars shared with you and subscribed feeds, so an event made in CalDAV, on a
phone or here closes that time at once. An all-day event closes the whole day.
Slots start on the quarter hour. The slot is checked again when the visitor confirms, inside a database transaction with a lock on the page, so two people cannot take the same time.
What the visitor does
- Chooses a length, then a day (the strip shows the free-count per day), then a time.
- Gives a name and an e-mail address, and optionally a note.
- Confirms. The page shows the appointment and whether the confirmation e-mail was sent; it does not claim it was sent when it was not.
The appointment in your calendar is titled Booking: <name> and its description carries the visitor's address, the note and the page's URL. The name and address are used only for that appointment.
The e-mails
The confirmation, the move and the cancellation each carry:
- the appointment as an iCalendar file, both as a
text/calendarpart and asinvite.ics, so the visitor's calendar can take it (or update or remove it) without Kantoor being involved further; - one link,
/book/manage/<token>, where the visitor can move the appointment to another free time or cancel it.
The message is sent from your own address, through Karta, the same path an invitation takes. A failed delivery is logged and the booking page says so; the appointment in your calendar stands either way.
Only a SHA-256 hash of the manage token is stored. A copy of the database does not give anyone the power to move or cancel an appointment. Cancelling rotates the token, so an old link stops working.
On your side
Settings, Booking link lists the appointments still to come. Cancel deletes the event from your calendar and sends the visitor the cancellation with the iCalendar file. A visitor's move or cancellation shows in the calendar like any other change.
To stop taking bookings, untick The link accepts bookings; the page answers that the link does not work, and appointments already made can still be moved or cancelled through their own links.
Limits
A booking page writes into the calendar of the person who owns it and nowhere else. It cannot read your calendar's titles or places; the visitor only ever sees which slots are free. A booking made through a link is an ordinary event: it has no guests of its own, so no separate invitation goes out besides the confirmation described above.