Skip to main content

Get Availability Action

The Get Availability action retrieves an availability slot by ID and adds it to the workflow context.

Jerome Bajou avatar
Written by Jerome Bajou
Updated this week

Overview

The Get Availability action retrieves an availability slot by ID and adds it to the workflow context.


Configuration

Availability ID (Required)

The ID of the availability to retrieve. Supports variables.

Examples:

{availability.id} 
{booking.availability_id}

Output

Adds an availability object to the workflow context with:

  • Availability ID, dates (start/end)

  • Capacity and booked quantity

  • Bookable status

  • Product information

  • Vacancies

Accessing Availability Data

After this action, you can access:

{availability.id} 
{availability.start}
{availability.end}
{availability.capacity}
{availability.vacancies}

Use Cases

  • Check availability details before booking

  • Verify capacity for a slot

  • Get availability information for notifications

  • Process availability updates


Examples

1. Check Capacity

Workflow:

  1. Get Availability ({availability_id})

  2. Condition: If {availability.vacancies} greater than 0

  3. Action (True): Create Booking

2. Get Availability Details

Workflow:

  1. Webhook trigger

  2. Get Availability ({payload.availability_id})

  3. Send Notification (availability details)


Best Practices

  1. Verify ID exists - Check availability ID before using

  2. Check capacity - Verify vacancies before booking

  3. Handle not found - Set up error handling


Related Documentation

Did this answer your question?