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.,
50for 50%)
Refund Amount Type (Required if Refund Mode is PARTIAL)
flat- Fixed amountpercentage- 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: true2. Cancellation with Full Refund
Booking ID: {booking.id}
Refund Mode: FULL
Notify Customer: true
Notify Admins: true3. Partial Refund (50%)
Booking ID: {booking.id}
Refund Mode: PARTIAL
Refund Amount: 50
Refund Amount Type: percentage
Reason: Customer requested partial refund4. 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 deliveryRefund 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
Verify booking exists - Check booking ID before cancelling
Check booking status - Ensure booking is not already cancelled
Handle refunds carefully - Verify refund amounts are correct
Notify appropriately - Set notification preferences based on context
Log cancellation reasons - Always provide reason for tracking
Test refund logic - Test partial refund calculations thoroughly
