Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Hotel room Details #702

Closed anantksingh closed 5 years ago

anantksingh commented 5 years ago

Hi @vivekjyotipramanik , I need hotel room details i am using HotelDetailsReq of Hotel details but i did not getting hotel room information please solved and guide, HotelDetailsReq XML

2019-11-01 2019-11-09
vivekjyotipramanik commented 5 years ago

Hi anantksingh,

Please share the response you are receiving. Thanks.

anantksingh commented 5 years ago

Hi @vivekjyotipramanik , Thank you for response, Please file response

PKGHAR JA-1 Sector III KOLKATA 700098 IN EARN AA MILES AT HYATT - HODHY/PART 2PM 12N Twin Room 2 Twin Beds: Flrs 2-4: Marble Bath:work Area: King Room 1 King Bed: Flrs 2-4: Marble Bath: Work Area: 1 King Bed:floors 5-7:comp Internet Access Club King Club Twin 2 Twin Beds:floors 5-7:comp Internet Access 1 King Bed: Floor 7: Parlor: Regency Dplx Ste 1 King Bed:flrs 5-7:parlor:breakfast: Regency Ste King 2 Twin Beds: Flrs 2-4: Marble Bath:work Area: Adv Purchase* Twin Room 1 King Bed: Flrs 2-4: Marble Bath: Work Area: Adv Purchase* King Room 1 King Bed:floors 5-7:comp Internet Access Adv Purchase* Club King 2 Twin Beds:floors 5-7:comp Internet Access Adv Purchase* Club Twin Romance Romance Pkg Twin Room**see Hov** Romance Romance Pkg King Room**see Hov** Romance Romance Pkg Club King**see Hov** Romance Romance Pkg Club Twin**see Hov** Romance Romance Pkg Regency Dplx Ste**see Hov** Romance Romance Pkg Regency Ste King**see Hov** 2 Twin Beds: Flrs 2-4: Marble Bath:work Area: Bed And Brkfst* Twin Room 1 King Bed: Flrs 2-4: Marble Bath: Work Area: Bed And Brkfst* King Room 2 Twin Beds: Flrs 2-4: Marble Bath:work Area: Hyatt Busn Plan* Twin Room 1 King Bed: Flrs 2-4: Marble Bath: Work Area: Hyatt Busn Plan* King Room Explore Package Explore Pkg* Twin Room**see Hov** Explore Package Explore Pkg* King Room**see Hov** Explore Package Explore Pkg* Club King**see Hov** Explore Package Explore Pkg* Club Twin**see Hov** Explore Package Explore Pkg* Regency Dplx Ste**see Hov** Explore Package Explore Pkg* Regency Ste King**see Hov** Bed Bkfst 2trans Twin Room 2 Twin Beds: Flrs 2-4: Marble Bath:work Area: Bed Bkfst 2trans King Room 1 King Bed: Flrs 2-4: Marble Bath: Work Area: Full Breakfast:rs 4000 Relaxation Credit Spa Pkg Twin Room**see Hov** Full Breakfast:rs 4000 Relaxation Credit Spa Pkg King Room**see Hov**
vivekjyotipramanik commented 5 years ago

Hi anantksingh,

The response is coming as expected and working fine. I am not sure what are the details you are expecting. Please elaborate. Please find below the link with the details about Hotel Details. Thanks.

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Hotel_Rate_and_Rule_Search/Hotel_Rate_and_Rule_Search.htm%3FTocPath%3DHotel%7CHotel%2520Shopping%2520and%2520Booking%7CHotel%2520Rate%2520and%2520Rule%2520Search%7C_____0

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Hotel_Description/HotelDescription.htm%3FTocPath%3DHotel%7CHotel%2520Shopping%2520and%2520Booking%7CHotel%2520Description%7C_____0

anantksingh commented 5 years ago

Hi @vivekjyotipramanik , Thank you for reply, I need room amenities, Room Type (Guest Room, 1 King) , Room images, Room Description, Available rooms left and room booking price.

I also use ApproximateTotal="GBP391.00" and ApproximateBase="GBP164.00" for booking.

<hotel:HotelRateDetail RatePlanType="TWNPKHA" Base="INR29000.00" Total="INR34510.00" ApproximateTotal="GBP391.00" RateChangeIndicator="false" ExtraFeesIncluded="false">

<hotel:HotelRateByDate EffectiveDate="2019-11-04" ExpireDate="2019-11-06" Base="INR14500.00" ApproximateBase="GBP164.00"/>

vivekjyotipramanik commented 5 years ago

Hi anantksingh,

