Book an appointment
book-appointmentBook a slot, using the code the user received from request-booking-code.
WHEN TO USE: last step, once the user has confirmed the venue, service and exact time AND has read you their 6-digit code.
Requires the same contact the code was sent to. The booking is created as "pending": the business still confirms it, so tell the user it is requested and they will hear back — not that it is guaranteed. If the venue takes prepayment, the response carries a link the user must open to pay; the slot is not held indefinitely.
Only works for venues with is_bookable: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The user's name, as the business should see it. | |
| slug | Yes | The venue slug. | |
| No | The email the code was sent to, if that is the channel used. | ||
| notes | No | Anything the business should know, max 500 characters. | |
| phone | No | The phone the code was sent to, if that is the channel used. | |
| service_id | Yes | Service id from check-availability. | |
| start_time | Yes | Exact `start_time` value from a check-availability slot. Do not invent or round times. | |
| verification_code | Yes | The 6-digit code the user received. Ask them for it — you never see it yourself. |