Booking Cancel

BookingCancel operation allows the cancellation of a booking made with Stuba. The operation will calculate any applicable cancellation charges and confirm the chargeable amount that will be invoiced. Cancellation of a booking will cancel all rooms confirmed under the Stuba Booking ID. In the event that only a partial cancellation is required, this request must be actioned on the Stuba.com website using ‘Manage Bookings’

BookingCancel Request Syntax

Request Header

Content-Type:       “text/xml; charset=utf-8”
Content-Length:     [Length of the content]
Host:               [Web service hostname]
Accept-Encoding     “gzip”

Name Type Description

<Authority>

Complex

Authentication information, as
described in the ‘Getting Started’ section

<Org>

String

The organisation short code identifying the agent responsible for the request (Agency ID)

<User>

String

The user’s logon, unique within the given  organisation (User Name)

<Password>

String

The given user’s password

<Currency>

String

Choose the currency used to return selling prices; accepts an ISO-4217 / SWIFT three character currency code (e.g. USD, GBP, EUR).

Your account has a configured billing currency. Only the configured currency can be specified here.

<Version>

String

The current interface version is 1.28

<BookingId>

Integer

Numeric Id for the booking to cancel

<CommitLevel>

Enum

Two-valued text enumeration:

prepare – return details of the selected booking and reconfirms the cancellation policy, but does not cancel the booking.

confirm – performs the booking cancellation

Response Body Schema

Name Type Description

<CommitLevel>

Enum

Indicates the commit level with which the cancellation was performed

<Booking>

Complex

A booking structure, containing details of the booking to cancel

<Id>

Integer

Numeric Id for the booking and your BookingId for post booking operations

<CreationDate>

Date

Date of booking creation

<AgentReference>

String

A custom reference provided for booking with <Id> specified

<HotelBooking>

(1 or more)

Complex

A booking structure for each item associated with the booking

<Id>

Integer

Numeric Id for the item

<HotelId>

Integer

Numeric Id for the hotel

<CreationDate>

Date

Date of booking creation

<ArrivalDate>

Date

The date of the first night of the stay

<Nights>

Integer

The duration of the stay as a number of nights.

<TotalSellingPrice>

Complex

The total price for HotelBooking with <Id> specified

<Status>

Enum

Current status of the HotelBooking with <Id> specified

<Room>

(1 or More)

Complex

Structure containing room requirement and occupant details

<RoomType>

Complex

A text enumeration (as a <code>, <text> pair) identifying a specific room type. These codes are obtained dynamically from the hotel and are obtained individually per hotel.

<MealType>

Enum

A text enumeration identifying the meal type for the room

<Guests>

Array

An array of either <Adult> or <Child> elements representing the guests who will stay in this room

<Messages>

Complex

Special notes provided by the hotel are provided here

<Status>

Enum

Current status of the HotelBooking with <Id> specified

<CanxFees>

Complex

A structure containing each of the cancellation <Fee> that apply to the rate booked

<Charge>

Complex

A structure containing details of any cancellation charges that have been applied at the time of booking cancellation (Only included if CommitLevel ‘confirm’)

XML Response Samples

Samples

