Skip to main content

Create Booking Action

The Create Booking action creates a new booking programmatically. Use this to automate booking creation from external systems or workflows.

Jerome Bajou avatar
Written by Jerome Bajou
Updated this week

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 questions

  • extras - Extra items/services

  • resource_id - Specific resource to assign

  • private_notes - Private notes

  • comments - Public comments

  • tip - Tip amount

  • voucher - 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.00

2. Booking with Extras

Customer ID: {customer.id} 
Availability ID: {availability.id}
Fare: [...]
Extras:
- extra_id: 5
quantity: 1

Best Practices

  1. Verify availability - Ensure slot is available

  2. Validate customer - Check customer exists

  3. Calculate pricing - Ensure fare structure is correct

  4. Handle errors - Set up error notifications

  5. Test thoroughly - Test booking creation in test mode


Related Documentation

Did this answer your question?