Links nodes

Sabre® REST APIs have one or more Links nodes that combine related URI resources in a response. Client applications can interact with these links by using hypermedia  that the Sabre® servers provide dynamically.

Some APIs also have a Links node within each grouping of data to invoke API requests. For example, the Lead Price Calendar API has a Links node within each group of lead fares on specific travel dates to invoke an API that retrieves flight itineraries.

Our REST APIs include a Links node at the end of every response.

shop link

An example of a shop link within a grouping of data in a response is shown as follows.

{
  "LowestFare": 461.6,
  "CurrencyCode": "USD",
  "LowestNonStopFare": 
 617.8,
  "DepartureDateTime": 
 "2013-03-03T00:00:00",
  "ReturnDateTime": 
 "2013-03-08T00:00:00",
  "Links": 
 [{    "rel": 
 "shop",
    "href": 
 "https://api.sabre.com/v1/shop/flights?origin=ATL&destination=LAS&departuredate=2013-03-03&returndate=2013-03-08"
  }]

In this example, the shop link invokes the InstaFlights Search API. It uses the origin and destination parameters in the Lead Price Calendar request and dates of travel in the response.

self and linkTemplate links

All successful responses have a self link and linkTemplate at the end of the response. An example of self and linkTemplate objects is shown as follows.

},
"Links": [{
  "rel": 
 "self",
  "href": 
 "https://api.sabre.com/v1/shop/flights/fares?origin=ATL&destination=LAS&lengthofstay=5"
},
{
  "rel": 
 "linkTemplate",
  "href": 
 "https://api.sabre.com/v1/shop/flights/fares?origin=<origin>&destination=<destination>&lengthofstay=<lengthofstay>&minfare=<minfare>&maxfare=<maxfare>"
}]

The self object is the complete URL of the request that generated the response.

The linkTemplate object is the complete for the API request. The request includes a set of angle brackets (< >) for all required and optional parameters.

Docs Navigation