AvailabilityAndPricing()

This method is used to verify the Availability and Pricing of the hotel before booking. The method ensures that the cancellation policies are available for selected rooms, agency account information is in valid state for making a booking and it checks for any run time price variation whose probability is very low. Use of this method is mandatory ( This will provide you the latest Cancellation Policy and Prices if there is any change ).

Note:

  • If there is any price change, Rooms will be returned with New Price in response, so that you can make booking on New Price.
  • Kindly consider and display the latest CancellationPolicies, HotelNorms you have received in AvailabilityandPricing response as same will be considered as final and will be applicable for the respective booking.

Request (Single room)


<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
 <soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
    <hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
    </hot:Credentials>
     <wsa:Action>http://TekTravel/HotelBookingApi/AvailabilityandPricing</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:AvailabilityAndPricingRequest>
      <hot:ResultIndex>3</hot:ResultIndex>
      <hot:HotelCode>1360717</hot:HotelCode>
      <hot:SessionId>c31ccab1-22d6-4171-9820-f5448e1938e2</hot:SessionId>
      <hot:OptionsForBooking>
        <hot:FixedFormat>true</hot:FixedFormat>
        <hot:RoomCombination>
          <hot:RoomIndex>1</hot:RoomIndex>
        </hot:RoomCombination>
      </hot:OptionsForBooking>
    </hot:AvailabilityAndPricingRequest>
  </soap:Body>
</soap:Envelope>

Request (Multiple room)


<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
  <soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
    <hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
    </hot:Credentials>
    <wsa:Action>http://TekTravel/HotelBookingApi/AvailabilityandPricing</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:AvailabilityAndPricingRequest>
      <hot:ResultIndex>1</hot:ResultIndex>
      <hot:HotelCode></hot:HotelCode>
      <hot:SessionId>563bc828-3f73-4d5c-9802-1482a1661c49</hot:SessionId>
      <hot:OptionsForBooking>
        <hot:FixedFormat>false</hot:FixedFormat>
        <hot:RoomCombination>
          <hot:RoomIndex>1</hot:RoomIndex>
          <hot:RoomIndex>2</hot:RoomIndex>
        </hot:RoomCombination>
      </hot:OptionsForBooking>
    </hot:AvailabilityAndPricingRequest>
  </soap:Body>
</soap:Envelope>

Response (No price change)


<AvailabilityAndPricingResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: AvailabilityAndPricing Successful</Description>
  </Status>
  <ResultIndex>3</ResultIndex>
  <AvailableForBook>true</AvailableForBook>
  <AvailableForConfirmBook>false</AvailableForConfirmBook>
  <CancellationPoliciesAvailable>true</CancellationPoliciesAvailable>
  <HotelCancellationPolicies>
       <HotelNorms>
            Per local law, all guests staying at this hotel must present a valid original passport, Emirates ID (for UAE residents), or original National ID card from the following GCC countries: Kuwait, Bahrain, Oman, Saudi Arabia, and Qatar. For more details, please contact the office using the information on the reservation confirmation received after booking. A tourism fee is imposed by the city and collected at the property. The fee is AED 10 for the first bedroom per night, and increases by AED 10 per night for each additional bedroom. For further details, please contact the property using the information contained in your confirmation email.
            Please note that this a special rate which should be sold only with an airline ticket as part of a package.
            W.e.f 31.03.2014, Government of Dubai is applying “Tourism Dirham” a fee ranging from AED 7-20 per room per night, which the guests availing the stay will have to pay to the hotel directly as applied before check-out.
       </HotelNorms>
       <CancelPolicies PolicyFormat="Nodes">
        <LastCancellationDeadline>2017-12-12T00:00:00</LastCancellationDeadline>
        <CancelPolicy RoomTypeName="Standard Room" RoomIndex="1" FromDate="2017-12-13" ToDate="2018-05-24" ChargeType="Percentage" CancellationCharge="100" Currency="USD" PrefCurrency="INR"/>
        <NoShowPolicy RoomTypeName="Standard Room" RoomIndex="1" FromDate="2018-05-25" ToDate="2018-05-26" ChargeType="Percentage" CancellationCharge="100" Currency="USD" PrefCurrency="INR"/>
        <DefaultPolicy>Early check out  will attract full cancellation charge unless otherwise specified</DefaultPolicy>
        <AutoCancellationText/>
      </CancelPolicies>
  </HotelCancellationPolicies>  
  <PriceVerification Status="Successful" PriceChanged="false" AvailbaleOnNewPrice="false"/>
  <AccountInfo AgencyBalance="Sufficient" AgencyBlocked="false"/>
  <HotelDetailsVerification Status="Successful" Remarks="" />
    <HotelDetails HotelName="Citymax Bur Dubai" HotelRating="ThreeStar">
        <Address>Kuwait Street Mankhool Area, Dubai,</Address>
        <Map>25.25069|55.29182</Map>
    </HotelDetails>
</AvailabilityAndPricingResponse>

Response (Price changed)


<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <a:Action s:mustUnderstand="1">http://TekTravel/HotelBookingApi/IHotelService/AvailabilityAndPricingResponse</a:Action>
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <AvailabilityAndPricingResponse xmlns="http://TekTravel/HotelBookingApi">
      <Status>
        <StatusCode>01</StatusCode>
        <Description>Successful: AvailabilityAndPricing Successful</Description>
      </Status>
      <ResultIndex>1</ResultIndex>
      <AvailableForBook>false</AvailableForBook>
      <AvailableForConfirmBook>false</AvailableForConfirmBook>
      <CancellationPoliciesAvailable>true</CancellationPoliciesAvailable>
      <PriceVerification Status="Successful" PriceChanged="true" AvailbaleOnNewPrice="true">
        <HotelRooms>
          <!-- Multiple HotelRoom in case of multiple room response -->
          <HotelRoom>
            <RoomIndex>1</RoomIndex>
            <RoomTypeName>SINGLE STANDARD</RoomTypeName>
            <Inclusion>ROOM ONLY</Inclusion>
            <RoomTypeCode>SIMPLE|RO-E10|RO|SGL-E10|ST|pXzjPgnyuZRJu5WoIBgQ==|1</RoomTypeCode>
            <RatePlanCode>SIMPLE|RO-E10|RO|SGL-E10|ST|pXzjPgnyuZRJu5WoIBgQ==|DXB</RatePlanCode>
            <RoomRate RoomFare="43.92" Currency="USD" AgentMarkUp="2.09" RoomTax="0" TotalFare="43.92" B2CRates="false">
              <DayRates>
                <DayRate Date="2014-06-28T00:00:00" BaseFare="43.92"/>
              </DayRates>
              <ExtraGuestCharges>0</ExtraGuestCharges>
              <ChildCharges>0</ChildCharges>
              <Discount>0</Discount>
              <OtherCharges>0</OtherCharges>
              <ServiceTax>0</ServiceTax>
            </RoomRate>
          </HotelRoom>
        </HotelRooms>
      </PriceVerification>
      <AccountInfo AgencyBalance="Sufficient" AgencyBlocked="false"/>
    </AvailabilityAndPricingResponse>
  </s:Body>
</s:Envelope>