POST api/GatewaySearch/StartFlightAvailabilitySearch

Request Information

URI Parameters

None.

Body Parameters

FPApiFlightSearchRequest
NameDescriptionTypeAdditional information
FlightSearchRequest

FlightSearchRequest

None.

ResponseVersion

SearchVersion

None.

ClientMachine

string

None.

AccessToken

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FlightSearchRequest": {
    "Adults": 64,
    "Child": 64,
    "Seniors": 64,
    "InfantInLap": 64,
    "InfantOnSeat": 64,
    "Youths": 64,
    "Kid": 64,
    "TypeOfTrip": 0,
    "ClassOfService": 0,
    "SegmentDetails": [
      {
        "Origin": "sample string 1",
        "Destination": "sample string 2",
        "DepartureDate": "2018-02-22T23:07:47.3828396-05:00",
        "DepartureTime": "sample string 4",
        "SearchWithTimePreference": true
      },
      {
        "Origin": "sample string 1",
        "Destination": "sample string 2",
        "DepartureDate": "2018-02-22T23:07:47.3828396-05:00",
        "DepartureTime": "sample string 4",
        "SearchWithTimePreference": true
      }
    ],
    "IsInsuranceRequired": true,
    "IsTravelAssistRequired": true,
    "BPC": true,
    "BPCType": 64,
    "ClientIP": "sample string 12",
    "AffiliateCode": "sample string 13",
    "SearchAlternateDates": true,
    "AirLinePreferences": [
      "sample string 1",
      "sample string 2"
    ],
    "CAID": 15,
    "Browser": "sample string 16",
    "OS": "sample string 17",
    "Keyword": "sample string 18"
  },
  "ResponseVersion": 0,
  "ClientMachine": "sample string 1",
  "AccessToken": "sample string 2"
}

text/html

Sample:
{"FlightSearchRequest":{"Adults":64,"Child":64,"Seniors":64,"InfantInLap":64,"InfantOnSeat":64,"Youths":64,"Kid":64,"TypeOfTrip":0,"ClassOfService":0,"SegmentDetails":[{"Origin":"sample string 1","Destination":"sample string 2","DepartureDate":"2018-02-22T23:07:47.3828396-05:00","DepartureTime":"sample string 4","SearchWithTimePreference":true},{"Origin":"sample string 1","Destination":"sample string 2","DepartureDate":"2018-02-22T23:07:47.3828396-05:00","DepartureTime":"sample string 4","SearchWithTimePreference":true}],"IsInsuranceRequired":true,"IsTravelAssistRequired":true,"BPC":true,"BPCType":64,"ClientIP":"sample string 12","AffiliateCode":"sample string 13","SearchAlternateDates":true,"AirLinePreferences":["sample string 1","sample string 2"],"CAID":15,"Browser":"sample string 16","OS":"sample string 17","Keyword":"sample string 18"},"ResponseVersion":0,"ClientMachine":"sample string 1","AccessToken":"sample string 2"}

application/xml, text/xml

Sample:
<FPApiFlightSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PowerXML.Models">
  <AccessToken>sample string 2</AccessToken>
  <ClientMachine>sample string 1</ClientMachine>
  <FlightSearchRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
    <d2p1:Adults>64</d2p1:Adults>
    <d2p1:AffiliateCode>sample string 13</d2p1:AffiliateCode>
    <d2p1:AirLinePreferences xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:AirLinePreferences>
    <d2p1:BPC>true</d2p1:BPC>
    <d2p1:BPCType>64</d2p1:BPCType>
    <d2p1:Browser>sample string 16</d2p1:Browser>
    <d2p1:CAID>15</d2p1:CAID>
    <d2p1:Child>64</d2p1:Child>
    <d2p1:ClassOfService>ALL</d2p1:ClassOfService>
    <d2p1:ClientIP>sample string 12</d2p1:ClientIP>
    <d2p1:InfantInLap>64</d2p1:InfantInLap>
    <d2p1:InfantOnSeat>64</d2p1:InfantOnSeat>
    <d2p1:IsInsuranceRequired>true</d2p1:IsInsuranceRequired>
    <d2p1:IsTravelAssistRequired>true</d2p1:IsTravelAssistRequired>
    <d2p1:Keyword>sample string 18</d2p1:Keyword>
    <d2p1:Kid>64</d2p1:Kid>
    <d2p1:OS>sample string 17</d2p1:OS>
    <d2p1:SearchAlternateDates>true</d2p1:SearchAlternateDates>
    <d2p1:SegmentDetails>
      <d2p1:FlightSegmentDetails>
        <d2p1:DepartureDate>2018-02-22T23:07:47.3828396-05:00</d2p1:DepartureDate>
        <d2p1:DepartureTime>sample string 4</d2p1:DepartureTime>
        <d2p1:Destination>sample string 2</d2p1:Destination>
        <d2p1:Origin>sample string 1</d2p1:Origin>
        <d2p1:SearchWithTimePreference>true</d2p1:SearchWithTimePreference>
      </d2p1:FlightSegmentDetails>
      <d2p1:FlightSegmentDetails>
        <d2p1:DepartureDate>2018-02-22T23:07:47.3828396-05:00</d2p1:DepartureDate>
        <d2p1:DepartureTime>sample string 4</d2p1:DepartureTime>
        <d2p1:Destination>sample string 2</d2p1:Destination>
        <d2p1:Origin>sample string 1</d2p1:Origin>
        <d2p1:SearchWithTimePreference>true</d2p1:SearchWithTimePreference>
      </d2p1:FlightSegmentDetails>
    </d2p1:SegmentDetails>
    <d2p1:Seniors>64</d2p1:Seniors>
    <d2p1:TypeOfTrip>ONEWAYTRIP</d2p1:TypeOfTrip>
    <d2p1:Youths>64</d2p1:Youths>
  </FlightSearchRequest>
  <ResponseVersion>NONE</ResponseVersion>
</FPApiFlightSearchRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FPStartFlightSearchResponse
NameDescriptionTypeAdditional information
ErrorReport

FPErrorReport

None.

CntKey

string

None.

ServerName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorReport": {
    "ErrorCode": "sample string 1",
    "ErrorDescription": "sample string 2"
  },
  "CntKey": "sample string 1",
  "ServerName": "sample string 2"
}

text/html

Sample:
{"ErrorReport":{"ErrorCode":"sample string 1","ErrorDescription":"sample string 2"},"CntKey":"sample string 1","ServerName":"sample string 2"}

application/xml, text/xml

Sample:
<FPStartFlightSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FareportalResponse">
  <CntKey>sample string 1</CntKey>
  <ErrorReport>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorDescription>sample string 2</ErrorDescription>
  </ErrorReport>
  <ServerName>sample string 2</ServerName>
</FPStartFlightSearchResponse>