/wp-json/latepoint-api/v1/events and use the same authentication and response format as the rest of the API.
Requirements
- LatePoint 5.7 or newer. On older versions every Events endpoint returns
503 feature_not_available. - “Enable Events” setting. Write operations (create, update, delete, cancel, check-in and waiting list actions) return
503 feature_disabledwhen Events is turned off in LatePoint settings. Read operations keep working. - LatePoint Pro Features for ticket types, e-tickets and the waiting list (see Pro features).
Endpoints
Dates and times
Event dates and times follow one rule:- Request values and the response fields
start,end,registration_startandregistration_endare in the site timezone (the timezone configured in WordPress), formatted asYYYY-MM-DD HH:MM. Seconds are optional, and a date alone (YYYY-MM-DD) means00:00. - Fields ending in
_utc(start_utc,end_utc) are in UTC. - Every event includes a
timezonefield with the site timezone name, for exampleAmerica/Montevideo.
start and end are calculated from its dates: start is the earliest date start and end is the latest date end. They are recalculated every time a date is added, changed or removed.
The
created_after and created_before filters of List Registrations are an exception: they compare against the stored created_at value and are expressed in UTC (YYYY-MM-DD HH:MM:SS).Registrations
Registrations are created by customers through LatePoint’s booking form and checkout, not through the API. The API lets you read registrations and cancel them. Cancelling a registration works like the Cancel action in the LatePoint admin. It does not cancel or refund the order the registration belongs to. Manage the order separately with the Orders and Payments endpoints. Order items for events havevariant: "event_registration". Get Order includes the related registration in each of those items.
Pro features
Some event features come from LatePoint Pro Features and must also be enabled in LatePoint settings:
Pro fields are only included in event responses when the feature is enabled, and Pro request fields are ignored when it is not. Pro endpoints return one of these errors when the feature is unavailable:
Availability Errors
Event Object
Event dates (
id, event_id, start, end, start_utc, end_utc). Only included when getting a single event.Pro. Ticket types (
id, event_id, name, price, formatted_price, capacity, booked, available, sold_out, status, order_number). A capacity or available of null means unlimited. Only present when Ticket Types is enabled.