GenerateInvoice()

This method is used to generate voucher (make payment) for a previously made Confirmed booking, if you do not pay for the booking until last cancellation date or cancellation deadline the booking will be auto cancelled to avoid any penalty to client or TBOHolidays. You will be notified via email before a booking get cancelled automatically.

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

Request (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/GenerateInvoice</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:GenerateInvoiceRequest>
      <hot:ConfirmationNo>8GQQNN</hot:ConfirmationNo>
      <hot:PaymentInfo VoucherBooking="true" PaymentModeType="Limit"/>
    </hot:GenerateInvoiceRequest>
  </soap:Body>
</soap:Envelope>

Request (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/GenerateInvoice</wsa:Action>
    <wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
  </soap:Header>
  <soap:Body>
    <hot:GenerateInvoiceRequest>
      <hot:BookingId>1728</hot:BookingId>
      <hot:PaymentInfo VoucherBooking="true" PaymentModeType="Limit"/>
    </hot:GenerateInvoiceRequest>
  </soap:Body>
</soap:Envelope>

Response


<GenerateInvoiceResponse xmlns="http://TekTravel/HotelBookingApi">
  <Status>
    <StatusCode>01</StatusCode>
    <Description>Successful: GenerateInvoice Successful</Description>
  </Status>
  <InvoiceNo>MW85</InvoiceNo>
</GenerateInvoiceResponse>