FlightGateway


Click here for a complete list of operations.

BookFlight

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /test/FlightGateway.asmx HTTP/1.1
Host: ws.farebuzz.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ws.farebuzz.com/BookFlight"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <GatewaySoapAuthentication xmlns="http://ws.farebuzz.com/">
      <Username>string</Username>
      <Password>string</Password>
    </GatewaySoapAuthentication>
  </soap:Header>
  <soap:Body>
    <BookFlight xmlns="http://ws.farebuzz.com/">
      <flightBookRequest>
        <SearchSessionKey>string</SearchSessionKey>
        <ContractID>int</ContractID>
        <AgencyMarkupDetails>
          <AdultMarkupAgency>float</AdultMarkupAgency>
          <ChildMarkupAgency>float</ChildMarkupAgency>
          <SeniorMarkupAgency>float</SeniorMarkupAgency>
          <InfantInLapMarkupAgency>float</InfantInLapMarkupAgency>
          <InfantOnSeatMarkupAgency>float</InfantOnSeatMarkupAgency>
          <InsuranceFee>float</InsuranceFee>
          <Total>float</Total>
        </AgencyMarkupDetails>
        <Passengers>
          <PassengerDetails>
            <PassengerID>int</PassengerID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <MiddleInitial>string</MiddleInitial>
            <FreqFlyerNumber>string</FreqFlyerNumber>
            <SpecialRequests>string</SpecialRequests>
            <PassengerType>ADULT or CHILD or SENIOR or INFANTONSEAT or INFANTINLAP</PassengerType>
            <BirthDate>dateTime</BirthDate>
            <IsMale>boolean</IsMale>
            <TSARedressNumber>string</TSARedressNumber>
            <AssociatedAdultID>int</AssociatedAdultID>
            <TicketNumber>string</TicketNumber>
          </PassengerDetails>
          <PassengerDetails>
            <PassengerID>int</PassengerID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <MiddleInitial>string</MiddleInitial>
            <FreqFlyerNumber>string</FreqFlyerNumber>
            <SpecialRequests>string</SpecialRequests>
            <PassengerType>ADULT or CHILD or SENIOR or INFANTONSEAT or INFANTINLAP</PassengerType>
            <BirthDate>dateTime</BirthDate>
            <IsMale>boolean</IsMale>
            <TSARedressNumber>string</TSARedressNumber>
            <AssociatedAdultID>int</AssociatedAdultID>
            <TicketNumber>string</TicketNumber>
          </PassengerDetails>
        </Passengers>
        <CreditCard>
          <CardType>VI or CA or AX or DC or DS or CB</CardType>
          <CardNumber>string</CardNumber>
          <AccountCCV>string</AccountCCV>
          <ExpirationDate>dateTime</ExpirationDate>
          <IPAddress>string</IPAddress>
        </CreditCard>
        <BillingDetails>
          <FirstName>string</FirstName>
          <MiddleInitial>string</MiddleInitial>
          <LastName>string</LastName>
          <Email>string</Email>
          <Phone>string</Phone>
          <AddressLine1>string</AddressLine1>
          <AddressLine2>string</AddressLine2>
          <City>string</City>
          <State>string</State>
          <Zip>string</Zip>
          <Country>string</Country>
        </BillingDetails>
        <ShippingDetails>
          <FirstName>string</FirstName>
          <MiddleInitial>string</MiddleInitial>
          <LastName>string</LastName>
          <Email>string</Email>
          <Phone>string</Phone>
          <AddressLine1>string</AddressLine1>
          <AddressLine2>string</AddressLine2>
          <City>string</City>
          <State>string</State>
          <Zip>string</Zip>
          <Country>string</Country>
        </ShippingDetails>
        <ContactPhoneNumber>string</ContactPhoneNumber>
        <SpecialRequests>string</SpecialRequests>
      </flightBookRequest>
    </BookFlight>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BookFlightResponse xmlns="http://ws.farebuzz.com/">
      <BookFlightResult>
        <BookingNumber>int</BookingNumber>
        <PNR>string</PNR>
        <Confirmed>boolean</Confirmed>
        <Message>string</Message>
        <TotalAmount>float</TotalAmount>
        <BookingGUID>guid</BookingGUID>
      </BookFlightResult>
    </BookFlightResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /test/FlightGateway.asmx HTTP/1.1
