Search

Get the list of flights and segment details alongwith price

Parameter Description

Request Parameters

Parameter NameMandatory/OptionalDescription
user_idMandatoryId of the partner; will be shared during onboarding
user_typeMandatoryDefault value = 3
trip_typeMandatoryOne Way - "O"
Return - "R"
Special/Multi-city - "S"
adult_countMandatoryCount of adults travelling
child_countOptional
infant_countOptional
class_typeMandatoryType of travel in flight:
1. "Economy"
2. "Premium Economy"
3. "Business"
departure_dateMandatoryDate of travel
Format is as follows: "DD/MM/YYYY"
For example: "20/02/2020"
originMandatoryOrigin Airport Code
For example:
1. Mumbai - "BOM"
2. Delhi - "DEL"
origin_countryMandatoryOrigin Country Code
destinationMandatoryDestination Airport Code
destination_countryMandatoryDestination Country Code
domestic_or_internationalMandatory1. Domestic Travel - "D"
2. International Travel - "I"
channel_typeMandatoryDefault value is 8

📘

Please Note

  1. Origin/Destination Value- You can retrieve these values from Airports API
  2. Adult Count + Child Count cannot exceed 9. And there must be one adult for each infant.

Response Parameters

Parameter NameDescription
pnb_search_ref_idUnique Search Ref Id for tracking a booking
flight_fare_datacontains all details related to each flight
tfTotal Fare
tf_with_markupTotal Fare With Markup Amount
total_markupTotal Markup Amount
qtQuantity - ADT|CHD|INF Count given in search request
bgaBaggage
aacArrival Airport Code
acAirline code
adArrival Time
adtArrival Date
atArrival Terminal
dacDeparture Airport Code
ddtDeparture Time
dtDeparture Date
duDeparture Terminal
flFlight Number
ftFare Type - Refundable or Non Refundable
mlMeal
slSeats Left
vcValidating carrier

Error Codes

Error CodeDescription
101Adult count cannot be 0
102Infant count cannot be greater than adult count
103Adult count + child count must be less than 9
104Agent Id cannot be empty
105From date cannot be empty
106To date cannot be empty for a round trip
107Origin cannot be empty
108Destination cannot be empty
109Flying class cannot be empty
110From date must be greater than or equal to current date
111To date must be greater than or equal to from date
112Origin country cannot be empty
113Destination country cannot be empty
114 Trip type cannot be empty. Send either O for one way or R for round.
Invalid Trip Type - Send either O for one way or R for round.
115Invalid Trip Type - Send either O for one way or R for round.
116Request type cannot be empty. Send either D for Domestic or I for International
117Invalid Request Type. Send either D for Domestic or I for International
118Channel Type Cannot Be Empty
Language
Credentials
Header
Click Try It! to start a request and see the response here!