HotelCancel()

In comparison to older version we are providing a single method to Cancel any booking. Booking cancel is done in two ways Online Cancel or Offline Cancel.

Online Cancel

Bookings for which our aggregator provides online cancellation and cancellation charges do not apply on the day when you request booking cancel, the booking will be immediately cancelled.

Offline Cancel

Bookings which could not be cancelled online are shown to our operations team, the team cancel the booking within 24 hours. The status of these booking could be checked through the same HotelCancel() method.

This method is used to cancel a reservation or to check the status of previously sent request.

Note: If RequestStatus is Processed then only the booking cancel flow is complete

If all the elements present in request priority will be given to ConfirmationNo.

Request (Cancel booking) (Option 1)


<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/HotelCancel</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelCancelRequest>
      <hot:ConfirmationNo>8GQQNN</hot:ConfirmationNo>
      <hot:RequestType>HotelCancel</hot:RequestType>
      <hot:Remarks>test cancel</hot:Remarks>
    </hot:HotelCancelRequest>
  </soap:Body>
</soap:Envelope>

Request (Cancel booking) (Option 2)


<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/HotelCancel</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelCancelRequest>
      <hot:BookingId>1728</hot:BookingId>
      <hot:RequestType>HotelCancel</hot:RequestType>
      <hot:Remarks>test cancel</hot:Remarks>
    </hot:HotelCancelRequest>
  </soap:Body>
</soap:Envelope>

Response (Cancel booking)


<HotelCancelResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: Booking Cancelled Successfully</Description>
  </Status>
  <BookingId>1729</BookingId>
  <CancellationCharge>0</CancellationCharge>
  <RefundAmount>46.950000000</RefundAmount>
  <RequestStatus>Processed</RequestStatus>
</HotelCancelResponse>

Request (Check booking cancel request status) (option 1)


<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/HotelCancel</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelCancelRequest>
      <hot:ConfirmationNo>8GQQNN</hot:ConfirmationNo>
      <hot:RequestType>CheckStatus</hot:RequestType>
      <hot:Remarks>test cancel</hot:Remarks>
    </hot:HotelCancelRequest>
  </soap:Body>
</soap:Envelope>

Request (Check booking cancel request status) (option 2)


<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/HotelCancel</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:HotelCancelRequest>
      <hot:BookingId>1728</hot:BookingId>
      <hot:RequestType>CheckStatus</hot:RequestType>
      <hot:Remarks>test cancel</hot:Remarks>
    </hot:HotelCancelRequest>
  </soap:Body>
</soap:Envelope>

Response


<HotelCancelResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: HotelCancel-CheckStatus Successful</Description>
  </Status>
  <BookingId>1728</BookingId>
  <CancellationCharge>0.0000</CancellationCharge>
  <RefundAmount>46.62</RefundAmount>
  <RequestStatus>Processed</RequestStatus>
</HotelCancelResponse>