Don't see what you need? Submit a request

Sample 1: Requesting UPAs

Austin Schneider -

Universal Product Attributes (UPAs) describe all aspects of the tangible and intangible experience of a flight, targeted down to the flight cabin and further segmented by category and fare_type (fare brand and or RBD code). Each UPA represents a single product attribute with descriptive text, an icon, photos, videos, virtual tours, and a link to more information. Below is an example request and response for requesting UPAs only.

Request

curl \
  -H "Auth: YOUR_API_KEY" \
  -H "Accept: application/vnd.routehappy+json" \
  -H "Accept-language: en" \
  -G \
  -d "filter[key]=YYC-YYZ-TS-882-20170911-ECON~YYZ-AMS-TS-350-20170911-ECON" \
  -d "include=leg_segments.upas" \
  "YOUR_HOST/legs"

Response

{
  "data": [
    {
      "type": "leg",
      "id": "3361581-1~3360432-1",
      "attributes": {
        "key": "YYC-YYZ-TS-882-20170911-ECON~YYZ-AMS-TS-350-20170911-ECON"
      },
      "relationships": {
        "leg_segments": {
          "data": [
            {
              "type": "leg_segment",
              "id": "3361581-1~3360432-1/0"
            },
            {
              "type": "leg_segment",
              "id": "3361581-1~3360432-1/1"
            }
          ]
        }
      }
    }
  ],
  "included": [
    {
      "type": "leg_segment",
      "id": "3361581-1~3360432-1/0",
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200419"
            },
            …
          ]
        }
      }
    },
    {
      "type": "leg_segment",
      "id": "3361581-1~3360432-1/1",
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200421"
            },
            …
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200415",
      "attributes": {
        "headline": "Our redesigned cabin",
        "description": "With a brand new Economy Class, mood lighting and a personal entertainment system — it’s a whole new inflight experience.",
        "small_icon_url": "http://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/small/eco.png",
        "large_icon_url": "http://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/large/eco.png",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Our-fleet/Our-redesigned-cabin",
        "categories": [
          "aircraft",
        ],
        "fees": [

        ]
      }
    },
…
Have more questions? Submit a request