Create Passenger Name Record

The Create Passenger Name Record API is an orchestrated API that bundles several functions and operations into a single API call. This API specifically provides the capability to create a Passenger Name Record (PNR) including air segments in a single call.

API Information

Target Audience
All Sabre APIs Customers
Current Version
v1.0.0
Authentication
Sessionless Token
Method/Endpoint
POST /v1.0.0/passenger/records?mode=create HTTP/1.1

Resources

Ready to try the APIs?

Ready to get your hands dirty?

 Register Try the APIs

Ready to launch?

Ready to step up to the production level service? We're standing by to fit you for your spacesuit.

Request Production Key

Example: request and response

The following example demonstrates a request to book a flight and create a passenger name record (PNR).

Sample request

POST https://api.sabre.com/v1.0.0/passenger/records?mode=create HTTP/1.1
{
    "CreatePassengerNameRecordRQ": {
        "targetCity": "PCC",
        "TravelItineraryAddInfo": {
            "AgencyInfo": {
                "Address": {
                    "AddressLine": "SABRE TRAVEL",
                    "CityName": "SOUTHLAKE",
                    "CountryCode": "US",
                    "PostalCode": "76092",
                    "StateCountyProv": {
                        "StateCode": "TX"
                    },
                    "StreetNmbr": "3150 SABRE DRIVE",
                    "VendorPrefs": {
                        "Airline": {
                            "Hosted": true
                        }
                    }
                },
                "Ticketing": {
                    "TicketType": "7TAW"
                }
            },
            "CustomerInfo": {
                "ContactNumbers": {
                    "ContactNumber": [{
                        "NameNumber": "1.1",
                        "Phone": "817-555-1212",
                        "PhoneUseType": "H"
                    }]
                },
                "PersonName": [{
                    "NameNumber": "1.1",
                    "NameReference": "ABC123",

                    "GivenName": "JOHN",
                    "Surname": "DOE"
                }]
            }
        },
        "AirBook": {
            "OriginDestinationInformation": {
                "FlightSegment": [{
                    "ArrivalDateTime": "2016-12-20T08:44",
                    "DepartureDateTime": "2016-12-20T07:25",
                    "FlightNumber": "2401",
                    "NumberInParty": "1",
                    "ResBookDesigCode": "F",
                    "Status": "NN",
                    "DestinationLocation": {
                        "LocationCode": "LAX"
                    },
                    "MarketingAirline": {
                        "Code": "AA",
                        "FlightNumber": "2401"
                    },
                    "MarriageGrp": "O",
                    "OriginLocation": {
                        "LocationCode": "DFW"
                    }
                }]
            }
        },
        "SpecialReqDetails": {
            "SpecialService": {
                "SpecialServiceInfo": {
                    "Service": [{
                        "SSR_Code": "OTHS",
                        "Text": "CC MARCIN LACHOWICZ"
                    }]
                }
            }
        },
        "PostProcessing": {
            "RedisplayReservation": true,
            "EndTransaction": {
                "Source": {
                    "ReceivedFrom": "TEST USER"
                }
            }
        }
    }
}

Sample response

