Flight PNR Retrieve
To retrieve the PNR, you'll need to create a flight PNR retrieve request. An PNR retrieve request describes the supplier locator and supplier account code to identify the supplier.
PNR retrieve request consists with mainly supplierLocator
, supplierAccountCode
and tripType
details.
PNR retrieve response have mainly the flightSegments
and passengers
information.
Create a flight PNR retrieve request
The Travlinq will send your supplierLocator to the respective GDS and return your results back to you with flightSegments and passengers details.
Inside flight result will include a list of one or more specific flight segments (called segments) based on married indicator for PNR Import and on TST/FQ/PQ number for PNR Sync with the passengers details.
When presenting result to your customers, you should always show the full name of the operating carrier of each segment (flight[].flightsegments[].operatingAirline
). This must be displayed prominently on the first screen where the flight is presented in order to comply with US regulations.
Flight PNR Retrieve Request
Tag | Attributes | Description |
---|---|---|
supplierLocator | supplierLocator* (String) |
Supplier Locator/GDS PNR |
supplierAccountCode | supplierAccountCode (String) |
To uniquely identify supplier that will be provided by travlinq. Generally we set PCC as a supplier account code. |
tripType | tripType (String) |
This attribute contains the trip type. PI, PS PI for generate ticket for given PNR. PS for sync ticket for given PNR. |
Flight PNR Retrieve Request | |
---|---|
Flight PNR Retrieve Response
Tags | Attribute | Description |
---|---|---|
meta | meta (Object) |
|
success (String) |
Response status will be return Ex: "true" | |
statusCode (Boolean) |
Response statusCode will be return Ex: "1" | |
statusMessage (String) |
Response statusMessage will be return Ex: "SUCCESS" | |
commonData | commonData (String) |
This tag describes common data section in the response |
productCode* (String) |
Product code of the item being booked,Flight -A | |
searchKey* (String) |
A unique search id will be returned in the search response. | |
data | data (Object) |
Common details for the specific flight should be included here |
offerId* (String) |
A unique offer id will be returned in the search response per each resul.This should be used all subsequent API calls for identify user selected result.The offerId is a combination of search id and result id. Ex : offerId= AIR03019045-67. |
|
detail | detail (Object) |
Common details for the specific flight should be included here |
ancillaryDetailsAvailable (Boolean) |
This attribute shows whether ancillary details available | |
fareRuleMandatory (Boolean) |
This flag enables in two scenarios.i.e when additional important notes are available or fare rule call is mandatory from supplier.If this is true then from the fare rule API call relevant notes can be taken and also booking rules validation will be enabled and do the mandatory information validation in provisional book. Hence if this is true then fare rule API call is mandatory*. |
|
lcc (Boolean) |
This attribute shows whether fair is low cost carrier | |
apis (Boolean) |
This attribute indicate whether passenger Passport details are required or not during booking flow for the relevant supplier | |
ndc (Boolean) |
New Distribution Capability(ndc) fare | |
onHoldSupported (Boolean) |
This tag should contain an indicator for whether holding supporting or not . For some suppliers(GDS) this value will be received from master data but for some suppliers(LCC) it will receive from Fare rule call. if fareRuleMandatory is true then check fare rule response onHoldSupported flag for further update. |
|
moreFaresAvailable (Boolean) |
journey | |
supplierLocator * (String) |
Supplier Locator | |
journey | journey ( List) |
Journey information should be included in a list of journey type objects |
flight | flight (List) |
Segment reference and flight related information should be included. |
flightKey * (String) |
An unique identifier will be added as the flight key | |
stopQuantity (String) |
This attribute indicates total number of stops in Journey 2 |
|
flightInfo | flightInfo (Object) |
Duration and distance fields are added as the flight information |
duration (String) |
This attribute indicates onward and return duration in days,hours and minutes 1D5H20M. If duration is less than 24h then format is like 5H20M. If duration is less than 24h then Day component will not be available. |
|
distance | distance (Object) |
This attribute indicates onward and return distance as value and unit pair |
value (Integer) |
value of the distance Not released yet |
|
unit (String) |
unit of the distance Not released yet |
|
segmentReference | segmentReference * (Object) |
This attribute indicates the from to airport details |
onPoint * (String) |
On Point iata code | |
offPoint * (String) |
Off Point iata code | |
flightSegments | flightSegments * (List) |
This attribute indicates all the segment related properties |
segmentKey* (String) |
An unique identifier will be added as the segment key. a590892f-48d0-4c0b-b552-2f00d394a67c |
|
departureAirportCode * (String) |
This attribute indicates IATA code of flight departure. DXB |
|
departureDateTime * (String) |
This attribute indicates Flight DepartureDate and Time. 20120417T0940 |
|
departureTerminal (String) |
Terminal of departing airport 1 or 1 or Terminal1 |
|
arrivalAirportCode * (String) |
This attribute indicates IATA code of flight arrival. LHR |
|
arrivalDateTime * (String) |
This attribute indicates flight arrival date and Time. 20120417T0940 |
|
arrivalTerminal (String) |
Terminal of arrival airport 1 or 1 or Terminal1 |
|
duration (String) |
This attribute indicates onward and return duration in days,hours and minutes 1D5H20M. If duration is less than 24h then format is like 5H20M. If duration is less than 24h then Day component will not be available. |
|
flightNumber* (String) |
This attribute indicates your flight number for the particular leg. 0556 |
|
status (String) |
This attribute indicates the status of the segment. HS,HK |
|
resBookDesigCode (String) |
This attribute indicates the booking class C,B |
|
numberInParty (String) |
This attribute indicates the number of passengers 2 |
|
operatingAirline (String) |
This attribute indicates the operating airline. BA |
|
marketingAirline * (String) |
This attribute indicates the marketing airline GF |
|
fareBasis (String) |
Shows the leg wise fare basis | |
equipmentType (String) |
||
baggageAllowance | baggageAllowance (Object) |
Baggage allowance for the particular flight |
key (String) |
Additional property details need to be added | |
value (String) |
||
description (String) |
||
carryOnBaggage | carryOnBaggage (Object) |
Carry on baggage descriptions. |
paxType (String) |
Pax type related to the baggage type. |
|
value (String) |
Value of the particular baggage |
|
unit (String) |
Number of units |
|
description (String) |
Baggage description |
|
checkedInBaggage | checkedInBaggage (Object) |
Checked in baggage description |
paxType (String) |
Pax type related to the baggage type. Pax type code. ADT,CHD,INF |
|
value (String) |
Value of the particular baggage | |
unit (String) |
Number of units | |
description (String) |
Baggage description | |
flightServices | flightServices (List) |
|
flightService | flightService (Object) |
|
name (String) |
||
code (String) |
||
flightRatings | noOfObservations (Integer) |
Not released yet |
onTimeObservations (Integer) |
Not released yet | |
late30observations (Integer) |
Not released yet | |
flightsCancelled (Integer) |
Not released yet | |
onTimePercentage (Double) |
Not released yet | |
delayObservations (Integer) |
Not released yet | |
meanDelay (Integer) |
Not released yet | |
onTimePercentile (Integer) |
Not released yet | |
onTimeStars (Integer) |
Not released yet | |
delayStars (Double) |
Not released yet | |
overallStars (Double) |
Not released yet | |
financialInfo | financialInfo (Object) |
Financial info related to the particular search result |
tmc | This tag contains supplier owner name. tmc - Travel Management Company. Eg: VE |
|
supplier | This tag contains the supplier name. | |
subSupplierCode | This tag contains the supplier pcc | |
payment | payment (Object) |
|
paymentTypes (List) |
This attribute indicates the payment types.Ex: CARD,CR |
|
paymentNetwork (List) |
This attribute indicates the payment network. "CA","VI", "AX" |
|
passengers | passengers (Object List) |
Traveller information should be updated in this tag and it's attributes. |
passengerKey (String) |
passengerKey need to be passed from the front end integrator. | |
ptc (String) |
Passenger type. ADT,CHD,INF |
|
infantRef (String) |
Not released yet In booking create , this attribute is used to associate an infant (not requiring a seat) to an adult. Specify the infant passenger’s Example: INF1 Where INF1 is infant passenger’s booking create, it must be passed if the request includes INF passenger, as the service needs to know which Infant is associated with which Adult However Travlinq API current version, INF associate with Lead Pax. |
|
passengerInfo | passengerInfo (Object) |
Following attributes describes the passenger dob and name details. |
birthDate (String) |
This attribute indicates the passenger birth date | |
gender (String) |
This attribute indicates the passenger Gender | |
nameTitle (String) |
This attribute indicates the passenger Title | |
givenName (String) |
This attribute indicates the passenger Given name | |
middleName (String) |
This attribute indicates the passenger Middle name | |
surname (String) |
This attribute indicates the passenger Surname | |
loyaltyProgramAccount | loyaltyProgramAccount (Object) |
Loyalty program information can be included here Not released yet |
airlineDesignator (String) |
Not released yet |
|
accountNumber (String) |
Not released yet |
|
providerName (String) |
Not released yet |
|
programName (String) |
Not released yet |
|
tierCode (String) |
Not released yet |
|
identityDocuments | identityDocuments (String) |
Any document which may be used to identify a person or verify aspects of a person's personal identity. The possible values are: PT - Passport 709 - National ID card AEA - Passenger's Redress Number CR - Known Traveller Number) *But currently API support only for Passport (PT) |
idDocumentNumber (String) |
This attribute contains the Identity document number Ex ; Passport Number. |
|
idType (String) |
This attribute contains the id type. Currently API stamping passport(PT) detail only, All other document types are on future scope . | |
issuingCountryCode (String) |
This attribute contains the issuing country code. | |
residenceCountryCode (String) |
This attribute contains the origin resident code. | |
expiryDate (String) |
Identity document expiry date. Ex ; Passport expiry date. |
|
applicableCountry (String) |
This attribute indicates the doc applicable Country | |
placeOfBirth (String) |
This attribute indicates place Of birth | |
contact | contact (Object) |
Passenger contact information need to be updated here. |
postalAddress | postalAddress (Object) |
|
label (String) |
||
street (String) |
||
postalCode (String) |
||
cityName (String) |
||
countryCode (String) |
||
contactsProvided | contactsProvided (Object) |
|
emailAddress (String) |
||
phone | phone (Object) |
|
label (String) |
||
areaCode (String) |
||
phoneNumber (String) |
||
airlineRequests | airlineRequests (Object) |
|
ssr | ssr (Object) |
A Special Service Request (SSR) is a message sent directly to suppliers to communicate traveler preferences, special services needed by a traveler, or of a procedural requirement necessary of the carrier |
name (String) |
Ex; Meal ,seat | |
code (String) |
Ex; Meal code is 'AVML' Seat code is 'W' |
|
text (String) |
||
segmentKey (List) |
||
osi | osi (Object) |
Other Service Information (OSI) requests are messages sent directly to the supplier to communicate traveler preferences or requirements. OSIs are used only for air segments. OSIs are typically used to notify a supplier of special circumstances such as a passenger that does not speak the local language. |
name (String) |
Ex: OSI | |
code (String) |
Ex: OSI | |
segmentKey (String) |
UUID will be generated and added as segment key. |
Flight PNR Retrieve Response | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
|