---
title: "Get user travel preferences"
method: GET
path: "/v2/users/{userId}/travel-preferences"
tags: ["Users"]
---

# Get user travel preferences

`GET /v2/users/{userId}/travel-preferences`

## Response `200`

OK

- TravelPreferences — User's travel preferences
  - `preferences` TravelPref — Travel preferences.
    - `airPref` AirPref — Travel preferences related to air travel.
      - `airlinePrefs` AirlinePref[]
        - `airlines` string[]
        - `flightType` 'UNKNOWN_FLIGHT_TYPE' | 'DOMESTIC' | 'INTERNATIONAL' | 'ALL'
      - `alliancePref` AlliancePref — Alliance preferences.
        - `alliances` Alliance[], required
      - `farePref` FarePref — Fare preferences.
        - `fareTypes` string[], required
      - `homeAirport` string
      - `mealPref` MealPref — Meal preferences.
        - `exclMealPrefs` MealType[]
        - `inclMealPrefs` MealType[]
        - `specialMealDescription` string
      - `numStopPref` NumStopsPref — Preferred number of stops.
        - `numOfStops` integer, required
      - `seatAmenityPref` SeatAmenityPref — Seat amenity preference.
        - `seatAmenityTypes` string[], required
      - `seatLocationPrefs` SeatLocationPref[]
        - `cabins` string[]
        - `isBulkHeadPref` boolean
        - `maxFlightDurationInHours` integer
        - `position` 'UNKNOWN_POSITION' | 'AISLE' | 'WINDOW' | 'AISLE_OR_WINDOW'
      - `preferredAirports` PreferredAirport[] — A list of user preferred airports.
        - `airportName` string — Airport name.
        - `airportCode` string, required — IATA airport code.
        - `label` 'HOME' | 'WORK' | 'OTHER', required — The label of preferred airport or rail station.
    - `preferredCurrency` string
    - `railCards` RailCard[]
      - `cardNumber` string — Number of card
      - `expiryDate` DateModel — Date in ISO 8601 standard.
        - `iso8601` string, required
      - `name` string, required — Name of the Rail Card.
      - `spotnanaCode` string, required — Unique Spotnana code/identifier for Rail Card.
      - `vendor` string, required — Vendor Name.
    - `railPref` RailPref — Travel preferences related to rail station.
      - `preferredRailStations` PreferredRailStation[] — A list of user preferred rail stations.
        - `stationName` string — Rail station name.
        - `stationCode` string, required — Rail station code.
        - `cityName` string — Name of city where the rail station is located.
        - `countryCode` string — Alpha-2 country code where the rail station is located.
        - `label` 'HOME' | 'WORK' | 'OTHER', required — The label of preferred airport or rail station.
      - `seatPreference` SeatPref — Preference about seat of rail.
        - `hasAccessibility` boolean — Whether or not requires assistance for disability.
        - `seatTypes` SeatPrefType[]
        - `seatLocations` SeatPrefLocation[]
        - `deckLevels` DeckLevel[]
        - `seatDirections` SeatPrefDirection[]
      - `travelClasses` RailTravelClass[] — A list of class of service for rail.
      - `coachPreferences` CoachPref[] — A list of coach preference for rail.
      - `conditionalRates` ConditionalRate[] — A list of conditional rates for rail.
    - `carPref` CarPref — Travel preferences related to car.
      - `vendors` CarVendor[] — A list of car vendors.
        - `code` string, required — Vendor code
        - `name` string, required — Vendor name
        - `isPresentInPreferredVendors` boolean — Whether the car vendor is present in preferred vendor list. This is an optional field which gets populated only in the preferred vendor autocomplete API.
      - `carTypes` CarType[] — A list of types of car.
      - `engineTypes` EngineType[] — A list of types of engine.
      - `transmissionTypes` TransmissionSearchFilter[] — A list of types of transmission.
      - `conditionalRates` ConditionalRate[] — A list of conditional rates for rail.
    - `hotelPref` HotelPref — Travel preferences related to hotel.
      - `hotelParentChains` HotelChain[] — A list of hotel parent chains.
        - `chainCode` string — The code of hotel chain.
        - `chainName` string — The name of hotel chain.
      - `hotelBrands` HotelBrand[] — A list of hotel brands.
        - `brandCode` string — The code of hotel brand.
        - `brandName` string — The name of hotel brand.
      - `hotelAmenityTypes` HotelPrefAmenity[] — A list of HotelAmenities.
      - `roomPreference` RoomPreference — Room options and stay preference.
        - `isMobilityAccessible` boolean — Whether or not mobility accessible room, tub.
        - `bedCount` 'ONE_BED' | 'TWO_BEDS' — The number of bed in the room.
        - `roomType` 'SMOKING' | 'NON_SMOKING' — Single selection of type of room.
        - `mostImportantFact` 'ROOM_TYPE' | 'BED_COUNT' | 'ROOM_LOCATION' — Single selection of the most import fact.
        - `roomLocation` 'HIGH_FLOOR' | 'LOW_FLOOR' | 'NEAR_ELEVATOR' — Location of the hotel room
        - `pillowType` 'FOAM' | 'EXTRA_FOAM' | 'EXTRA_FEATHER' — The type of pillow in hotel room.
        - `roomAmenityPrefs` string[]
      - `conditionalRates` ConditionalRate[] — A list of conditional rates for rail.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/spotnana/apis/user-management-api.md) · [All operations](https://skmtc.net/spotnana/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/user-management-api/revisions/920fb84cbf70/schema)
