Hotel Search

Method Name Definition
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
    CitystringThis value represents source city name.
    CityNamestringCity name to search for hotel.
    CheckInDateDateTimeIt 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’.
    CheckOutDateDateTimeIt 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.
    countrystringTwo letter ISO country code.
    roomsMore/Fewer

    Name Data Type Parameter Description
    RoomMore/Fewer

    Name Data Type Parameter Description
    NumberOfAdultsintIt represents the value of total number of adults. Domain for this field contains values from 1-4.
    ChildMore/Fewer

    Name Data Type Parameter Description
    NumberOfChildintIt represents the value of total number of children
    childAgeList/ArrayIt 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.

    ChildCountTotal number of children. Domain for this field contains values from 1-4.

    ListIt represents contains the information about the no. of rooms, room characteristic, and information of persons.
    CountstringIt represents the value of number of rooms.

    HotelRoomsIt represents the information about the no. of rooms, room characteristic and information about the customer.
    currencystringIt represents the currency code for different countries.
    NightsintIt represents the value of total number of nights.
    EMTAuthentication More/Fewer

    Name Data Type Parameter Description
    UserNamestringIt represents the value of username provided to the user
    PasswordstringIt represents the value of password
    AgentCodeintIt represents the code of the agent
    IpAddressstring192.168.1.0 //pass the whiltelist ip address

    AuthenticationThis 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.
    enginestring

    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.