# Check loyalty enrollment eligibility

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

Endpoint: POST /v2/air/check-loyalty-enroll-eligibility
Version: v2
Security: Bearer

## Security:

  - `Bearer` (unknown)
    http bearer

## Request fields (application/json):

  - `rateOptionId` (string)
    Rate option ID used to fetch the selected itinerary source.
    Example: rateOptionId123

  - `userOrgId` (object)
    User and user's organization information.

  - `userOrgId.organizationAgencyId` (object)
    Agency id for the organization.

  - `userOrgId.organizationAgencyId.id` (string, required)

  - `userOrgId.organizationId` (object, required)
    Organization id for traveler.

  - `userOrgId.organizationId.id` (string, required)

  - `userOrgId.userId` (object, required)
    User identifier

  - `userOrgId.userId.id` (string, required)

  - `userOrgId.tmcInfo` (object)
    TMC config information.

  - `userOrgId.tmcInfo.id` (object, required)
    Company ID

  - `userOrgId.tmcInfo.id.id` (string, required)
    Example: f49d00fe-1eda-4304-ba79-a980f565281d

  - `userOrgId.tmcInfo.primaryServiceProviderTmc` (object, required)
    Primary service provider TMC info

  - `userOrgId.tmcInfo.secondaryServiceProviderTmcs` (array)
    Secondary service provider TMCs for the TMC.

  - `userOrgId.tmcInfo.secondaryServiceProviderTmcs.supplier` (string, required)
    Supplier type like Sabre, TravelFusion etc.
    Enum: "SABRE", "AMADEUS", "TRAVEL_FUSION", "FARELOGIX_NDC", "ATPCO_NDC", "TRAINLINE", "AVIA", "QBR", "BCD", "QANTAS_HOTELS", "SOUTHWEST", "EXPEDIA", "HOTEL_HUB", "NDC", "MARRIOTT", "CLEARTRIP", "KYTE", "GROUNDSPAN", "SABRE_NDC", "BOOKING_COM", "CARTRAWLER", "PREMIER_INN", "TRAVELODGE", "ENTERPRISE", "HYATT", "HILTON", "NATIONAL", "ALAMO", "HERTZ", "DOLLAR", "THRIFTY", "FIREFLY", "EUROSTAR", "AVIS", "BUDGET", "AMADEUS_NDC", "SIXT"

  - `userOrgId.tmcInfo.secondaryServiceProviderTmcs.travelType` (string, required)
    Travel Type
    Enum: "AIR", "HOTEL", "CAR", "RAIL", "LIMO", "MISC", "ALL"

  - `userOrgId.tmcBasicInfo` (object)
    TMC related basic information.

  - `userOrgId.tmcBasicInfo.contractingTmc` (object, required)
    Basic information about a company.

  - `userOrgId.tmcBasicInfo.contractingTmc.name` (string)

  - `userOrgId.tmcBasicInfo.contractingTmc.logo` (object)
    An image with meta data. Either the `data` or `url` property must be supplied to load the image.

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.data` (string)
    Example: 6935813e12584abda0e43d71cd2ea260

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.dimensions` (object)
    Image dimensions ie width and height.

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.dimensions.height` (integer)
    Example: 120

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.dimensions.width` (integer)
    Example: 240

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.url` (string)
    Example: 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

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.metadata` (object)
    Metadata associated with an image.

  - `userOrgId.tmcBasicInfo.contractingTmc.logo.metadata.variant` (string)
    Image variant.
    Enum: "LIGHT", "DARK"

  - `searchId` (string)
    The search ID from the air search response.
    Example: searchId456

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `loyaltyProgramEnrollmentInfo` (array)
    Loyalty program enrollment info for each applicable airline.

  - `loyaltyProgramEnrollmentInfo.airline` (string)
    IATA code of the airline.
    Example: AA

  - `loyaltyProgramEnrollmentInfo.signUpInternally` (object)
    Internal sign-up eligibility details.

  - `loyaltyProgramEnrollmentInfo.signUpInternally.isEligible` (boolean)
    Whether internal sign-up is allowed.

  - `loyaltyProgramEnrollmentInfo.signUpExternally` (object)
    External sign-up details.

  - `loyaltyProgramEnrollmentInfo.signUpExternally.link` (string)
    URL to sign up for the loyalty program externally.
    Example: https://www.united.com/en/us/account/enroll/profile

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 404:

  - `404` (unknown)
    The specified resource was not found.

## Response 404 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

