Skip to content

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.

/api/v1/reservation/flight-pnr-retrieve  

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
1
2
3
4
5
{
    "supplierLocator": "JRQKUD",
    "supplierAccountCode": "NCEPF3141",
    "tripType": "PI"
}

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
{
    "meta": {
        "success": true,
        "statusCode": 1,
        "statusMessage": "SUCCESS",
        "actionType": "Air pnr retrieve",
        "conversationId": "aa6e9e2d-c7ea-4918-9114-575c16668b5b"
    },
    "commonData": {
        "searchKey": "PNR_SYNCID:3026878",
        "productCode": "A"
    },
    "data": [
        {
            "offerId": "PNR_SYNCID:3026878",
            "detail": {
                "ancillaryDetailsAvailable": true,
                "lcc": false,
                "apis": true,
                "ndc": false,
                "onHoldSupported": false,
                "moreFaresAvailable": false,
                "reissueSupported": true,
                "supplierLocator": "JRQKUD",
                "airlineLocators": [
                    {
                        "airline": "LH",
                        "airlineLocator": "JRQKUD"
                    }
                ],
                "fareRuleMandatory": false
            },
            "supplierLocator": "JRQKUD",
            "journey": [
                {
                    "flight": {
                        "flightKey": "11236943-f283-4f8b-a397-10cc3a2beb99",
                        "flightInfo": {
                            "duration": ""
                        },
                        "segmentReference": {
                            "onPoint": "DXB",
                            "offPoint": "FRA"
                        },
                        "stopQuantity": 0
                    },
                    "flightSegments": [
                        {
                            "segmentKey": "6096743f-0dff-4284-934d-57301335ad80",
                            "departureAirportCode": "DXB",
                            "departureDateTime": "2024-05-15T01:50:00",
                            "departureTerminal": "1",
                            "arrivalAirportCode": "FRA",
                            "arrivalDateTime": "2024-05-15T07:05:00",
                            "arrivalTerminal": "1",
                            "duration": "7H15M",
                            "flightNumber": "631",
                            "layoverTime": "",
                            "status": "HK",
                            "resBookDesigCode": "V",
                            "numberInParty": 3,
                            "operatingAirline": "LH",
                            "marketingAirline": "LH",
                            "equipmentType": "359",
                            "cabinClass": "Economy"
                        }
                    ]
                }
            ],
            "financialInfo": {
                "tmc": "",
                "supplier": "Amadeuswspremium",
                "subSupplierCode": "3188_1A_test"
            },
            "passengers": [
                {
                    "passengerKey": "ca8fd0b6-fab6-44c0-9616-fc704ffdad79",
                    "ptc": "ADT",
                    "passengerInfo": {
                        "birthDate": "",
                        "gender": "M",
                        "nameTitle": "Mr",
                        "givenName": "JASWANT",
                        "surname": "NAHAR"
                    },
                    "identityDocuments": [],
                    "contact": {
                        "contactsProvided": [
                            {
                                "phone": [
                                    {
                                        "label": "Origin",
                                        "areaCode": "+971",
                                        "phoneNumber": "58566455"
                                    }
                                ]
                            }
                        ]
                    },
                    "airlineRequests": {
                        "ssr": [
                            {
                                "name": "CTCMOSI",
                                "code": "CTCMOSI",
                                "text": "97158566455"
                            },
                            {
                                "name": "CTCEOSI",
                                "code": "CTCEOSI",
                                "text": "K.JASWANT@VESIMPLIFY.COM"
                            }
                        ],
                        "osi": [
                            {
                                "name": "CTCE",
                                "code": "CTCE",
                                "text": "K.JASWANT@VESIMPLIFY.COM"
                            }
                        ]
                    }
                },
                {
                    "passengerKey": "4cbb10ef-34b5-4078-96b9-07afb0d3e71d",
                    "ptc": "CHD",
                    "passengerInfo": {
                        "birthDate": "2018-11-21",
                        "gender": "M",
                        "nameTitle": "Mstr",
                        "givenName": "JASRAJ",
                        "surname": "NAHAR"
                    },
                    "identityDocuments": [],
                    "contact": {
                        "contactsProvided": [
                            {
                                "phone": []
                            }
                        ]
                    },
                    "airlineRequests": {
                        "ssr": [
                            {
                                "name": "CTCEOSI",
                                "code": "CTCEOSI",
                                "text": "K.JASWANT@VESIMPLIFY.COM"
                            }
                        ],
                        "osi": [
                            {
                                "name": "CTCE",
                                "code": "CTCE",
                                "text": "K.JASWANT@VESIMPLIFY.COM"
                            }
                        ]
                    }
                },
                {
                    "passengerKey": "a4db4447-0f10-41c7-833e-1bed8c34ed34",
                    "ptc": "INF",
                    "passengerInfo": {
                        "birthDate": "2023-08-08",
                        "nameTitle": "Inf",
                        "givenName": "MIYA",
                        "surname": "NAHAR"
                    },
                    "identityDocuments": [],
                    "contact": {
                        "contactsProvided": [
                            {
                                "phone": []
                            }
                        ]
                    },
                    "airlineRequests": {
                        "ssr": [],
                        "osi": []
                    }
                }
            ]
        }
    ],
    "version": "1.0.0"
}