Create appointment
bookafy_create_appointmentWRITE: book an appointment for a customer with a staff member and service (ids from bookafy_list_staff and bookafy_list_services). The customer is created from the given name/email/phone. Bookafy may email the booking confirmation to the customer and add the event to connected calendars, so only call it when the user clearly asked to book. Times are converted to UTC. POST /api/v3/appointments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End, ISO 8601 date-time with timezone (after start, at most 24 h later). | |
| price | No | Price of the appointment (default: the service's price). | |
| start | Yes | Start, ISO 8601 date-time with timezone, e.g. 2026-11-02T09:30:00-05:00. | |
| title | No | Title shown for the appointment (default: Bookafy's own). | |
| service_id | Yes | Service id assigned to that staff user (from bookafy_list_services). | |
| description | No | Notes shown with the appointment. | |
| custom_fields | No | Custom booking-form answers as {field_name: value}, with underscores for spaces, e.g. {"What_is_your_DOB": "1990"}. | |
| customer_name | Yes | Customer's full name. | |
| staff_user_id | Yes | Staff user id (from bookafy_list_staff). | |
| customer_email | No | Customer's email (the confirmation goes there). | |
| customer_phone | No | Customer's phone number. |