Overview
The Create Booking action creates a new booking programmatically. Use this to automate booking creation from external systems or workflows.
Configuration
Customer ID (Required)
ID of the customer for the booking. Supports variables.
Availability ID (Required)
ID of the availability slot to book. Supports variables.
Fare (Required)
Pricing structure with quantities per category. Array format:
[
{
"category_id": 1,
"quantity": 2,
"price": 100.00
}
]
Optional Fields
notify_admins- Notify administrators (default: true)notify_customer- Notify customer (default: true)answers- Answers to booking questionsextras- Extra items/servicesresource_id- Specific resource to assignprivate_notes- Private notescomments- Public commentstip- Tip amountvoucher- Voucher/discount amount
Output
Returns the created booking object in the workflow context.
Examples
1. Simple Booking
Customer ID: {customer.id}
Availability ID: {availability.id}
Fare:
- category_id: 1
quantity: 2
price: 100.002. Booking with Extras
Customer ID: {customer.id}
Availability ID: {availability.id}
Fare: [...]
Extras:
- extra_id: 5
quantity: 1Best Practices
Verify availability - Ensure slot is available
Validate customer - Check customer exists
Calculate pricing - Ensure fare structure is correct
Handle errors - Set up error notifications
Test thoroughly - Test booking creation in test mode
