| HotelList() |
This method is used to search the hotel. The query parameters described should be sent along with the search URL.
-
Request Details
This search method makes request by passing HotelAvailabilityRequest class RQ and returns response which includes hotel details.
User makes Hotel search request by filling all properties.
For more information please click on
HotelAvailabilityRequest class.
To get complete information about HotelAvailabilityRequest request, check its REST request sample.
| Name |
Data Type |
Parameter Description |
| City | string | This value represents source city name. |
| CityName | string | City name to search for hotel. |
| CheckInDate | DateTime | It represents Check in date. This value should be entered as string not less than and more than 10 characters in date format ‘yyyy-MM-dd’. |
| CheckOutDate | DateTime | It represents the Check-out date and should be entered as string not less than and more than 10 characters in date format ‘yyyy-MM-dd’. It cannot be greater than CheckInDate. |
| country | string | Two letter ISO country code. |
roomsMore/Fewer
| Name |
Data Type |
Parameter Description |
RoomMore/Fewer
| Name |
Data Type |
Parameter Description |
| NumberOfAdults | int | It represents the value of total number of adults. Domain for this field contains values from 1-4. |
ChildMore/Fewer
| Name |
Data Type |
Parameter Description |
| NumberOfChild | int | It represents the value of total number of children |
| childAge | List/Array | It represents the age of the children. This is optional, but recommended if this parameter is passed, child’s age is taken as 11 by default. |
| ChildCount | Total number of children. Domain for this field contains values from 1-4. |
| List | It represents contains the information about the no. of rooms, room characteristic, and information of persons. |
| Count | string | It represents the value of number of rooms. |
| HotelRooms | It represents the information about the no. of rooms, room characteristic and information about the customer. |
| currency | string | It represents the currency code for different countries. |
| Nights | int | It represents the value of total number of nights. |
EMTAuthentication More/Fewer
| Name |
Data Type |
Parameter Description |
| UserName | string | It represents the value of username provided to the user |
| Password | string | It represents the value of password |
| AgentCode | int | It represents the code of the agent |
| IpAddress | string | 192.168.1.0 //pass the
whiltelist ip address |
| Authentication | This parameter is used to authenticate the user by accepting username (string), password (string). This is required to pass all key credentials before accessing all services provided by API. |
| engine | string | |
http://hotelapita.easemytrip.com/emtapi/MiHotel.svc/Hotellist
Request Details in Json Format
Content Type : "text/json"
{"PageNo" : 1,"City":"New Delhi","CityName":"New Delhi,
India","CheckInDate":2016-06-21,"CheckOutDate":2016-06-22,"TotalHotel" :
50,"country":"India","rooms":{"Count":1,"Room":[{"NumberOfAdults":2,"Child":{"NumberOfChild":1,"childAge":["5"]}}]},"currency":"INR","Nights":1,"Engine":15,"EMTAuthentication":{"UserName":"","Password":"","AgentCode":1,"IPAddress":""},"isFareRecheck":false}
-
Response Details
If request is submitted successfully then response as HotelAvailabilityResponse class's object returned with Hotel details corresponding to search parameters submitted by the user.
Hotel Search Response can be followed rooms Pricing request to get price details for corresponding hotel availabiliy request.
For more information please click on
HotelAvailabilityResponse class.
Response content type:
application/json
"CheckInDate":"2016-06-21","CheckOutDate":"2016-06-22","Error":null,"Nights":1,"TimeSpan":"7,
7","TotalHotel":1002,
{"AvailableRoom":[{"CancellationPolicy":null,"Description":"Deluxe
Double
Room","EMTCommonId":"EMTHotel-611348", "Engine":5, "HotelID":"00040520", "Meal":null,"Nights":1,"Offer":null,"Price":1959,"RoomCode":null,"TotalPrice":2319,"promoDescription":null,"rateKey":"0000471992","ratePlanCode":"0000471992", "roomID":"0000107900","roomImage":"http:\/\/images.easemytrip.com\/HotelImage\/EMTHotel-611348\/RoomImage\/0000107900.jpg","roomRateDescription":null, "roomType":"Deluxe
Double
Room","roomTypeCode":"0000107900","roomTypeDescription":null,"surchargeTotal":"360"}],
"EMTCommonID":"EMTHotel-611348","EngineType":5,"ImageThumbUrl":"http:\/\/images.easemytrip.com\/HotelImage\/EMTHotel-611348\/Hotel5\/00040520_0.jpg","PromoDescription":"Book
now and save 20% on each
night","ProximityDistance":null,"RateCode":"alpina-residency-00040520","TotalPrice":1959,"address":"E
506, GK-II Road, , Main Savitri Cinema, Opposite JMD Kohinoor Mall, , --None--,
NEW DELHI, DELHI, India, Pin-110048 ","city":"NEW
DELHI","currencyCode":"INR","description":"E 506, GK-II Road, , Main Savitri
Cinema, Opposite JMD Kohinoor Mall, , --None--, NEW DELHI, DELHI, India,
Pin-110048 ","floors":"","highRate":"","hotelID":"00040520","hotelName":"Alpina
Residency","latitude":"","longtitude":"","lowRate":"2449.0","noOfRoom":1,"phone":"","postalCode":"","price":"2449","rating":"0.0","specialOffer":null,"surchargeTotal":"-490","tripAdvisorRating":"","tripAdvisorRatingUrl":null,"tripAdvisorReviewCount":null}],"sessionID":"01b31c67767c4b4ba269a903f8f7df4e"
Restrictions on the search parameters:
The following are the restrictions on the search parameters.
- Check-out date should be greater than the check-in date.
- Either of the dates should not be beyond a year of the search date.
- EMTAuthentication is mandatory on all cases.
|