Create booking is a WordPress ability from LatePoint — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Create booking
WriteBook a new appointment for a customer with a chosen service, agent, date, and time.
Requires the LatePoint plugin on WordPress 6.9+ (the WordPress Abilities API is only available from 6.9 onward). All abilities also require the site's 'latepoint_abilities_api' master toggle to be enabled; write abilities additionally require the 'latepoint_abilities_api_edit' setting, and destructive abilities additionally require the 'latepoint_abilities_api_delete' setting. Each ability further requires the current user to hold the matching LatePoint capability (e.g. 'booking__view', 'customer__edit'), and some abilities also verify the user is allowed to act on that specific record.
What it does
This ability creates a new booking end-to-end: it opens an order and order item behind the scenes, then creates the booking itself with the given customer, service, date, and start time. Agent, location, and end time are optional, and you can set the initial status to approved or pending (defaulting to approved) plus internal notes. Because it may trigger LatePoint's booking confirmation notifications, using it effectively schedules a real appointment on the calendar. If creating the order, order item, or booking fails at any step, an error is returned instead.
See it in action
You ask your AI assistant
"Book customer #45 for a haircut (service #3) with agent #7 on July 10th at 2:00pm."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| customer_id | integer | Yes | Customer ID. |
| service_id | integer | Yes | Service ID. |
| agent_id | integer | No | Agent ID. |
| location_id | integer | No | Location ID. |
| start_date | string | Yes | Booking date (Y-m-d). |
| start_time | integer | Yes | Start time (minutes from midnight). |
| end_time | integer | No | End time (minutes from midnight). |
| status | string | No | Initial booking status. |
| notes | string | No | Internal booking notes. |
Returns
The newly created booking, fully serialized (id, status, IDs, date/time, duration, names, notes), after creating its backing order and order item. Returns an error if creating the order, order item, or booking record fails.
Permission
The current user must have LatePoint's 'booking__create' capability, and both the 'latepoint_abilities_api' and 'latepoint_abilities_api_edit' settings must be enabled.
More LatePoint abilities
Add off period
Create a new off/blocked period so an agent, or the whole business, stops accepting bookings for a date range.
Approve booking
Approve a pending booking in one step.
Cancel booking
Cancel a booking while keeping its record intact.
Change booking status
Set a booking to any valid status — approved, pending, cancelled, no_show, or completed.
Change invoice status
Update the payment status of an existing invoice, such as marking it paid or partially paid.
Change order status
Change the status of an order to open, cancelled, or completed.