Send booking confirmation code
request-booking-codeSend the user a 6-digit confirmation code, which book-appointment then requires.
WHEN TO USE: the user has chosen a venue, a service and a slot, and has given you their email address or phone number. Call this before book-appointment — a booking without a code is rejected.
YOU DO NOT RECEIVE THE CODE. It goes to the user's own inbox or phone; ask them to read it back to you. That is the point: it proves the contact belongs to the person booking, so a business does not get appointments from numbers nobody answers. The code lasts 5 minutes and covers one booking. Only a few codes may be sent to one contact — do not loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The venue slug the user is booking. | |
| No | The user's email address. Give this or phone. | ||
| phone | No | The user's phone in international format, e.g. +998901234567. Preferred when the venue will need to call them. |