Host: ws.farebuzz.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <GatewaySoapAuthentication xmlns="http://ws.farebuzz.com/">
      <Username>string</Username>
      <Password>string</Password>
    </GatewaySoapAuthentication>
  </soap12:Header>
  <soap12:Body>
    <BookFlight xmlns="http://ws.farebuzz.com/">
      <flightBookRequest>
        <SearchSessionKey>string</SearchSessionKey>
        <ContractID>int</ContractID>
        <AgencyMarkupDetails>
          <AdultMarkupAgency>float</AdultMarkupAgency>
          <ChildMarkupAgency>float</ChildMarkupAgency>
          <SeniorMarkupAgency>float</SeniorMarkupAgency>
          <InfantInLapMarkupAgency>float</InfantInLapMarkupAgency>
          <InfantOnSeatMarkupAgency>float</InfantOnSeatMarkupAgency>
          <InsuranceFee>float</InsuranceFee>
          <Total>float</Total>
        </AgencyMarkupDetails>
        <Passengers>
          <PassengerDetails>
            <PassengerID>int</PassengerID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <MiddleInitial>string</MiddleInitial>
            <FreqFlyerNumber>string</FreqFlyerNumber>
            <SpecialRequests>string</SpecialRequests>
            <PassengerType>ADULT or CHILD or SENIOR or INFANTONSEAT or INFANTINLAP</PassengerType>
            <BirthDate>dateTime</BirthDate>
            <IsMale>boolean</IsMale>
            <TSARedressNumber>string</TSARedressNumber>
            <AssociatedAdultID>int</AssociatedAdultID>
            <TicketNumber>string</TicketNumber>
          </PassengerDetails>
          <PassengerDetails>
            <PassengerID>int</PassengerID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <MiddleInitial>string</MiddleInitial>
            <FreqFlyerNumber>string</FreqFlyerNumber>
            <SpecialRequests>string</SpecialRequests>
            <PassengerType>ADULT or CHILD or SENIOR or INFANTONSEAT or INFANTINLAP</PassengerType>
            <BirthDate>dateTime</BirthDate>
            <IsMale>boolean</IsMale>
            <TSARedressNumber>string</TSARedressNumber>
            <AssociatedAdultID>int</AssociatedAdultID>
            <TicketNumber>string</TicketNumber>
          </PassengerDetails>
        </Passengers>
        <CreditCard>
          <CardType>VI or CA or AX or DC or DS or CB</CardType>
          <CardNumber>string</CardNumber>
          <AccountCCV>string</AccountCCV>
          <ExpirationDate>dateTime</ExpirationDate>
          <IPAddress>string</IPAddress>
        </CreditCard>
        <BillingDetails>
          <FirstName>string</FirstName>
          <MiddleInitial>string</MiddleInitial>
          <LastName>string</LastName>
          <Email>string</Email>
          <Phone>string</Phone>
          <AddressLine1>string</AddressLine1>
          <AddressLine2>string</AddressLine2>
          <City>string</City>
          <State>string</State>
          <Zip>string</Zip>
          <Country>string</Country>
        </BillingDetails>
        <ShippingDetails>
          <FirstName>string</FirstName>
          <MiddleInitial>string</MiddleInitial>
          <LastName>string</LastName>
          <Email>string</Email>
          <Phone>string</Phone>
          <AddressLine1>string</AddressLine1>
          <AddressLine2>string</AddressLine2>
          <City>string</City>
          <State>string</State>
          <Zip>string</Zip>
          <Country>string</Country>
        </ShippingDetails>
        <ContactPhoneNumber>string</ContactPhoneNumber>
        <SpecialRequests>string</SpecialRequests>
      </flightBookRequest>
    </BookFlight>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <BookFlightResponse xmlns="http://ws.farebuzz.com/">
      <BookFlightResult>
        <BookingNumber>int</BookingNumber>
        <PNR>string</PNR>
        <Confirmed>boolean</Confirmed>
        <Message>string</Message>
        <TotalAmount>float</TotalAmount>
        <BookingGUID>guid</BookingGUID>
      </BookFlightResult>
    </BookFlightResponse>
  </soap12:Body>
</soap12:Envelope>