Sample 3: Requesting UPAs and related photos

Austin Schneider -

Most UPAs include one or more media items, including photos, videos, and 360° virtual tours and associated captions. Below is an example request and response for requesting UPAs and related photos only.

Request

curl \
"YOUR_HOST/legs_searches?include=legs.leg_fares.leg_fare_segments.upas.photo_attachments.photo" \
-X POST \
-H "Auth: YOUR_API_KEY" \
-H "Content-Type: application/vnd.routehappy+json" \
-H "Accept: application/vnd.routehappy+json" \
-H "Accept-language: en" \
-d '{
  "data": {
    "type": "legs_search",
    "attributes": {
      "legs": [
        {
          "key": "YYC-YYZ-TS-846-20180523-ECON~YYZ-AMS-TS-360-20180523-ECON"
        }
      ]
    }
  }
}'

Response

{
  "data": {
    "type": "legs_search",
    "id": "724a47a9-5314-0c4d-f30b-233a7c1a38aa",
    "relationships": {
      "legs": {
        "data": [
          {
            "type": "leg",
            "id": "1~2",
            "meta": {
              "index": 0
            }
          }
        ]
      }
    }
  },
  "included": [
    {
      "type": "leg",
      "id": "1~2",
      "relationships": {
        "leg_fares": {
          "data": [
            {
              "type": "leg_fare",
              "id": "1~2|54"
            },
            {
              "type": "leg_fare",
              "id": "1~2|51"
            },
            {
              "type": "leg_fare",
              "id": "1~2|52"
            },
            {
              "type": "leg_fare",
              "id": "1~2|53"
            }
          ]
        }
      }
    },
    {
      "type": "photo",
      "id": "959",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/6e6fb342-144c-4a6d-a80b-4a2fcd73dd28/square_thumb/20120517_C8551_PHOTO_EN_13902.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/6e6fb342-144c-4a6d-a80b-4a2fcd73dd28/large_square_thumb/20120517_C8551_PHOTO_EN_13902.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/6e6fb342-144c-4a6d-a80b-4a2fcd73dd28/large/20120517_C8551_PHOTO_EN_13902.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "963",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/844f09f9-d96c-4132-8687-013f566626c5/square_thumb/new-economy-class.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/844f09f9-d96c-4132-8687-013f566626c5/large_square_thumb/new-economy-class.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/844f09f9-d96c-4132-8687-013f566626c5/large/new-economy-class.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "965",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/65893cb7-7b70-45e4-b22d-e29db64b6ae3/square_thumb/NewGirl_Poster.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/65893cb7-7b70-45e4-b22d-e29db64b6ae3/large_square_thumb/NewGirl_Poster.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/65893cb7-7b70-45e4-b22d-e29db64b6ae3/large/NewGirl_Poster.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "966",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/3b3e0687-875d-4c59-9429-ea32295b3381/square_thumb/Cesar-Milan.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/3b3e0687-875d-4c59-9429-ea32295b3381/large_square_thumb/Cesar-Milan.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/3b3e0687-875d-4c59-9429-ea32295b3381/large/Cesar-Milan.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "967",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/20b395ad-55bf-4734-a808-6f30c0c249fa/square_thumb/ModernFamily_Poster.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/20b395ad-55bf-4734-a808-6f30c0c249fa/large_square_thumb/ModernFamily_Poster.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/20b395ad-55bf-4734-a808-6f30c0c249fa/large/ModernFamily_Poster.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "968",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/6950c6b2-9a85-472d-88ce-2928bec18611/square_thumb/American-Restoration.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/6950c6b2-9a85-472d-88ce-2928bec18611/large_square_thumb/American-Restoration.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/6950c6b2-9a85-472d-88ce-2928bec18611/large/American-Restoration.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "977",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/93ee752a-fd60-40c2-9bfc-460661d9aa21/square_thumb/pizza.png?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/93ee752a-fd60-40c2-9bfc-460661d9aa21/large_square_thumb/pizza.png?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/93ee752a-fd60-40c2-9bfc-460661d9aa21/large/pizza.png?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "982",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/724c35e0-48af-4664-a049-ee1baf5c580a/square_thumb/AIR-13-1173-Seat-selection-complimentary.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/724c35e0-48af-4664-a049-ee1baf5c580a/large_square_thumb/AIR-13-1173-Seat-selection-complimentary.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/724c35e0-48af-4664-a049-ee1baf5c580a/large/AIR-13-1173-Seat-selection-complimentary.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "983",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/1e7f3243-b5ef-40d8-8cee-ee06e8cac34f/square_thumb/op-Priority-check-in.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/1e7f3243-b5ef-40d8-8cee-ee06e8cac34f/large_square_thumb/op-Priority-check-in.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/1e7f3243-b5ef-40d8-8cee-ee06e8cac34f/large/op-Priority-check-in.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "984",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/783aaa62-70c8-40fe-bff1-c026bd76db57/square_thumb/op-Extra-baggage-allowance.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/783aaa62-70c8-40fe-bff1-c026bd76db57/large_square_thumb/op-Extra-baggage-allowance.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/783aaa62-70c8-40fe-bff1-c026bd76db57/large/op-Extra-baggage-allowance.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "985",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/87da82a5-e61b-4262-b665-b21fd5c15e00/square_thumb/op-Special-perks.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/87da82a5-e61b-4262-b665-b21fd5c15e00/large_square_thumb/op-Special-perks.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/87da82a5-e61b-4262-b665-b21fd5c15e00/large/op-Special-perks.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "986",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/8667c61b-6db5-4e08-bf3f-1d0b361e19da/square_thumb/op-Priority-boarding.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/8667c61b-6db5-4e08-bf3f-1d0b361e19da/large_square_thumb/op-Priority-boarding.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/8667c61b-6db5-4e08-bf3f-1d0b361e19da/large/op-Priority-boarding.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "987",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/62554610-aeca-483a-8b2a-f7650642f219/square_thumb/cc-Personalized-service.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/62554610-aeca-483a-8b2a-f7650642f219/large_square_thumb/cc-Personalized-service.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/62554610-aeca-483a-8b2a-f7650642f219/large/cc-Personalized-service.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "988",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/64a6fb77-b140-4d59-96a9-30f3a19fa1c2/square_thumb/cc-Superior-comfort.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/64a6fb77-b140-4d59-96a9-30f3a19fa1c2/large_square_thumb/cc-Superior-comfort.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/64a6fb77-b140-4d59-96a9-30f3a19fa1c2/large/cc-Superior-comfort.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "989",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/ba4c0fdb-483e-4cda-8a04-af005a08d007/square_thumb/cc-Welcome-to-Club-Class.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/ba4c0fdb-483e-4cda-8a04-af005a08d007/large_square_thumb/cc-Welcome-to-Club-Class.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/ba4c0fdb-483e-4cda-8a04-af005a08d007/large/cc-Welcome-to-Club-Class.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "990",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/1dce0511-f20d-44ee-8fd1-dce733336faf/square_thumb/cc-Exclusive-privileges.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/1dce0511-f20d-44ee-8fd1-dce733336faf/large_square_thumb/cc-Exclusive-privileges.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/1dce0511-f20d-44ee-8fd1-dce733336faf/large/cc-Exclusive-privileges.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "994",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/14845cb0-32c0-4d95-a207-1ed62eddeb35/square_thumb/check-in_online.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/14845cb0-32c0-4d95-a207-1ed62eddeb35/large_square_thumb/check-in_online.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/14845cb0-32c0-4d95-a207-1ed62eddeb35/large/check-in_online.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1058",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/e3cb9001-7cdf-4719-8bf9-99e0acc9d09f/square_thumb/snip.JPG?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/e3cb9001-7cdf-4719-8bf9-99e0acc9d09f/large_square_thumb/snip.JPG?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/e3cb9001-7cdf-4719-8bf9-99e0acc9d09f/large/snip.JPG?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1062",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/e8f98121-b5ec-48a8-b492-8df94f985a25/square_thumb/on-demand-show-grid.png?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/e8f98121-b5ec-48a8-b492-8df94f985a25/large_square_thumb/on-demand-show-grid.png?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/e8f98121-b5ec-48a8-b492-8df94f985a25/large/on-demand-show-grid.png?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1067",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/17f979f0-5a4c-4e8e-8672-caf7c080086f/square_thumb/Plaza_Premium_Toronto_Pearson_1.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/17f979f0-5a4c-4e8e-8672-caf7c080086f/large_square_thumb/Plaza_Premium_Toronto_Pearson_1.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/17f979f0-5a4c-4e8e-8672-caf7c080086f/large/Plaza_Premium_Toronto_Pearson_1.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1068",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/ae464820-d3df-4537-ad67-35135f6d7269/square_thumb/Plaza_Premium_Toronto_Pearson_3.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/ae464820-d3df-4537-ad67-35135f6d7269/large_square_thumb/Plaza_Premium_Toronto_Pearson_3.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/ae464820-d3df-4537-ad67-35135f6d7269/large/Plaza_Premium_Toronto_Pearson_3.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1070",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/ec100671-c06b-488f-b2b1-85418b33ca2e/square_thumb/Toronto-Lounge-International-Map-and-Services.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/ec100671-c06b-488f-b2b1-85418b33ca2e/large_square_thumb/Toronto-Lounge-International-Map-and-Services.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/ec100671-c06b-488f-b2b1-85418b33ca2e/large/Toronto-Lounge-International-Map-and-Services.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1075",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/f553fa1c-9a8a-4c44-99cd-bfdf7f0132ff/square_thumb/Servisair_Calgary_1.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/f553fa1c-9a8a-4c44-99cd-bfdf7f0132ff/large_square_thumb/Servisair_Calgary_1.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/f553fa1c-9a8a-4c44-99cd-bfdf7f0132ff/large/Servisair_Calgary_1.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo",
      "id": "1076",
      "attributes": {
        "thumb_url": "https://d13cihc9138cdj.cloudfront.net/photos/01a8e90d-1370-488a-a04a-04043b9f07ee/square_thumb/Servisair_Calgary_2.jpg?channel_id=ot5j870v",
        "medium_square_url": "https://d13cihc9138cdj.cloudfront.net/photos/01a8e90d-1370-488a-a04a-04043b9f07ee/large_square_thumb/Servisair_Calgary_2.jpg?channel_id=ot5j870v",
        "large_url": "https://d13cihc9138cdj.cloudfront.net/photos/01a8e90d-1370-488a-a04a-04043b9f07ee/large/Servisair_Calgary_2.jpg?channel_id=ot5j870v"
      }
    },
    {
      "type": "photo_attachment",
      "id": "200451-1075",
      "attributes": {
        "caption": "Sit back and relax making full use of the comfortable seating, complimentary drinks, snacks, hot food it and superb views."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1075"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200414-963",
      "attributes": {
        "caption": "Our totally redesigned seats provide you with the greatest level of comfort from start to finish."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "963"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200415-959",
      "attributes": {
        "caption": "Our all-new lighting system simulates natural light promoting a more restful flight."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "959"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200417-1058",
      "attributes": {
        "caption": "Our individual touch screens offer a wide array of entertainment options for all audiences."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1058"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200419-967",
      "attributes": {
        "caption": "Now playing: Modern Family (Comedy)"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "967"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200421-977",
      "attributes": {
        "caption": "We offer a complete meal with starter, a choice of hot main dishes, a dessert and glass of wine."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "977"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200424-982",
      "attributes": {
        "caption": "Benefit from standard seat selection with your booking."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "982"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200425-989",
      "attributes": {
        "caption": "Enjoy complimentary seat selection service and generous baggage allowance."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "989"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200429-1068",
      "attributes": {
        "caption": "The newest lounge at Toronto Pearson showcasing our 4th generation design elements, at 6,200 sq. ft. it's the largest too."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1068"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200430-994",
      "attributes": {
        "caption": "Save time at the airport and check in online between 24 and 2 hours prior to departure!"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "994"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200451-1076",
      "attributes": {
        "caption": "Here you’ll find a secluded haven of peace, away from the hustle and bustle of the busy airport."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1076"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200417-1062",
      "attributes": {
        "caption": "Be entertained by over 120 popular TV series and over 40 classic and new movies."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1062"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200419-965",
      "attributes": {
        "caption": "Now playing: New Girl"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "965"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200424-983",
      "attributes": {
        "caption": "Check in at a dedicated counter."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "983"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200425-986",
      "attributes": {
        "caption": "Be first to board with priority boarding."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "986"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200429-1067",
      "attributes": {
        "caption": "This lounge amazes guests with marble and dark wood accents, New Zealand wool carpet, very comfortable sofa chairs and more."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1067"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200419-966",
      "attributes": {
        "caption": "Now playing: Cesar Milan, Doggie Nightmares (Lifestyle)"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "966"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200424-984",
      "attributes": {
        "caption": "Be among the first to get your luggage at destination."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "984"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200425-988",
      "attributes": {
        "caption": "Exclusive, spacious Club cabin with wider, leather seats."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "988"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200429-1070",
      "attributes": {
        "caption": "Location: Domestic Departures, Terminal 3 (between Gates B22 and B24)"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "1070"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200419-968",
      "attributes": {
        "caption": "Now playing: American Restoration (Lifestyle)"
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "968"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200424-986",
      "attributes": {
        "caption": "Be among the first to board the plane and settle in your seat."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "986"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200425-990",
      "attributes": {
        "caption": "Specially selected travel amenities."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "990"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200424-985",
      "attributes": {
        "caption": "Receive a comfort kit, earbuds, sparkling wine (200 ml), beer or wine with meal, a snack and 1 alcoholic beverage."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "985"
          }
        }
      }
    },
    {
      "type": "photo_attachment",
      "id": "200425-987",
      "attributes": {
        "caption": "Two dedicated flight attendants and attentive, personalized service."
      },
      "relationships": {
        "photo": {
          "data": {
            "type": "photo",
            "id": "987"
          }
        }
      }
    },
    {
      "type": "upa",
      "id": "200419",
      "attributes": {
        "headline": "Shared screen entertainment",
        "description": "Discover our selection of movies, TV shows and music playlists, including recent hits, on our shared screens.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/903fa192-8d6d-415c-8e4b-5d9880e711f1/small/entertainment.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/903fa192-8d6d-415c-8e4b-5d9880e711f1/large/entertainment.png?channel_id=ot5j870v",
        "cta_text": "Whats New",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Inflight-services/Inflight-entertainment",
        "categories": [
          "entertainment",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200419-967"
            },
            {
              "type": "photo_attachment",
              "id": "200419-965"
            },
            {
              "type": "photo_attachment",
              "id": "200419-966"
            },
            {
              "type": "photo_attachment",
              "id": "200419-968"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200430",
      "attributes": {
        "headline": "Online check-in",
        "description": "Spend less time waiting at the airport and check in from the comfort of your own home.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/525453b1-0774-4fd4-9e0f-163764bdb68e/small/online_check-in.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/525453b1-0774-4fd4-9e0f-163764bdb68e/large/online_check-in.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Airports-and-check-in/Online-check-in",
        "categories": [
          "check-in",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200430-994"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200451",
      "attributes": {
        "headline": "Premium airport lounge",
        "description": "Access the Chinook lounge where you can enjoy exclusive privileges at a special discounted rate.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e5b196ad-391f-42fc-bf8e-d640194ede7b/small/airport_lounge.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e5b196ad-391f-42fc-bf8e-d640194ede7b/large/airport_lounge.png?channel_id=ot5j870v",
        "cta_text": "Save now",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Airports-and-check-in/Airport-lounges",
        "categories": [
          "departure-lounge",
          "ts"
        ],
        "fees": [
          {
            "currency_code": "CAD",
            "amount_min": "30.09",
            "amount_max": null
          }
        ]
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200451-1075"
            },
            {
              "type": "photo_attachment",
              "id": "200451-1076"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "201672",
      "attributes": {
        "headline": "Eco promo fares",
        "description": "Eco Fares offer varying conditions for flight changes or cancellation, so that you can modify your travel dates or even cancel your trip.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e2102811-6f4f-4150-b955-4c1174f19ffc/small/eco-promo.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e2102811-6f4f-4150-b955-4c1174f19ffc/large/eco-promo.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en/More-flexibility-with-Eco-fares?ID=3186&type=gamme&tmpl=GEN",
        "categories": [],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": []
        }
      }
    },
    {
      "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": "https://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/small/eco.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/large/eco.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Our-fleet/Our-redesigned-cabin",
        "categories": [
          "aircraft",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200415-959"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200414",
      "attributes": {
        "headline": "All new Economy Class seat",
        "description": "Experience our brand new Economy seat with ergonomic Italian-leather seats, more living space, a four-way headrest and more.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/101a7022-a730-4dad-aa72-aa00a96a1771/small/redesigned_cabin.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/101a7022-a730-4dad-aa72-aa00a96a1771/large/redesigned_cabin.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Our-fleet/Our-redesigned-cabin",
        "categories": [
          "seat",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200414-963"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200421",
      "attributes": {
        "headline": "Complimentary hot meal",
        "description": "We offer a complete meal with starter, a choice of hot main dishes, a dessert and glass of wine.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/8ed80f84-2a55-4e77-adac-a07ea16be918/small/meal.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/8ed80f84-2a55-4e77-adac-a07ea16be918/large/meal.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.com/en-CA/Travel-information/Inflight-services/Food-beverages-and-amenities",
        "categories": [
          "meals",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200421-977"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200417",
      "attributes": {
        "headline": "State-of-the-art entertainment",
        "description": "Enjoy more than 40 movies, 120 television series, 80 music albums and 9 radio channels.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/903fa192-8d6d-415c-8e4b-5d9880e711f1/small/entertainment.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/903fa192-8d6d-415c-8e4b-5d9880e711f1/large/entertainment.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Inflight-services/Inflight-entertainment",
        "categories": [
          "entertainment",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200417-1058"
            },
            {
              "type": "photo_attachment",
              "id": "200417-1062"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200424",
      "attributes": {
        "headline": "Extra privileges",
        "description": "Upgrade to Option Plus for more privileges and services in Economy Class starting at just CA $59.50.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/0be40f42-f2f1-4ac9-95ce-3a38dba2c1ef/small/option_plus.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/0be40f42-f2f1-4ac9-95ce-3a38dba2c1ef/large/option_plus.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Upgrades-options-and-seat-selection/Option-Plus-extra-privileges-in-Economy-Class?ici=vignette_footer&icn=optionplus-refonte2014",
        "categories": [
          "upgrade",
          "ts"
        ],
        "fees": [
          {
            "currency_code": "CAD",
            "amount_min": "59.50",
            "amount_max": "209.00"
          },
          {
            "currency_code": "EUR",
            "amount_min": "48.00",
            "amount_max": "168.00"
          },
          {
            "currency_code": "GBP",
            "amount_min": "39.00",
            "amount_max": "139.00"
          },
          {
            "currency_code": "CHF",
            "amount_min": "59.50",
            "amount_max": "209.00"
          }
        ]
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200424-982"
            },
            {
              "type": "photo_attachment",
              "id": "200424-983"
            },
            {
              "type": "photo_attachment",
              "id": "200424-984"
            },
            {
              "type": "photo_attachment",
              "id": "200424-986"
            },
            {
              "type": "photo_attachment",
              "id": "200424-985"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200425",
      "attributes": {
        "headline": "Travel in superior comfort",
        "description": "Upgrade for more comfort and refinement.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/30dbe2ba-1e85-4cc6-a338-d15e00911dbf/small/club.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/30dbe2ba-1e85-4cc6-a338-d15e00911dbf/large/club.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Upgrades-options-and-seat-selection/Club-Class-travel-in-superior-comfort",
        "categories": [
          "upgrade",
          "ts"
        ],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200425-989"
            },
            {
              "type": "photo_attachment",
              "id": "200425-986"
            },
            {
              "type": "photo_attachment",
              "id": "200425-988"
            },
            {
              "type": "photo_attachment",
              "id": "200425-990"
            },
            {
              "type": "photo_attachment",
              "id": "200425-987"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "200429",
      "attributes": {
        "headline": "Premium airport lounge",
        "description": "Access the Plaza Premium Lounge where you can enjoy exclusive privileges at a special discounted rate.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e5b196ad-391f-42fc-bf8e-d640194ede7b/small/airport_lounge.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/e5b196ad-391f-42fc-bf8e-d640194ede7b/large/airport_lounge.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en-CA/Travel-information/Airports-and-check-in/Airport-lounges",
        "categories": [
          "departure-lounge",
          "ts"
        ],
        "fees": [
          {
            "currency_code": "CAD",
            "amount_min": "28.00",
            "amount_max": "70.00"
          }
        ]
      },
      "relationships": {
        "photo_attachments": {
          "data": [
            {
              "type": "photo_attachment",
              "id": "200429-1068"
            },
            {
              "type": "photo_attachment",
              "id": "200429-1067"
            },
            {
              "type": "photo_attachment",
              "id": "200429-1070"
            }
          ]
        }
      }
    },
    {
      "type": "upa",
      "id": "201669",
      "attributes": {
        "headline": "Eco fares",
        "description": "Eco Fares offer varying conditions for flight changes or cancellation, so that you can modify your travel dates or even cancel your trip.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/small/eco.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/a67c9fa7-d915-422f-8eff-e7ba938c566d/large/eco.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en/More-flexibility-with-Eco-fares?ID=3186&type=gamme&tmpl=GEN",
        "categories": [],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": []
        }
      }
    },
    {
      "type": "upa",
      "id": "201670",
      "attributes": {
        "headline": "Eco extra fares",
        "description": "Eco Fares offer varying conditions for flight changes or cancellation, so that you can modify your travel dates or even cancel your trip.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/93997ecc-f19d-4989-869b-c93516a424ca/small/eco-extra.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/93997ecc-f19d-4989-869b-c93516a424ca/large/eco-extra.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en/More-flexibility-with-Eco-fares?ID=3186&type=gamme&tmpl=GEN",
        "categories": [],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": []
        }
      }
    },
    {
      "type": "upa",
      "id": "201671",
      "attributes": {
        "headline": "Eco max fares",
        "description": "Eco Fares offer varying conditions for flight changes or cancellation, so that you can modify your travel dates or even cancel your trip.",
        "small_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/31f95a87-f417-46b8-a41f-bc13cde69ca3/small/eco-max.png?channel_id=ot5j870v",
        "large_icon_url": "https://d13cihc9138cdj.cloudfront.net/icons/31f95a87-f417-46b8-a41f-bc13cde69ca3/large/eco-max.png?channel_id=ot5j870v",
        "cta_text": "More",
        "cta_url": "http://www.airtransat.ca/en/More-flexibility-with-Eco-fares?ID=3186&type=gamme&tmpl=GEN",
        "categories": [],
        "fees": []
      },
      "relationships": {
        "photo_attachments": {
          "data": []
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|54/0",
      "attributes": {
        "mk_flt_no": "846"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200419"
            },
            {
              "type": "upa",
              "id": "200430"
            },
            {
              "type": "upa",
              "id": "200451"
            },
            {
              "type": "upa",
              "id": "201672"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|54/1",
      "attributes": {
        "mk_flt_no": "360"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200415"
            },
            {
              "type": "upa",
              "id": "200414"
            },
            {
              "type": "upa",
              "id": "200421"
            },
            {
              "type": "upa",
              "id": "200417"
            },
            {
              "type": "upa",
              "id": "200424"
            },
            {
              "type": "upa",
              "id": "200425"
            },
            {
              "type": "upa",
              "id": "200429"
            },
            {
              "type": "upa",
              "id": "201672"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|51/0",
      "attributes": {
        "mk_flt_no": "846"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200419"
            },
            {
              "type": "upa",
              "id": "200430"
            },
            {
              "type": "upa",
              "id": "200451"
            },
            {
              "type": "upa",
              "id": "201669"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|51/1",
      "attributes": {
        "mk_flt_no": "360"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200415"
            },
            {
              "type": "upa",
              "id": "200414"
            },
            {
              "type": "upa",
              "id": "200421"
            },
            {
              "type": "upa",
              "id": "200417"
            },
            {
              "type": "upa",
              "id": "200424"
            },
            {
              "type": "upa",
              "id": "200425"
            },
            {
              "type": "upa",
              "id": "200429"
            },
            {
              "type": "upa",
              "id": "201669"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|52/0",
      "attributes": {
        "mk_flt_no": "846"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200419"
            },
            {
              "type": "upa",
              "id": "200430"
            },
            {
              "type": "upa",
              "id": "200451"
            },
            {
              "type": "upa",
              "id": "201670"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|52/1",
      "attributes": {
        "mk_flt_no": "360"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200415"
            },
            {
              "type": "upa",
              "id": "200414"
            },
            {
              "type": "upa",
              "id": "200421"
            },
            {
              "type": "upa",
              "id": "200417"
            },
            {
              "type": "upa",
              "id": "200424"
            },
            {
              "type": "upa",
              "id": "200425"
            },
            {
              "type": "upa",
              "id": "200429"
            },
            {
              "type": "upa",
              "id": "201670"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|53/0",
      "attributes": {
        "mk_flt_no": "846"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200419"
            },
            {
              "type": "upa",
              "id": "200430"
            },
            {
              "type": "upa",
              "id": "200451"
            },
            {
              "type": "upa",
              "id": "201671"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare_segment",
      "id": "1~2|53/1",
      "attributes": {
        "mk_flt_no": "360"
      },
      "relationships": {
        "upas": {
          "data": [
            {
              "type": "upa",
              "id": "200415"
            },
            {
              "type": "upa",
              "id": "200414"
            },
            {
              "type": "upa",
              "id": "200421"
            },
            {
              "type": "upa",
              "id": "200417"
            },
            {
              "type": "upa",
              "id": "200424"
            },
            {
              "type": "upa",
              "id": "200425"
            },
            {
              "type": "upa",
              "id": "200429"
            },
            {
              "type": "upa",
              "id": "201671"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare",
      "id": "1~2|54",
      "relationships": {
        "leg_fare_segments": {
          "data": [
            {
              "type": "leg_fare_segment",
              "id": "1~2|54/0"
            },
            {
              "type": "leg_fare_segment",
              "id": "1~2|54/1"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare",
      "id": "1~2|51",
      "relationships": {
        "leg_fare_segments": {
          "data": [
            {
              "type": "leg_fare_segment",
              "id": "1~2|51/0"
            },
            {
              "type": "leg_fare_segment",
              "id": "1~2|51/1"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare",
      "id": "1~2|52",
      "relationships": {
        "leg_fare_segments": {
          "data": [
            {
              "type": "leg_fare_segment",
              "id": "1~2|52/0"
            },
            {
              "type": "leg_fare_segment",
              "id": "1~2|52/1"
            }
          ]
        }
      }
    },
    {
      "type": "leg_fare",
      "id": "1~2|53",
      "relationships": {
        "leg_fare_segments": {
          "data": [
            {
              "type": "leg_fare_segment",
              "id": "1~2|53/0"
            },
            {
              "type": "leg_fare_segment",
              "id": "1~2|53/1"
            }
          ]
        }
      }
    }
  ]
}
Have more questions? Submit a request