Air

Check loyalty enrollment eligibility

Changed on

Check whether a traveler is eligible to enroll in airline loyalty programs for the selected itinerary.

post/v2/air/check-loyalty-enroll-eligibility

Request

  • Base URL
    https://api-ext-sboxmeta.partners.spotnana.com
  • Auth
    HTTP bearer

Request body

rateOptionIdstring

Rate option ID used to fetch the selected itinerary source.

searchIdstring

The search ID from the air search response.

Example request

{
  "rateOptionId": "rateOptionId123",
  "userOrgId": {
    "tmcInfo": {
      "id": {
        "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
      },
      "primaryServiceProviderTmc": {
        "tmcId": {
          "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
        }
      },
      "secondaryServiceProviderTmcs": [
        {
          "tmcId": {
            "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
          },
          "supplier": "SABRE",
          "travelType": "AIR"
        }
      ],
      "partnerTmcId": {
        "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
      }
    },
    "tmcBasicInfo": {
      "contractingTmc": {
        "id": {
          "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
        },
        "logo": {
          "data": "6935813e12584abda0e43d71cd2ea260",
          "dimensions": {
            "height": 120,
            "width": 240
          },
          "url": "https://static.wixstatic.com/media/73f2e2_6935813e12584abda0e43d71cd2ea260~mv2.png/v1/fill/w_630,h_94,al_c,q_85,usm_0.66_1.00_0.01/Spotnana%403x.webp",
          "metadata": {
            "variant": "LIGHT"
          }
        }
      },
      "bookingTmc": {
        "id": {
          "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
        },
        "logo": {
          "data": "6935813e12584abda0e43d71cd2ea260",
          "dimensions": {
            "height": 120,
            "width": 240
          },
          "url": "https://static.wixstatic.com/media/73f2e2_6935813e12584abda0e43d71cd2ea260~mv2.png/v1/fill/w_630,h_94,al_c,q_85,usm_0.66_1.00_0.01/Spotnana%403x.webp",
          "metadata": {
            "variant": "LIGHT"
          }
        }
      }
    }
  },
  "searchId": "searchId456"
}

Response

OK

Example response

{
  "loyaltyProgramEnrollmentInfo": [
    {
      "airline": "AA",
      "signUpExternally": {
        "link": "https://www.united.com/en/us/account/enroll/profile"
      }
    }
  ]
}

Changes