Booking Create
The BookingCreate operation is a mandatory operation that accepts a “Result Id” from an AvailabilitySearch as the “Quote Id”, to valuate this rate and subsequently confirm the booking. It is necessary for this operation to be carried out 3 times during the booking flow twice with CommitLevel Prepare and once with CommitLevel Confirm. For further details of the workflow, please check the ‘Getting Started’ section of our documentation.
BookingCreate with CommitLevel Prepare
- Verifies the details of the booking and confirms up to date availability, price and full cancellation policy
- Obtains any rate-specific notes relevant to the stay, which should be presented to the end-user prior to booking confirmation (E.g. the swimming pool is closed for maintenance, or a resort fee is applicable for this rate)
- The timeout for this operation is 30 seconds
BookingCreate with CommitLevel Confirm
- Finalises the booking for the Quote Id included in your request
- The timeout for this operation is 120 seconds
BookingCreate Request Syntax
Request Headers
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 |
|
<Org> |
String |
The organisation short code identifying the agent responsible for the request (Agency ID) |
|
<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). |
|
<Version> |
String |
The current interface version is 1.28. |
|
<AgentReference> |
String |
A custom reference that will be added to the booking and is exposed in booking elements. |
|
<QuoteId> |
String |
The search result Id returned from AvailabilitySearch that corresponds to the rate to be booked. |
|
<HotelStayDetails> |
Complex |
Structured information about the requested hotel stay |
|
<Room> |
Complex |
Structure containing room requirement and occupant details. |
|
<Guests> |
Array |
An array of either <Adult> or <Child> elements representing the guests who will stay in this room. |
|
<CommitLevel> |
Enum |
Two-valued text enumeration: prepare – perform a dry-run booking, verifying all details such as prices and cancellation fees, as much as possible and obtaining hotel alert information, etc. confirm – go ahead and create the booking. |
Response Body Schema
| Name | Type | Description |
|---|---|---|
|
<Currency> |
String |
The currency used to return selling prices. Your account has a configured billing currency |
|
<Warning> |
String |
Details of any non-fatal issues with the request |
|
<CommitLevel> |
Enum |
Indicates the commit level with which the booking creation was performed |
|
<Booking> |
Complex |
A booking structure containing details of the booking, hotel, room/s, price & cancellation policy. For prepare operations, this will not contain the Stuba booking reference number BookingID, but all other fields will be filled in as appropriate – including the hotel’s description of the room type and meal type to be booked. For confirm operations, this will be complete with Stuba’s booking reference number the BookingID. |
|
<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 |
|
<HotelName> |
String |
The name of 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 If not returned the MealType is ‘room only’ |
|
<Guests> |
Array |
An array of either <Adult> or <Child> elements representing the guests who will stay in this room |
|
<Messages> (zero or more) |
Complex |
Special notes provided by the hotel are provided here. These must be displayed to the guests. |
|
<CanxFees> |
Complex |
A structure containing full details of the cancellation fees, including their start date where applicable and amount. |
|
<Cancellation PolicyStatus> |
String |
Three-value text enumeration for the indicative cancellation policy status of the room: Refundable – Room does not incur a cancellation charge at the time of booking. NonRefundable – Room is fully non- refundable Unknown – The cancellation condition status of the room is unknown at this stage. Please refer to BookingCreate – ‘prepare’ for the complete cancellation policy. |
|
<QuoteRefreshStatus> |
String |
Three-value text enumeration for the availability status of the quote. Not present if CommitLevel is confirm ok – There have been no changes in rate or availability and you can proceed to the next step. pricechanged – The price is different from the one returned earlier in the booking process. Only proceed to the next step if the new price is acceptable to you. unavailable – the room is no longer available and you should check to see if an alternative Quote Id is suitable. |
|
<HotelDetails> |
Complex |
Contains extra information about the hotel room booked / to be booked. |
•••••••
•••••••
••••••• USD
en
1.28
52612
2024-02-201
GB
allocat