Copy
<BookingCancel> <Authority> <Org>{{Org}}</Org> <User>{{User}}</User> <Password>{{Password}}</Password> <Currency>{{DefaultCurrency}}</Currency> <Version>1.28</Version> </Authority> <BookingId>{{BookingId}}</BookingId> <CommitLevel>confirm</CommitLevel> </BookingCancel>
<?xml version="1.0" encoding="utf-8"?> <BookingCancelResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Currency>USD</Currency> <Warning /> <TestMode>true</TestMode> <CommitLevel>confirm</CommitLevel> <Booking> <Id>720167774</Id> <CreationDate>2024-09-13</CreationDate> <AgentReference>{{YourReference}}</AgentReference> <HotelBooking> <Id>8718323</Id> <HotelId>53815</HotelId> <CreationDate>2024-09-13</CreationDate> <ArrivalDate>2024-11-15</ArrivalDate> <Nights>1</Nights> <TotalSellingPrice amt="0" /> <Status>cancelled</Status> <Room> <TotalSellingPrice amt="0" /> <Guests> <Adult id="5870017" title="Mr" first="A" last="Test"> <Price amt="0" /> </Adult> </Guests> <Messages> <Message> <Type>General</Type><Text>&lt;span style='color:red;font-weight:bold'&gt;** ATTN **&lt;/span&gt; Take extra care to read notes, especially for any nationality/market exclusions which could override guest nationality selected &lt;span style='color:red;font-weight:bold'&gt;** ATTN **&lt;/span&gt;&lt;br/&gt;&lt;b&gt;No Show: &lt;/b&gt;Should the guest fail to arrive on the check in date and we have not been notified of any cancellations or amendments in advance, they will be deemed a no show. For same day cancellation or no shows, 100% cancellation charges apply.&lt;br&gt;</Text> </Message> <Message> <Type>Internal Note</Type><Text> . Check-in hour 15:00-00:00.Car park YES (With additional debit notes) 50.00 GBP Per unit/night.</Text> </Message> </Messages> <Status>cancelled</Status> <CanxFees> <Fee from="2024-11-12T00:00:00"> <Amount amt="869.1000" /> </Fee> <Fee from="2024-11-13T00:00:00"> <Amount amt="869.1000" /> </Fee> </CanxFees> <CancellationPolicyStatus>Refundable</CancellationPolicyStatus> </Room> </HotelBooking> </Booking> </BookingCancelResult>
Copy
<BookingCancel> <Authority> <Org>{{Org}}</Org> <User>{{User}}</User> <Password>{{Password}}</Password> <Currency>{{DefaultCurrency}}</Currency> <Version>1.28</Version> </Authority> <BookingId>{{BookingId}}</BookingId> <CommitLevel>confirm</CommitLevel> </BookingCancel>
<?xml version="1.0" encoding="utf-8"?> <BookingCancelResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Currency>USD</Currency> <Warning /> <TestMode>true</TestMode> <CommitLevel>confirm</CommitLevel> <Booking> <Id>720167900</Id> <CreationDate>2024-09-18</CreationDate> <AgentReference>{{YourReference}}</AgentReference> <HotelBooking> <Id>8719101</Id> <HotelId>76467</HotelId> <CreationDate>2024-09-18</CreationDate> <ArrivalDate>2024-11-15</ArrivalDate> <Nights>1</Nights> <TotalSellingPrice amt="0" /> <Status>cancelled</Status> <Room> <TotalSellingPrice amt="0" /> <Guests> <Adult id="5870427" title="Mr" first="A" last="Test"> <Price amt="0" /> </Adult> </Guests> <Messages> <Message> <Type>General</Type><Text>&lt;span style='color:red;font-weight:bold'&gt;** ATTN **&lt;/span&gt; Take extra care to read notes, especially for any nationality/market exclusions which could override guest nationality selected &lt;span style='color:red;font-weight:bold'&gt;** ATTN **&lt;/span&gt;&lt;br/&gt;&lt;b&gt;No Show: &lt;/b&gt;Should the guest fail to arrive on the check in date and we have not been notified of any cancellations or amendments in advance, they will be deemed a no show. For same day cancellation or no shows, 100% cancellation charges apply.&lt;br&gt;</Text> </Message> <Message> <Type>Internal Note</Type><Text>below 12 year old child will have to share the parent bedding Estimated total amount of taxes &amp; fees for this booking:10.00 Utd. Arab Emir. Dirham payable on arrival. Please note that the city tax for accommodations with more than 1 bedroom shall be charged per bedroom per night. Car park NO.Check-in hour 18:00-00:00.</Text> </Message> </Messages> <Status>cancelled</Status> <CanxFees> <Fee> <Amount amt="64.6000" /> </Fee> <Fee from="2024-11-13T00:00:00"> <Amount amt="64.6000" /> </Fee> </CanxFees> <CancellationPolicyStatus>NonRefundable</CancellationPolicyStatus> </Room> </HotelBooking> <Charge> <Id>8719106</Id> <CreationDate>2024-09-18</CreationDate> <TotalSellingPrice amt="64.6000" /> <AssociatedItemId>8719101</AssociatedItemId> </Charge> </Booking> </BookingCancelResult>