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

Write
LatePoint Booking & Events latepoint/create-booking

Book 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.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.