Skip to main content

Cancel Booking Action

The Cancel Booking action cancels a booking with optional refund processing and notification settings. Use this to automate booking cancellations based on business rules or external events.

Jerome Bajou avatar
Written by Jerome Bajou
Updated over 3 weeks ago

Overview

The Cancel Booking action cancels a booking with optional refund processing and notification settings. Use this to automate booking cancellations based on business rules or external events.


Configuration

Booking ID (Required)

The ID of the booking to cancel. Supports variables.

Refund Mode (Optional)

How to handle refunds for the cancelled booking:

  • NONE - No refund (default)

  • PARTIAL - Partial refund (requires refund amount)

  • FULL - Full refund of all paid amounts

Refund Amount (Required if Refund Mode is PARTIAL)

The amount to refund. Can be specified as:

  • Flat amount (e.g., 100.00)

  • Percentage (e.g., 50 for 50%)

Refund Amount Type (Required if Refund Mode is PARTIAL)

  • flat - Fixed amount

  • percentage - Percentage of total paid

Cancellation Reason (Optional)

Reason for cancellation. Supports variables.

Cancellation Reason Details (Optional)

Detailed explanation for cancellation. Supports variables.

Notify Admins (Optional)

Whether to notify administrators (default: true). Supports variables.

Notify Customer (Optional)

Whether to notify the customer (default: true). Supports variables.


Output

Returns the cancelled booking object in the workflow context with updated cancellation information.

Accessing Booking Data

After this action, you can access:

{booking.id} 
{booking.cancelled_at}
{booking.cancelled_reason}
{booking.cancelled_reason_details}

Examples

1. Simple Cancellation (No Refund)

Booking ID: {booking.id} 
Refund Mode: NONE
Notify Customer: true

2. Cancellation with Full Refund

Booking ID: {booking.id} 
Refund Mode: FULL
Notify Customer: true
Notify Admins: true

3. Partial Refund (50%)

Booking ID: {booking.id} 
Refund Mode: PARTIAL
Refund Amount: 50
Refund Amount Type: percentage
Reason: Customer requested partial refund

4. Partial Refund (Fixed Amount)

Booking ID: {booking.id} 
Refund Mode: PARTIAL
Refund Amount: 250.00
Refund Amount Type: flat
Reason: Service disruption
Reason Details: Weather conditions prevented service delivery

Refund Processing

Full Refund

  • Refunds all paid amounts across all booking transactions

  • Automatically distributes refund across transactions

Partial Refund

  • Refund amount cannot exceed total amount charged

  • Automatically distributes refund across booking transactions

  • Supports both flat amounts and percentages


Best Practices

  1. Verify booking exists - Check booking ID before cancelling

  2. Check booking status - Ensure booking is not already cancelled

  3. Handle refunds carefully - Verify refund amounts are correct

  4. Notify appropriately - Set notification preferences based on context

  5. Log cancellation reasons - Always provide reason for tracking

  6. Test refund logic - Test partial refund calculations thoroughly


Related Documentation

Did this answer your question?