The Holibob API - Booking Cancellation
This section covers how to cancel bookings using the Holibob API. Cancellation allows you to cancel all booking availabilities under a booking.
Recommended Implementation Steps
Check Cancellation Eligibility
Display Cancellation Information
Execute Cancellation
Monitor Status
Retrieving Booking Cancellation Data
Before cancelling a booking, you should retrieve certain fields from the booking to add context data to display for cancellations and also to determine if cancellation is available for the booking. This information helps you present accurate cancellation details to users and determine whether the booking can be cancelled.
For detailed information about cancellation policies and how to use the cancellation data to determine when to enable cancellation functionality, refer to the Cancellation Policies documentation.
GraphQL Query Example
Use the following query to retrieve the necessary cancellation context data:
Query
Response
Key Fields Explained
canCancel: Boolean field that indicates if the booking can be cancelled. Returnstrueif any of the booking availabilities under the booking are cancellablecancellationEffectiveRefundAmount: The total refund amount the customer will receive if the booking is cancelledavailabilityList.nodes.cancellationState: Detailed cancellation information for each availability within the booking, including:effectivePenalty: The effective penalty window that is applied to the booking.effectiveRefundState: Denotes full, partial or no refund.effectiveRefundAmount: The refund amount for this specific availability (for single Booking Availabilities, this should be the same ascancellationEffectiveRefundAmount)
bookingCancel Mutation
The bookingCancel mutation is used to cancel the entire booking. By doing so you are cancelling all the included booking availabilities with a supplier.
Input Parameters
The mutation accepts a BookingCancelInput object with the following fields:
Field | Type | Required | Description |
|---|---|---|---|
| String | ✅ Required | The booking ID to cancel |
| String | Optional | Reason for the cancellation |
Mutation
Response
Asynchronous Processing
Like the bookingCommit mutation, bookingCancel is an asynchronous operation. After calling this mutation:
Poll for Status Changes: Monitor the booking state by periodically querying the booking to check for state changes. You should expect CONFIRMED → PENDING → CANCELLED
Email Notifications: If configured, the customer will receive a cancellation email
Refunds: If Holibob is the Merchant of Record, a refund will be automatically initiated to the customer
This documentation is part of the Holibob Partner API documentation suite. For additional support, contact the development team.