MEC Webhooks
What are Webhooks?
Section titled “What are Webhooks?”MEC webhooks: Webhooks allow your Modern Events Calendar (MEC) plugin to automatically send booking information to external services or applications when specific booking events occur. Think of webhooks as automatic notifications that trigger actions in other systems without manual intervention.

How Do Webhooks Work?
Section titled “How Do Webhooks Work?”When a booking event happens in MEC (like a new booking, cancellation, or confirmation), webhooks automatically send all the relevant booking data to a URL you specify. This allows you to:
-
Integrate with third-party services (like CRM systems, email marketing tools, or project management apps)
-
Automate workflows in other applications
-
Sync booking data across different platforms
-
Receive real-time updates about booking status changes
When Are Webhooks Triggered?
Section titled “When Are Webhooks Triggered?”You can set up webhooks to be triggered by any of the following booking events:
1. Booking Added
Section titled “1. Booking Added”Triggered when a new booking is created, regardless of payment status.
2. Booking Confirmed
Section titled “2. Booking Confirmed”Triggered when a booking is confirmed (typically after successful payment).
3. Booking Verified
Section titled “3. Booking Verified”Triggered when a booking is verified, for example when the customer verifies it or an administrator verifies it manually.
4. Booking Rejected
Section titled “4. Booking Rejected”Triggered when a booking is rejected or declined.
5. Booking Canceled
Section titled “5. Booking Canceled”Triggered when a booking is canceled by the customer or administrator.
6. Booking Refunded
Section titled “6. Booking Refunded”Triggered when a booking payment is refunded automatically while the booking is canceled (Stripe auto refund, or Square auto refund).
What Information is Sent?
Section titled “What Information is Sent?”When a webhook is triggered, it sends comprehensive booking information including:
-
Booking Details: Booking ID, transaction ID, order time
-
Event Information: Event ID and title
-
Date & Time: Event start/end dates, and other related dates
-
Attendee Information: Name, email, ticket type, and custom registration fields for each attendee
-
Payment Details: Total price, amount paid, payment gateway, coupon codes (if used)
-
Booking Status: Confirmation and verification status
-
Custom Fields: Any custom booking or registration fields you’ve configured
How to Use Webhooks
Section titled “How to Use Webhooks”-
Enable the Webhooks Module: Make sure the Webhooks feature is enabled in your MEC settings.
-
Create a Webhook:
- After enabling the module and saving the settings, reload the page and open the new Webhooks menu in the Dashboard
- Create a new webhook and give it a descriptive name
-
Configure Your Webhook:
- Select a Hook: Choose which booking event should trigger this webhook
- Set the URL: Enter the webhook URL where you want to receive the data
- Choose Request Method: Select either GET or POST (most services use POST)
-
Save and Activate: Publish your webhook to activate it
Requirements
Section titled “Requirements”-
Modern Events Calendar PRO version (Webhooks are a PRO feature)
-
The Webhooks module must be enabled in MEC Settings > Booking > Advanced

- A valid URL endpoint that can receive HTTP requests
Use Cases
Section titled “Use Cases”-
CRM Integration: Automatically add new customers to your CRM system when they make a booking
-
Email Marketing: Add attendees to your email marketing lists automatically
-
Analytics: Send booking data to analytics platforms for reporting
-
Inventory Management: Update inventory in external systems when bookings are made
-
Notifications: Send custom notifications to team members or other systems
-
Data Synchronization: Keep booking information synchronized across multiple platforms
Important Notes
Section titled “Important Notes”-
Webhooks send data as form data (application/x-www-form-urlencoded or multipart/form-data)
-
Multiple webhooks can be created for the same event type
-
Webhooks are sent as soon as the booking event fires, within the same request, so a slow receiving URL can delay the booking process
-
Make sure your receiving URL is accessible and can handle the incoming requests
-
The receiving application should respond quickly to avoid timeouts