# Hotel Supplier Autocomplete This endpoint provides autocomplete suggestions for hotels based on the query provided. Endpoint: GET /v2/hotel-supplier-autocomplete Version: v2 Security: Bearer ## Query parameters: - `query` (string, required) Query to get autocomplete response Example: "New York Marquis" ## Response 200 fields (application/json): - `hotels` (array, required) List of Hotels matching the Autocomplete query - `hotels.hotelCode` (string) Unique Code for the hotel Example: "100259788" - `hotels.hotelName` (string, required) Full Name of the hotel Example: "Delphin Deluxe Resort" - `hotels.location` (object) Location details - `hotels.location.countryCode` (string) Unique country code for a location Example: "TR" - `hotels.location.countryName` (string) Full name of the country Example: "Turkey" - `hotels.location.googlePlaceId` (string) Unique place ID for the location assigned by Google Example: "ChIJL_P_CXMEDTkRw0ZdG-0GVvw" - `hotels.location.latlong` (object) Latitude and Longitude for a Location - `hotels.location.latlong.latitude` (number, required) Latitude of the Location Example: 77.1025 - `hotels.location.latlong.longitude` (number, required) Longitude of the Location Example: 28.7041 - `hotels.location.name` (string, required) Full name of the Location Example: "Denver" - `hotels.location.stateName` (string) Full name of the state Example: "Colorado" - `hotels.address` (object) Postal Address Details - `hotels.address.addressLines` (array, required) Address lines Example: ["Golden Gate Bridge"] - `hotels.address.administrativeArea` (string) Code of administrative area. For example: DL for Delhi, India. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated. Example: "CA" - `hotels.address.administrativeAreaName` (string) Name of administrative area. This is full name corresponding to administrativeArea. Like Delhi for DL area code. For some places, code and name maybe same as well like Tokyo. Example: "California" - `hotels.address.description` (string) Address description Example: "San Francisco Home" - `hotels.address.isDefault` (boolean) Whether this address is default address in case multiple addresses are specified. Example: true - `hotels.address.languageCode` (string) BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. Examples: "zh-Hant", "ja", "ja-Latn", "en". Example: "en" - `hotels.address.locality` (string) Generally refers to the city/town portion of the address. Example: "San Francisco" - `hotels.address.locationCode` (string) IATA 3-letter location code. See https://www.iata.org/en/services/codes. Example: "LAX" - `hotels.address.organization` (string) The name of the organization at the address. Example: "Spotnana" - `hotels.address.postalCode` (string) Postal code of the address. This is a required field when setting for a user/legal entity/company etc. Example: "94130" - `hotels.address.continentCode` (string) 2 letter continent code of the continent this address falls in. Example: "AF" - `hotels.address.recipients` (array) The recipient at the address. - `hotels.address.regionCode` (string, required) Region code of the country/region of the address. Example: "US" - `hotels.address.regionName` (string) Region name of the country/region of the address. Example: "America" - `hotels.address.revision` (integer) Example: 1 - `hotels.address.sortingCode` (string) Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). Example: "Jamaica" - `hotels.address.sublocality` (string) Sublocality of the address. This can be neighborhoods, boroughs, districts. - `hotels.address.timezone` (string) Time zone of the address. Example: "America/Los_Angeles" - `hotels.address.coordinates` (object) Map coordinates of the address. - `hotels.isPresentInPreferredVendors` (boolean) Whether the hotel is present in preferred vendor list. This is an optional field which gets populated only in the preferred vendor autocomplete API. Example: true - `hotels.brandCode` (string) The code of hotel brand. Example: "MC" - `hotels.chainCode` (string) The code of hotel chain. Example: "EM" - `hotels.starRating` (object) Hotel star rating detail. - `hotels.starRating.starRating` (number, required) Star rating of the hotel. Example: 3 - `hotels.starRating.ratingType` (string, required) Enum representing the type of star rating. Enum: "OFFICIAL", "SELF_RATED" - `hotels.contactInfo` (object) Contact information for the hotel. - `hotels.contactInfo.phone` (array, required) List of phone numbers for the hotel. - `hotels.contactInfo.phone.countryCode` (integer) two digit country code Example: 91 - `hotels.contactInfo.phone.countryCodeSource` (string) Enum: "UNSPECIFIED", "FROM_NUMBER_WITH_PLUS_SIGN", "FROM_NUMBER_WITH_IDD", "FROM_NUMBER_WITHOUT_PLUS_SIGN", "FROM_DEFAULT_COUNTRY" - `hotels.contactInfo.phone.extension` (string) phone number extension Example: "222" - `hotels.contactInfo.phone.isoCountryCode` (string) ISO alpha-2 code Example: "IN" - `hotels.contactInfo.phone.italianLeadingZero` (boolean) Example: true - `hotels.contactInfo.phone.nationalNumber` (integer) Example: 8150 - `hotels.contactInfo.phone.numberOfLeadingZeros` (integer) Example: 1 - `hotels.contactInfo.phone.preferredDomesticCarrierCode` (string) Example: "7" - `hotels.contactInfo.phone.rawInput` (string) Example: "77777" - `hotels.contactInfo.phone.type` (string) Enum: "UNKNOWN_TYPE", "MOBILE", "LANDLINE" - `hotels.contactInfo.fax` (array) List of fax numbers for the hotel. - `hotels.contactInfo.email` (array, required) List of email addresses for the hotel. ## 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 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.