Deep Link - Flight

Table I: Mandatory Parameters

The deep link syntax for a stand-alone flight search with only mandatory parameters is as follows:

http://[localhost]/UI_NET/Products/Flight/Flight.aspx?FlightMode=[Flight mode option]&LeavingFrom=[IATA code of departure]&GoingTo=[IATA code of arrival]&Departing=[ddMMMyy]&NumberOfAdults=[X]

 

An example of the above syntax populated with values is as follows:

http://www.companyTBsite.com/ui_net/Products/Flight/Flight.aspx?FlightMode=1&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19&Returning=23MAR19&NumberOfAdults=2

Parameter Name

Description

Mandatory

Example of Use

localhost

URL of your website

Yes

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&Returning=23MAR19&NumberOfAdults=2

FlightMode

Flight mode option:

  • RoundTrip or 0

  • OneWay or 1

  • MultiCity or 2

Yes

Round trip

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=0
&LeavingFrom=LHR&GoingTo=AMS
&Departing=15MAR19&Returning=23MAR19
&NumberOfAdults=2

One way

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS
&Departing=15MAR19&NumberOfAdults=2

Multi city

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=2
&LeavingFrom=LHR&GoingTo=AMS
&Departing=15MAR19&LeavingFrom2=AMS
&GoingTo2=JFK&Departing2=23MAR19
&NumberOfAdults=2

LeavingFrom

IATA code of departure airport

Yes

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&Returning=23MAR19&NumberOfAdults=2

GoingTo

IATA code of arrival airport

Yes

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&Returning=23MAR19&NumberOfAdults=2

Departing

Departure date:

Date format: ddMMMyy

Yes

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&Returning=23MAR19&NumberOfAdults=2

  • NumberOfAdults

  • NumberOfChildren

  • NumberOfSeniors

  • NumberOfInfants

  • The number of adults in the flight

  • The number of children in the flight

  • The number of seniors in the flight

  • The number of infants in the flight

You need to have one or more of these parameters

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS
&Departing=15MAR19&Returning=23MAR19
&NumberOfAdults=2&NumberOfAdults=2&
NumberOfSeniors=2&NumberOfInfants=2

 

Table II: Conditionally Mandatory and Optional Parameters

Parameter Name

Description

Mandatory

Example of Use

Returning

The return  date:

Date format: ddMMMyy

Yes if FlightMode = 1 or RoundTrip

http://www.companyTBsite.com/ui_net
/Products/Flight/Flight.aspx?FlightMode=1
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&Returning=23MAR19&NumberOfAdults=2

LeavingFrom[2..X]

IATA code of departure airport for additional legs.

2 is for the second leg of the flight, 3 is for the third leg of the flight, and each additional number adds another leg to the flight.

Yes if FlightMode = 2 or MultiCity

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=2
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&LeavingFrom2=AMS&GoingTo2=JFK&Departing2=23MAR19
&LeavingFrom3=JFK&GoingTo3=JORD&Departing3=27MAR19
&LeavingFrom4=ORD&GoingTo4=LAX&Departing4=03APR19
&NumberOfAdults=2

GoingTo[2..X]

IATA code of arrival airport for additional legs.

2 is for the second leg of the flight, 3 is for the third leg of the flight, and each additional number adds another leg to the flight.

Yes if FlightMode = 2 or MultiCity

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=2
&LeavingFrom=LHR&GoingTo=AMS&Departing=15MAR19
&LeavingFrom2=AMS&GoingTo2=JFK&Departing2=23MAR19
&LeavingFrom3=JFK&GoingTo3=ORD&Departing3=27MAR19
&LeavingFrom4=ORD&GoingTo4=LAX&Departing4=03APR19
&NumberOfAdults=2

Departing[2..X]

The departure date for additional legs.

Date format: ddMMMyy

2 is for the second leg of the flight, 3 is for the third leg of the flight, and each additional number adds another leg to the flight.

Yes if FlightMode = 2 or MultiCity

http://www.companyTBsite.com/ui_net/
Products/Flight/Flight.aspx?FlightMode=2
&LeavingFrom=LHR&GoingTo=AMS&
Departing=15MAR19&LeavingFrom2=AMS
&GoingTo2=JFK&Departing2=23MAR19&
LeavingFrom3=JFK&GoingTo3=ORD&
Departing3=27MAR19&LeavingFrom4=ORD
&GoingTo4=LAX&Departing4=03APR19
&NumberOfAdults=2