Skip to main content

Create Availability Action

Create availability workflow action

Jerome Bajou avatar
Written by Jerome Bajou
Updated yesterday

Overview

The Create Availability action creates a new availability slot for a product option.


Configuration

Product Option ID (Required)

ID of the product option (bookable) to create availability for.

Start Date/Time (Required)

Start date and time for the availability. Supports variables and date formats.

Examples:

2024-12-25 10:00 {booking.date} 09:00 {addDays(now(), 7)} 14:00

End Date/Time (Required)

End date and time for the availability. Must be after start time.

Capacity (Optional)

Number of available spots. Defaults to product option capacity.

Is Bookable (Optional)

Whether the availability can be booked. Default: true

Notes (Optional)

Notes about this availability slot.

Cut-off Time (Optional)

Hours before start time when booking closes.


Output

Returns the created availability object in the workflow context.


Examples

1. Create Single Slot

Product Option ID: 123 Start: 2024-12-25 10:00 End: 2024-12-25 12:00 Capacity: 20

2. Create from Booking Date

Product Option ID: {product_option.id} Start: {booking.date} 09:00 End: {booking.date} 17:00

Best Practices

  1. Validate dates - Ensure end is after start

  2. Check capacity - Set appropriate capacity

  3. Handle timezones - Be aware of timezone settings

  4. Test creation - Verify availability is created correctly


Related Documentation

  • Get Availability Action

  • Update Availability Action

Did this answer your question?