Managing Additional Fields

To use Confirmation Extras or Additional Fields to store the values like Frequent Flyer number use the following:

First, confirmation extras consist of several fields to be used per needs, please review the following


http://developer.ean.com/docs/book-reservation/track-bookings

Now, in example, you use additionalField1 the way to use it on a booking REST call is the following:

POST

https://book.api.ean.com/ean-services/rs/hotel/v3/res?
cid={yourCID}
&minorRev=16
&apiKey={yourAPIkey}
&locale=en_US
&currencyCode=USD
&customerIpAddress={customerIP}
&customerUserAgent=Mozilla/4.0
&customerSessionId={sessionID}
&additionalData=additionalData1=yourAdditionalValue
&xml=
<HotelRoomReservationRequest>
<hotelId>000000</hotelId>
<arrivalDate>mm/dd/yyyy</arrivalDate>
<departureDate>mm/dd/yyyy</departureDate>
<supplierType>E</supplierType>
<rateKey>{Rate Key}</rateKey>
<rateCode>{Rate Code}</rateCode>
<roomTypeCode>00000</roomTypeCode>
<chargeableRate>0000.00</chargeableRate>
<RoomGroup>
<Room>
<numberOfAdults>2</numberOfAdults>
<firstName>Alejandro</firstName>
<lastName>Villarreal</lastName>
<bedTypeId>14</bedTypeId>
<numberOfBeds>1</numberOfBeds>
<smokingPreference>S</smokingPreference>
</Room>
</RoomGroup>
<ReservationInfo>
<email>alvillarreal@expedia.com</email>
<firstName>Alejandro</firstName>
<lastName>Villarreal</lastName>
<homePhone>4690000000</homePhone>
<workPhone>4690000000</workPhone>
<creditCardType>CA</creditCardType>
<creditCardNumber>5401999999999999</creditCardNumber>
<creditCardExpirationMonth>04</creditCardExpirationMonth>
<creditCardExpirationYear>2013</creditCardExpirationYear>
<creditCardIdentifier>123</creditCardIdentifier>
</ReservationInfo>
<AddressInfo>
<address1>travelnow</address1>
<city>Dallas</city>
<stateProvinceCode>TX</stateProvinceCode>
<countryCode>US</countryCode>
<postalCode>75240</postalCode>
</AddressInfo>
</HotelRoomReservationRequest>


How it will be shown when using getItinerary method using your API Key and CID, specifying the Itinerary Number and the Email linked to it.

Along with all itinerary information, you will receive the following:

XML Exmaple getitinerary
<ConfirmationExtras size="1">
                <ConfirmationExtra value="yourAdditionalValue" name="ADDITIONAL_DATA_1"/>
</ConfirmationExtras>
 

This way you can retrieve the addditonalfield1 information you sent in the Request.

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments