Next Leg Search API Reference

POST

catalog/search/catalogproductofferings/buildnext

Base path:

Pre-production https://api.pp.travelport.com/11/air/

Production https://api.travelport.com/11/air/

Related Content: Air Shopping Guide, Search Workflow Diagrams

Use the Next Leg Search API to return offers for the next leg of an itinerary after a leg-based round-trip Search. A leg-based Search response returns offers for only the outbound leg of the itinerary, and Next Leg Search is then required to return offers for the next leg of the trip.

For a multi-city itinerary, send an additional Next Leg Search request for each remaining leg. GDS supports searching for up to six O&D pairs (legs of the itinerary) while three are supported for NDC.

Any modifiers or indicators sent in the Search request carry over to the Next Leg Search request and are not re-sent.

Request

Query Parameters

None.

Request Body

The Next Leg Search request payload sends identifiers for the preceding search response and the offer and product to select for the first leg.

Response

The Next Leg Search response uses the same structure and returns the same objects as the Search response. The only differences are:

  • The first instance of CatalogProductOffering (id o1) is the offer and product sent in the Next Leg Search request. This is the selected offer and product for the first leg.
  • Subsequent instances of CatalogProductOffering are offers for the second leg.

Example Request

For additional examples and scenarios, download the developer toolkits and see Using Postman and Developer Toolkits.

The Next Leg Search example request below is a follow-on request to a preceding round-trip leg-based Search request; see the Search API Reference for the example request that would be sent before this request. This request sends the transaction identifier from the response to that request (CatalogProductOfferingsIdentifier/Identifier) and sends identifiers for the offer and product from that response to select for the first leg of the itinerary (CatalogProductOfferingIdentifier for the offer and ProductIdentifier for the product).

Example Response

The Next Leg Search example request below is an excerpt from the response to the above request. It is an excerpt through the end of the offers in CatalogProductOfferings and does not include ReferenceList data for brevity.

This example returns two instances of CatalogProductOffering:

  • The first instance, with id o1 and sequence 1, is the outbound leg selection sent in the request. It does not return upsells, as the fare for this leg has already been selected by sending a product identifier.

  • The second instance of CatalogProductOffering, with id o2 and sequence 2, returns the options for the second leg of the itinerary.

For brevity, , and the ReferenceList object and all but two instances of ProductBrandOptions for the second CatalogProductOffering have been edited out of the excerpt.