{
    "CreatePassengerNameRecordRS": {
        "ApplicationResults": {
            "status": "Complete",
            "Success": [{
                "timeStamp": "2016-09-21T09:46:38.600-05:00"
            }],
            "Warning": [{
                "type": "BusinessLogic",
                "timeStamp": "2016-09-21T09:46:38.266-05:00",
                "SystemSpecificResults": [{
                    "Message": [{
                        "code": "WARN.SWS.HOST.WARNING_RESPONSE",
                        "content": "TTY REQ PEND"
                    }]
                }]
            }]
        },
        "ItineraryRef": {
            "ID": "WXZIWO"
        },
        "AirBook": {
            "OriginDestinationOption": {
                "FlightSegment": [{
                    "ArrivalDateTime": "12-20T08:44",
                    "DepartureDateTime": "12-20T07:25",
                    "eTicket": true,
                    "FlightNumber": "2401",
                    "NumberInParty": "001",
                    "ResBookDesigCode": "F",
                    "Status": "SS",
                    "DestinationLocation": {
                        "LocationCode": "LAX"
                    },
                    "MarketingAirline": {
                        "Code": "AA",
                        "FlightNumber": "2401"
                    },
                    "OriginLocation": {
                        "LocationCode": "DFW"
                    }
                }]
            }
        },
        "TravelItineraryRead": {
            "TravelItinerary": {
                "CustomerInfo": {
                    "Address": {
                        "AddressLine": [{
                            "type": "N",
                            "content": "SABRE TRAVEL"
                        }, {
                            "type": "A",
                            "content": "3150 SABRE DRIVE"
                        }, {
                            "type": "C",
                            "content": "SOUTHLAKE, TX US"
                        }, {
                            "type": "Z",
                            "content": "76092"
                        }]
                    },
                    "ContactNumbers": {
                        "ContactNumber": [{
                            "LocationCode": "DFW",
                            "Phone": "817-555-1212-H-1.1",
                            "RPH": "001"
                        }]
                    },
                    "PersonName": [{
                        "WithInfant": "false",
                        "NameNumber": "01.01",
                        "NameReference": "ABC123",
                        "RPH": "1",
                        "GivenName": "MARCIN",
                        "Surname": "LACHOWICZ"
                    }]
                },
                "ItineraryInfo": {
                    "ReservationItems": {
                        "Item": [{
                            "RPH": "1",
                            "FlightSegment": [{
                                "AirMilesFlown": "1235",
                                "ArrivalDateTime": "12-20T08:44",
                                "DayOfWeekInd": "2",
                                "DepartureDateTime": "2016-12-20T07:25",
                                "ElapsedTime": "03.19",
                                "eTicket": true,
                                "FlightNumber": "2401",
                                "NumberInParty": "01",
                                "ResBookDesigCode": "F",
                                "SegmentNumber": "0001",
                                "SmokingAllowed": false,
                                "SpecialMeal": false,
                                "Status": "HK",
                                "StopQuantity": "00",
                                "IsPast": false,
                                "DestinationLocation": {
                                    "LocationCode": "LAX"
                                },
                                "Equipment": {
                                    "AirEquipType": "32B"
                                },
                                "MarketingAirline": {
                                    "Code": "AA",
                                    "FlightNumber": "2401"
                                },
                                "Meal": [{
                                    "Code": "B"
                                }],
                                "OriginLocation": {
                                    "LocationCode": "DFW"
                                },
                                "SupplierRef": {
                                    "ID": "DCAA*WXZIWO"
                                },
                                "UpdatedArrivalTime": "12-20T08:44",
                                "UpdatedDepartureTime": "12-20T07:25"
                            }]
                        }]
                    },
                    "Ticketing": [{
                        "RPH": "01",
                        "TicketTimeLimit": "TAW/"
                    }]
                },
                "ItineraryRef": {
                    "AirExtras": false,
                    "ID": "WXZIWO",
                    "InhibitCode": "U",
                    "PartitionID": "AA",
                    "PrimeHostID": "1S",
                    "Source": {
                        "AAA_PseudoCityCode": "PCC",
                        "CreateDateTime": "2016-09-21T09:46",
                        "CreationAgent": "AAS",
                        "HomePseudoCityCode": "PCC",
                        "PseudoCityCode": "PCC",
                        "ReceivedFrom": "TEST USER",
                        "LastUpdateDateTime": "2016-09-21T09:46",
                        "SequenceNumber": "1"
                    }
                },
                "SpecialServiceInfo": [{
                    "RPH": "001",
                    "Type": "GFX",
                    "Service": {
                        "SSR_Code": "SSR",
                        "SSR_Type": "OTHS",
                        "Airline": {
                            "Code": "YY"
                        },
                        "Text": [
                            "CC MARCIN LACHOWICZ"
                        ]
                    }
                }]
            }
        }
    },
    "Links": [{
        "rel": "self",
        "href": "https://api.sabre.com/v1.0.0/passenger/records?mode=create"
    }, {
        "rel": "linkTemplate",
        "href": "https://api.sabre.com/<version>/passenger/records?mode=<mode>"
    }]
}

Errors

A general HTTP status code is always returned. See the status codes and errors page for other common status codes and errors.

400 BAD REQUEST

The request was not valid.
The service does not support the data used in the request. For example, origin or destination in the request is not a valid IATA airport code.

If you receive this error:

{
          status: "NotProcessed"
          type: "Validation"
          errorCode: "ERR.2SG.CLIENT.INVALID_REQUEST"
          timeStamp: "2016-08-20T11:43:34.599-05:00"
          message: "Request is invalid: Request payload is missing or it is not supported by the requested service"
        }
      

Ensure you:

  • have specified a content type header with a value of 'application/json'
  • are sending a JSON document in the HTTP POST's request body

Docs Navigation