# Booking request message format..

| Element Path                                                              | Attribute                 | Occ         | Type        | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------- | ------------------------- | ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| HotelML/Head/Process                                                      | <p><br></p>               | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | DataPath                  | 1           | Char        | Set to "/HotelML/Form/BookReservation”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                               | Function                  | 1           | Char        | Set to “TI\_BookReservationV1\_1”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | Token                     | 1           | Char        | Unique ID for the transaction generated by the system sending the transaction.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| HotelML/Head/Route                                                        | <p><br></p>               | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Source                    | 1           | Char 2-3    | Identifies the organization sending the transaction. The value to use will be provided during the implementation project.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | Destination               | 1           | Char 2      | Always set to “00” (i.e. zero zero).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| HotelML/Form/BookReservation                                              | <p><br></p>               | <p><br></p> | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | VersionCompliance         | 0..1        | Enum        | Must be set to “EnhancedBook\_V1” for enhanced booking functionality.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | GuaranteeType             | 0..1        | Enum.       | <p>Indicates whether this is a guarantee, deposit or prepayment. Normally bookings are guaranteed.<br><br>Values are: “Guarantee”, “Deposit” and “PrePay”.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | GuaranteeMethod           | 0..1        | Enum.       | <p>Normally bookings are guaranteed by credit card, although other methods may be used if configured by the hotel chain.<br><br>Values are: “CreditCard”, “Account”, “Agency”, “Company”, “CashOrCheck”, “DirectBill”, “Other”.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><br></p>                                                               | InDate                    | 1           | Date        | Arrival date                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                               | OutDate                   | 1           | Date        | Departure date                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | PropertyCode              | 1           | Char 10     | Chain and property code – e.g. “UI;12345”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | RatePlanCode              | 1           | Char 10     | Rate plan code (as returned in the availability response)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | RatePlanType              | 0..1        | Enum.       | <p>Rate plan type. Not normally required. Values are:<br><br>BusinessStandard, Consortium, Convention, Corporate, Credential, FreqAuto, FreqGuest, FreqFlyer, Government, IATA,Inclusive, Negotiated, Package, Privileged, PseudoCity, SearchQualifier</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                               | RoomRate                  | 0..1        | Decimal     | The ‘bookable room rate’, as returned in the availability response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                               | CurrencyCode              | 0..1        | Char 3      | The currency of the room rate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><br></p>                                                               | RateOverride              | 0..1        | Boolean     | <p>Set to “true” to request that the room rate provided in the booking message overrides the rate defined in the supplier’s system.   As this is a request, the supplier can choose whether or not to override the rate.  The demand partner must therefore get prior agreement from the supplier to use this rate override feature. <br><br>Rate information must be provided in the request message in order to override the rates in the supplier’s system.  At a minimum, the RoomRate must be included and calculated as the average daily rate before tax.   However, it is recommended that as much rate information as possible should be included in the request - i.e. total rate inclusive of taxes, and daily rates.<br><br>This attribute was added in UltraDirect version 1.2.2 but can be used with the standard version of the booking transaction (i.e. without the VersionCompliance attribute) or the newer ‘enhanced booking’ version added in version 1.2 (i.e. with VersionCompliance attribute set to “EnhancedBook\_V1”).  However, it is recommended that the ‘enhanced booking version’ is used when overriding rates because it allows more detailed rate information to be included in the request message.<br> </p> |
| <p><br></p>                                                               | RoomTypeCode              | 1           | Char 10     | Room type code, as returned in the availability response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                               | Session                   | 0..1        | Enum        | Set to “New” if using active session control (i.e. booking will not be confirmed until committed using the SessionControl message). Otherwise omit the attribute.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | TotalRateInclusive        | 0..1        | Decimal     | <p>The sum of nightly rates and taxes for the stay. Mutually exclusive withTotalRateInclusiveCharges.<br><br>  This attribute is an enhanced booking feature, and VersionCompliance must  be set to “EnhancedBook\_V1” for this to be used in the request.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | TotalRateInclusiveCharges | 0..1        | Decimal     | <p>Total room rate inclusive of all known taxes, fees and any extra charges.<br><br>  This attribute is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| HotelML/Form/BookReservation/ Locale                                      | <p><br></p>               | 0..1        | <p><br></p> | <p>This is used to request the response in a specific language.<br><br>Note: It can only be included if requesting a language other than English.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | Language                  | 1           | Char 2      | Language code – e.g. “FR”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | Country                   | 0..1        | Char        | Optional country name – e.g. “France”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| HotelML/Form/BookReservation/ AgentInfo                                   | <p><br></p>               | 0..1        | <p><br></p> | Travel agent identifier. This is normally required for the hotel to pay commission. It may also be required to access non-public rates.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                               | Number                    | 1           | Char 8      | Travel agent identifier – often the IATA number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | Type                      | 1           | Enum.       | Identifies the type of travel agent number. Values are: “ARC”, “IATA”, “TIDS”, “CLIA”, “AAA”,  “GDS”, “Other”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | CityCode                  | 0..1        | Char 3      | Originating Agent’s City. Not normally required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | CountryCode               | 0..1        | Char 2      | Originating Agent’s Country Code (ISO Standard Codes). Not normally required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| HotelML/Form/BookReservation/CreditCard                                   | <p><br></p>               | 0..1        | <p><br></p> | Details of the credit card used for guarantee, deposit or prepayment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | TypeIdentifier            | 1           | Char 2      | Type of credit card – e.g. “VI” (Visa), “AX” (American Express) etc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><br></p>                                                               | Number                    | 1           | Char 21     | Credit card number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                               | CVMNumber                 | 0..1        | Char 3-4    | Three or four digit credit card security code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><br></p>                                                               | ExpirationDate            | 1           | YYMM        | Credit card expiry date                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                               | IssuedName                | 1           | Char 99     | Full credit card holder’s name, as printed on the card                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                               | Email                     | 0..1        | Char 128    | <p>  Email address of the cardholder (which may be different from the guest)<br><br>  This attribute is an enhanced booking feature, and VersionCompliance must  be set to “EnhancedBook\_V1” for this to be used in the request</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p><br></p>                                                               | Channel                   | 0..1        | Enum        | <p>  Channel used to make the booking:<br><br>  Valid values are “MailOrder”, “Telephone”, Ecommerce”, “FaceToFace”<br><br>  This attribute is an enhanced booking feature, and VersionCompliance must   be set to “EnhancedBook\_V1” for this to be used in the request</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                               | CollectionMethod          | 0..1        | Enum        | <p>  The method used to capture the credit card number.  Valid values are “KeyedIn”, “OnFile”, “CardReader”<br><br>  This attribute is an enhanced booking feature, and VersionCompliance must   be set to “EnhancedBook\_V1” for this to be used in the request</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| HotelML/Form/BookReservation/CreditCard/PostalAddress                     | <p><br></p>               | 0,,1        | <p><br></p> | This only needs to be supplied of the credit card billing address is different from the guest’s address                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                               | City                      | 1           | Char 50     | City name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | CountryCode               | 1           | Char 2      | Country code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                               | Line1                     | 1           | Char 99     | Address line 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line2                     | 0..1        | Char 99     | Address line 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line3                     | 0..1        | Char 99     | Address line 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line4                     | 0..1        | Char 99     | Address line 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | PostalCode                | 0..1        | Char 15     | Postal code/ Zip code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | StateCode                 | 0..1        | Char 2      | State / Province code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| CreditCard/ ThreeDomainSecurity                                           |                           | 0..1        |             | This element is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                                                                           | Protocol Version          | 0..1        | Char 3      | 3DS Program Protocol version No dots between numbers - e.g. 020 is version 2.0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| CreditCard/ ThreeDomainSecurity/Gateway                                   |                           | 0..1        |             | This element is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                                                                           | ECI                       | 0..1        | Char 2      | <p>  Electronic Commerce Indicator.  Indicates the security level associated with an Internet purchase transaction<br><br>Values 00 to 09</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                                                                           | Merchant Name             | 0..1        | Char 40     | Name of the merchant completing the 3DS transaction                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| CreditCard/ ThreeDomainSecurity/Results                                   |                           | 0..1        |             | This element is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                                                                           | CAVV                      | 0..1        | Char 28     | Cardholder Authentication Verification Value Information retrieved from the 3DS provider when authentication is successful                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                                                                           | XID                       | 0..1        | Char 28     | <p>  Transaction identifier for a 3DS Version 1 provider<br><br>Length 28 characters (Base 64 or HEX) </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                                                                           | TransactionID             | 0..1        | Char 36     | <p>  Transaction identifier for a 3DS Version 2 provider<br><br>  May contain special characters</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|                                                                           | PAResStatus               | 0..1        | Enum.       | <p>  Payer Authentication Result Status when using 3DS credit card security<br><br>This value will be required to communicate to the authorizing party  when authentication could not be completed for reasons other than Authentication Outage<br><br>  Values:<br>  "Y" (Authentication Successful)<br>  "N" (Authentication Failed)<br>  "U" (Authentication Unavailable)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| HotelML/Form/ BookReservation/CreditCard/ThreeDomainSecurity/Exemption    |                           | 0..1        |             | This element is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                                                                           | Reason                    | 1           | E  num.     | <p>  The reason for the 3DS exemption:<br>Valid values are "RiskAnalysis"<br>  "TrustedBeneficiary"<br>  "LowValue"<br>  "SecureCorporate"<br>"DelegatedAuthentication"<br>  "AuthenticationOutage"</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| HotelML/Form/ BookReservation/CreditCard/ThreeDomainSecurity/MIT\_Mandate |                           | 0..1        |             | <p>  This is used if the cardholder has authorized a merchant initiated  transaction.<br><br>This element is an enhanced booking feature, and VersionCompliance must  be set to “EnhancedBook\_V1” for this to be used in the request</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                                                                           | Type                      | 0..1        | Enum.       | <p>  Merchant Initiated Transaction mandate:<br>Valid values are "None"<br>  "NoShowFee"<br>"RecurringChargeFixedDate"<br>  "BalancePayment"<br>"PrePayment"<br>"PostCheckInCharges"<br>  "CancelFee"<br>  "RecurringChargeVariableDate"</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|                                                                           | Amount                    | 0..1        | Num(15)     | Maximum amount mandated for Merchant Initiated Transaction                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                                                                           | Currency                  | 0..1        | Char 3      | Currency associated with the amount.  Must be present if Amount  provided.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| HotelML/Form/BookReservation/ExtraBed                                     | <p><br></p>               | 0..3        | <p><br></p> | This is used to request rollaway beds or cots/cribs. The element can occur up to three times - once for each type of extra bed – as defined by the Type attribute.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><br></p>                                                               | Type                      | 1           | Enum        | <p>Type of extra bed required. Valid values are:<br>AdultRollAway, ChildRollAway, Crib</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                               | Number                    | 0..1        | Integer     | The number of beds of this type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br></p>                                                               | Charge                    | 0..1        | Decimal     | Optional charge for extra bed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><br></p>                                                               | Currency                  | 0..1        | Char 3      | Currency code for charge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| HotelML/Form/BookReservationFlightInfo                                    | <p><br></p>               | 0..1        | <p><br></p> | Optional details of the arrival flight                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                               | AirportCode               | 0..1        | Char 3      | Arrival airport code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p><br></p>                                                               | Number                    | 0..1        | Char        | Flight number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><br></p>                                                               | Time                      | 0..1        | Date/ Time  | Arrival time                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| HotelML/Form/BookReservation/Guest                                        | <p><br></p>               | 1..M        | <p><br></p> | Guest details. Normally just the details of the primary guest are included in the booking request, although details of all guests are permitted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | FirstName                 | 1           | Char        | Guest’s first name or initials. Total length of Title + FirstName + LastName + MiddleName + Suffix must not exceed 95 characters,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | LastName                  | 1           | Char        | Guest’s last name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | MiddleName                | 0..1        | Char        | Guest’s middle name or initial (optional)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | NumberOfAdults            | 0..1        | Integer     | <p>Number of adults staying per room. Normally at least one adult is required per room.<br><br>This attribute is deprecated.  Should use GuestCount element instead.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                               | NumberOfChildren          | 0..1        | Integer     | <p>Number of children staying per room<br><br>This attribute is deprecated.  Should use GuestCount element instead.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                               | NumberOfRooms             | 1           | Integer     | Number of rooms (of the specified type and rate) to be booked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Primary                   | 0..1        | Boolean     | Indicates whether the Guest element if for the primary guest. One and only one Guest element must have Primary=”true”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | Remarks                   | 0..1        | Char 256    | Free format comment text                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><br></p>                                                               | ServiceRequest            | 0..1        | Char 189    | Free format special request text                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | Suffix                    | 0..1        | Char        | Guest name suffix                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | Title                     | 0..1        | Char        | Guest name title                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| HotelML/Form/BookReservation/Guest/GuestCount                             | <p><br></p>               | 1..M        | <p><br></p> | <p>This element specifies the type of guest “Adult” or “Child”, and (optionally the age of the child).<br><br>GuestCount must occur once (and only once) per Guest.<br><br>  It should be used instead of the NumberOfAdults and NumberOfChildren attributes of BookReservation/Guest because it allows the age of each child to be specified.<br><br>  This element is an enhanced booking feature, and VersionCompliance must   be set to “EnhancedBook\_V1” for this to be used in the request.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                               | Type                      | 1           | Enum        | Values “Adult” or “Child”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | Age                       | 0..1        | Integer     | The optional age of the guest.  Only applicable when Type=”Child”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | Count                     | 1           | Integer     | Number of guests of this type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| HotelML/Form/BookReservation/Guest/ExtraPerson                            | <p><br></p>               | 1..2        | <p><br></p> | <p>  Only associated to BookReservation/Guest segment where Primary = true.<br><br>This element is an enhanced booking feature, and VersionCompliance must be set to “EnhancedBook\_V1” for this to be used in the request.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br></p>                                                               | Type                      | 1           | Enum.       | Values “Adult” and “Child”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p><br></p>                                                               | Number                    | 1           | Integer     | Number of Extra person(s) by type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><br></p>                                                               | Charge                    | 0..1        | Decimal     | This value should be the same as ExtraBed Charge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | Currency                  | 0..1        | Char 3      | This value should be the same as ExtraBed Currency                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| HotelML/Form/BookReservation/Guest/AutoInfo                               | <p><br></p>               | 0..M        | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Code                      | 1           | Char 25     | Auto frequent traveler ID. Not normally used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| HotelML/Form/BookReservation/ Guest/CorpInfo                              | <p><br></p>               | 0..1        | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Code                      | 1           | Char 25     | Corporate Customer ID. Only used if booking a corporate rate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| HotelML/Form/BookReservation/ Guest/Email                                 | <p><br></p>               | 1           | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Address                   | 1           | Char 128    | Guest’s email address is required when making a reservation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| HotelML/Form/BookReservation/ Guest/FlyerInfo                             | <p><br></p>               | 0..M        | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Code                      | 1           | Char 25     | Frequent flyer number. Not normally used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| HotelML/Form/BookReservation/ Guest/FreqGuest                             | <p><br></p>               | 0..M        | <p><br></p> | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><br></p>                                                               | Code                      | 1           | Char 25     | Frequent guest number. Not normally used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| HotelML/Form/BookReservation/ Guest/Phone                                 | <p><br></p>               | 1..M        | <p><br></p> | Guest’s telephone number(s). At least one is required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><br></p>                                                               | Number                    | 1           | Char 20     | Telephone number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><br></p>                                                               | Type                      | 1           | Enum        | Type of telephone number,Most common values in this context are: “Home”, “Business”, “Mobile”, “FAX”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| HotelML/Form/BookReservation/Guest/PostalAddress                          | <p><br></p>               | 1..M        | <p><br></p> | Guest’s address details                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><br></p>                                                               | City                      | 1           | Char 50     | City name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><br></p>                                                               | CountryCode               | 1           | Char 2      | Country code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p><br></p>                                                               | Line1                     | 1           | Char 99     | Address line 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line2                     | 0..1        | Char 99     | Address line 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line3                     | 0..1        | Char 99     | Address line 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | Line4                     | 0..1        | Char 99     | Address line 4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><br></p>                                                               | PostalCode                | 0..1        | Char 15     | Postal code/ Zip code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | StateCode                 | 0..1        | Char 2      | State / Province code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><br></p>                                                               | Type                      | 1           | Enum        | Values “Home”, “Agent”, and “Business”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.rategain.com/ultradirect/ultradirect-transaction-sets-xml/booking-transactions/booking-request-message-format...md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
