Reservation Retrieve Guide

A reservation is a general term for a bookingClosed A confirmed reservation with the carrier. A held booking is a reservation that has not yet been ticketed. The terms booking and reservation are interchangeable. and all associated details about that booking. This guide details the reservation retrieve, which is used to verify booking details after the reservation is created. The reservation retrieve response is also returned at the end of any workbench commit. Frequently, information returned in the reservation retrieve must be sent in subsequent transactions, including ticketing and exchanges.

Related Content: JSON APIs Guide, Booking Guide, Reservation Retrieve API Reference, Ticketing Guide

In this topic:

Multi-Content Bookings

The Reservation Retrieve and Create Post-Commit Workbench responses return air, hotel, and/or car segments for any reservation that includes that content, called a multi-content booking. All segments must have been booked with the JSON Air APIs, JSON Hotel APIs, JSON Car APIs (full release pending), or a terminal program. You can also add either GDSClosed Global Distribution System. A GDS aggregates and distributes air, hotel, and car rental content such as schedules, fares, and upsells. In the JSON APIs, GDS content is distributed from Travelport. or NDCClosed New Distribution Capability, an XML standard for exchanging data that supports airlines in distributing their content directly to online travel agencies. See the NDC Guide. air offers to a hotel and/or car booking. See the Booking Guide for Air, Hotel, & Car for workflows.

Basic Concepts

A reservation is generated when the workbench is committed as the last step of the booking workflow. From that point on, the entire record of all details added during the booking workflow is collectively referred to as the reservation. A reservation is also called a booking.

Many agents and customers use the term PNRClosed Passenger Name Record. Unique six-digit alphanumeric number that identifies a booking, e.g. JS7GH4. Sometimes used to refer to the booking record itself. Because the term PNR is specific to GDS, this online help uses the more generic term "reservation locator". for a reservation. Because PNR is specific to GDS only and is not used for NDC bookings, this online help uses the more generic terms reservation or booking instead.

A reservation must still be ticketed for fulfillment, and will expire if it isn't ticketed within a limited time. In this documentation, the terms reservation and booking are generally used when the ticket has not yet been issued.

The booking process uses a workflow of multiple calls to create a workbench, add details about the traveler/s and the offerClosed In the JSON Search APIs, an offer is a product available at a specific price under a set of terms and conditions. An offer includes the flight or connecting flights for one leg of the itinerary, plus a service level that includes the cabin class and any fare codes that may apply. At booking, the selected offer from the Search response - including the flight/s, service level, price, terms and conditions, and brand if applicable - is converted into a single Offer object that is subsequently returned for that booking., and commitClosed API call that ends a workbench session, finalizing all changes and requests in that session. Depending on the workbench transactions, the commit workbench request may create a reservation, issue a ticket or EMD, exchange tickets, or modify a reservation. the workbench to ticket the reservation. Optional steps include sending comments, and adding seats and/or a paid ancillary. Committing the workbench creates a booking and a unique alphanumeric reservation locatorClosed Unique six-character alphanumeric code returned for a successful booking, e.g. JS7GH4. For NDC the airline returns an additional locator code, which can be called the vendor locator code. Sometimes called a PNR and used to refer to the booking record as a whole, but because the term PNR is specific to GDS, this online help uses the more generic terms "booking" for the booking record and "reservation locator" for the six-character code. code to identify that booking.

Select information on the reservation can be added, deleted, or updated prior to ticketing. See the Traveler Modify Guide
Group bookings are not supported in the JSON APIs and are not returned in the Reservation Retrieve response.

Reservation Retrieve

While retrieving a reservation is not a required step, you should retrieve the reservation after booking to verify details. You may also need to retrieve a reservation before other actions such as ticketing, or after a booking has been ticketed to verify book and ticket details.

The information returned in the Reservation Retrieve response varies depending on what data is in the reservation at the time of retrieve, whether the reservation has been ticketed, and whether the reservation was created by or outside of the Travelport JSON APIs.

Reservation Retrieve Response

The information returned in the Reservation Retrieve response varies depending on what details have been added to the reservation at the time of retrieve, whether the reservation has been ticketed, and whether the reservation was created outside of the Travelport JSON APIs.

Generally, the Reservation Retrieve returns:

Reservation Retrieve Layout Diagram

The following diagram illustrates the general structure of the Reservation Retrieve request and response, including most high-level objects. Note this diagram includes the Payment object, which is returned only after ticketing.

 

Requesting Fare Rules

Optionally, to request long fare rules, add the following to the header of your retrieve request:

“fareRuleRetrievalType”:”long”,

The response returns fare rules in the existing TermsAndConditionsFull object in a TextBlock object with the following key value pairs:

Complex international itineraries may not provide a complete fare rule description.

Fare rules may not be returned for offers with multiple passengers and/or multiple fare rule types.

Requesting Detail View (returns remarks and custom rules)

Sending the detailViewInd query parameter set to true requests the following additional details in the retrieve:

  • Any document override, accounting, historical, and/or DOCI remarks added to a reservation.

  • Any custom rules added to a reservation.

If not sent the default is false.

https://api.pp.travelport.com/11/air/book/reservation/reservations/{LocatorCode}?detailViewInd=true

For {LocatorCode} send the locator code of the reservation to retrieve (returned in the workbench commit in Confirmation/Locator/value).

Ticketless Carriers

The following are returned in the reservation retrieve for ticketless carriers Frontier (F9), Spirit (NK), and Sun Country Airlines (SY):

  • Fare details including total fare, fare remarks, and OSI OTHS remarks.
  • The single ticket number for all travelers.
The reservation includes this information only after it is returned from the airline, which may be delayed for several hours after booking.

Bookings with Air, Hotel, and Car Content

The Reservation Retrieve and Create Post-Commit Workbench responses return air, hotel, and/or car segments for any reservation that includes that content, called a multi-content booking. All segments must have been booked with the JSON Air APIs, JSON Hotel APIs, JSON Car APIs (full release pending), or a terminal program. You can also add either GDS or NDC air offers to a hotel and/or car booking. See the Booking Guide for Air, Hotel, & Car for workflows.

With this release, all reservations - regardless of their content - return the ReservationDisplaySequence object. This object helps you to accurately represent a traveler itinerary by returning details of the sequence of each offer in the response. For each product, ReservationDisplaySequence returns an instance of DisplaySequence with the following details:

In the following example excerpt, the instances of DisplaySequence with displaySequence values 1 and 3 are the air segments, displaySequence 2 is the hotel segment, and displaySequence 4 is the car segment. See the examples in the Booking Guide for Air, Hotel, & Car for the full response.