Please find below the details. Please find below the link with end to end flow of Hotel Booking. Thanks.

https://support.travelport.com/webhelp/uapi/uapi.htm#SampleWeb/Alternative_Sample_Pages/Samples_Hotel_Redone.htm%3FTocPath%3DHotel%7CHotel%2520Samples%7C_____0

Amenities: Please find below the link about how to request details about amenities. Please use 'ReturnAmenities' modifier in HotelDetailsReq to get amenities about Hotel Rooms

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Shared_Hotel_Topics/Hotel%20Amenities.htm%3FTocPath%3DHotel%7CAssociated%2520Topics%7C_____2

Room Type: Room Type already gets returned in HotelDetailsRsp. Please find below the link with details.

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Shared_Hotel_Topics/Hotel_Bed_Types.htm%3FTocPath%3DHotel%7CAssociated%2520Topics%7C_____3

Room images: UAPI does not provide separate images for rooms. The HotelMediaReq will provide all the images of the Hotel and Rooms.

Room Description: The HotelDetailsRsp already provides description about rooms. To get more details about room, please find below the link with details.

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Shared_Hotel_Topics/Hotel%20Room%20View.htm%3FTocPath%3DHotel%7CAssociated%2520Topics%7C_____14

Available rooms left: UAPI does not provide details abotu how many rooms are available.

Room booking price: It is already being returned in Rate and Rule search. Please find below the details.

https://support.travelport.com/webhelp/uapi/uapi.htm#Hotel/Hotel_Rate_and_Rule_Search/Hotel_Rate_and_Rule_Search.htm%3FTocPath%3DHotel%7CHotel%2520Shopping%2520and%2520Booking%7CHotel%2520Rate%2520and%2520Rule%2520Search%7C_____0

anantksingh commented 5 years ago

Hi @vivekjyotipramanik ,

Thank you fro guide me on my problem. Please check below i have mentioned the query.

My concern/problem is how i will list the rooms with Room Type, Room Amenities. Room Image, Room Description.Please check reference website link :Please Click

Amenities: I used ReturnAmenities in HotelDetailsReq but getting error: 5:136: cvc-complex-type.3.2.2: Attribute 'ReturnAmenities' is not allowed to appear in element 'hot:HotelDetailsModifiers'. <hot:HotelDetailsModifiers NumberOfAdults="2" RateRuleDetail="Complete" ReturnAmenities="true" PreferredCurrency="GBP"> I think ReturnAmenities only use in HotelSearchAvailabilityReq

Room Type: Room Type already gets returned in HotelDetailsRsp, I did not getting please guide me to get Room Type HotelDetailsRsp i also share the xml.

Room images: How i can identify that image of particular room Room Description: I checked provided  document link, there mentioned  /HotelRateDetail/Inclusions/RoomView but i am not getting in HotelDetailsRsp i also share the xml.

Thanks & Regards, Anant Kumar Singh

vivekjyotipramanik commented 5 years ago

Hi anantksingh,

Please find below the details. Thanks.

Amenities: ReturnAmenities can only be used in HotelSearchAvailabilityReq, but the amenities comes back in the HotelDetailsRsp as well. Please find below the sample request and response, where we can see in the HotelRateDetail/RoomRateDescription, the details about room can be found.

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/007-03_1G_HotelRateAndRuleSearch_Rq.xml

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/007-03_1G_HotelRateAndRuleSearch_Rs.xml

Room Type: Please find below the link with samples, where we can see RoomType details in the HotelRateDetail/RoomRateDescription/@Name="Description"/Text.

Non Smoking Room 1 Queen bed https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/007-03_1G_HotelRateAndRuleSearch_Rq.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/007-03_1G_HotelRateAndRuleSearch_Rs.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/083-04_1G_HotelRateAndRuleSearch_Rq.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/083-04_1G_HotelRateAndRuleSearch_Rs.xml **Room View:** Please find below the sample, where RoomView is getting returned. it will get returned as a code. to get the actual value, you have to use ReferenceData. Please find below the sample for the same. https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/082-03_1V_HotelRateAndRuleSearch_Rq.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/082-03_1V_HotelRateAndRuleSearch_Rs.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/082-06_1V_ReferenceDataRetrieve_Rq.xml https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/082-06_1V_ReferenceDataRetrieve_Rs.xml **Room Images:** Currently UAPI does not provide room images for the particular selected room. Please create a ticket in My.Travelport.com and we will pick it up form there regarding the specific room images.
anantksingh commented 5 years ago

Hi @vivekjyotipramanik ,

Thank you for help