Hotel Booking Details

Method Name Definition
HotelBooking()

The booking system provides the ability to book a specified hotel room. Payment is required to book a hotel room using the Cloud hotel book API. Payment can be in the form of a credit card payment or a deposit account payment. The booking response contains the Rooms, images or the specific error, if the booking did not go through. This method is used to search the hotel. The query parameters described should be sent along with the search URL.

  • Request Details
    This method makes request by passing HotelReservationRequest class object RQ and returns response as BookingResponse class object which includes hotel details. User makes this request by filling all properties. For more information please click on HotelReservationRequest class.
    To get complete information about HotelReservationRequest request, check its SOAP request sample.

    Name Data Type Parameter Description
    hotelID string The search response returns a hotel-id along with each hotel found for the search criteria that was matched. The hotel-id of the hotel selected for booking should be passed here.
    checkInDate string 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 string 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 journey date.
    supplierType string
    rateKey string
    rateCode string Code for the different fare amount.
    chargeableRate string
    Tax string It represents the tax amount.
    RoomsMore/Fewer

    Name Data Type Parameter Description
    RoomMore/Fewer

    Name Data Type Parameter Description
    AdultCount int Number of adults.
    ChildCountMore/Fewer

    Name Data Type Parameter Description
    Count int Count the number of children in the room.
    childAge List This parameter states the age of the children. This is optional, but recommended. If this parameter is not passed, child's age is taken as 11 by default.

    HotelChildCount Number of children.
    Prefix string It represents the values like Mr., Mrs., Miss.
    firstName string First name of the customer.
    lastName string Last name of the customer.
    smokingPreference string True : if the customer select yes False: if the customer select no

    HotelBookingRoom This contains the information about the no. of rooms, room characteristic, and information of persons.
    Count int Total number of rooms booked by the customer.

    HotelBookingRooms It represents the information about the no. of rooms, room characteristic and information about the customer.
    roomTypeCode string Room type code and description (Deluxe room, Executive room, Deluxe AC, etc.). This field may not be unique.
    Nights int Actual number of room-nights requested including all rooms across all dates. In other words, if the search request was for 2 rooms for 2 nights, the room-nights value would be 2 * 2 = 4.
    HotelReservationInfoMore/Fewer

    Name Data Type Parameter Description
    Email string Email address of the customer.
    firstName string First Name of the customer.
    lastName string Last name of the customer.
    homePhone string Land-line number
    workPhone string Office number of the customer.
    BankCountryCode string Valid 2 letter ISO country code.
    BankName string Name of the bank.
    cardType string It represents the value of card type (credit card, debit card etc.)
    cardNumber string If the payment mode is a credit card, a valid card number should be passed.
    ExpirationYear string If the payment mode is a credit card, , a valid expiration year of the credit card should be passed.
    expirationMonth string If the payment mode is a credit card, a valid expiration month of the credit card should be passed.
    creditCardIdentifier string If the payment mode is a credit card, the CVV found on the back of the card should be passed.

    HotelReservationDetail Detail description of the hotel reserved by the customer.
    AddressDetailMore/Fewer

    Name Data Type Parameter Description
    city string It represents city name.
    stateCode string It represents the state code.
    countryCode string It represents the country code
    postalCode string It represents postal code.
    address string Address detail.

    AddressInformation Address of the hotel booked.
    HotelChain string The group which owns the hotel.
    post_pay Boolean True: if Pay at Hotel is available, Else false.

Response Details
If request is submitted successfully then response as BookingResponse class's object returned with Hotel details corresponding to search parameters submitted by the user. For more information please click on BookingResponse class.
Response content type:
application/json

 

  Booking Request
URL : http://hotelapita.easemytrip.com/EMTAPI/MiHotel.svc/HotelBooking

Method POST

Content Type : text/json

{"AddressDetail":{"address":"460, F.I.E Patparganj Industrial Area, New Delhi - 110092 (India)", "city":"Delhi","countryCode":"IN","postalCode":"110092","stateCode":""}, "Authentiacation":{"AgentCode":,"IPAddress":"","Location": "","Password":"","UserName":""}, "Rooms":{"Count":1, "Room":[{"AdultDetails":[{"Age":40,"firstName":"RAJGURU","lastName":"TOMAR","Prefix":"Mr."}, {"Age":40,"firstName":"ANSHU ","lastName":"VERMA","Prefix":"Mrs."}], "rateCode":"0000473905","rateKey":"0000473905","roomType":"Deluxe Double Room", "roomTypeCode":"0000134873","smokingPreference":"No"}]}, "BookingID":"","City":"NEW DELHI","Country":"IN", "EngineID":5, "HotelChain":"String content", "HotelReservationInfo":{"BankCountryCode":"IN", "BankName":"String content","Email":"care@easemytrip.com", "ExpirationYear":"","Title":"Mr.", "cardNumber":"","cardType":"","creditCardIdentifier":"","expirationMonth":"", "firstName":"RAJGURU","homePhone":"01143030303", "lastName":"TOMAR","workPhone":"01143030303"}, "Nights":1,"Tax":"840","Transactionid":6043015, "chargeableRate":"4340", "checkInDate":"7/2/2016 12:00:00 AM", "checkOutDate":"7/3/2016 12:00:00 AM", "hotelID":"00012390", "rateCode":"0000473905", "rateKey":"0000473905", "roomTypeCode":"0000134873", "supplierType":"5"}

Booking Response

{"CustomerSessionID":null,
"Error":null,
"RateInfos":null,
"arrivalDate":null,"confirmationNumbers":null,"departureDate":null,"itineraryId":null,
"processWithConfirmation":null,"reservationNumbers":null,
"reservationStatusCode":null,"roomDescription":null}