Skip to content
Navigation

List preferred hotels

GET
https://api.nicer.travel/internova

Lists the hotels of the preferred hotel programs (program SELECT or CURATED) as the nightly catalog sync stores them, filtered by the encoded where tree the portal sends, reduced to the attributes in fields (comma-separated), 10 a page unless limit says otherwise, with nextToken the page number counted from 0. The answer carries the page's items, nextToken and prevToken (null at either end), the total count (countHotel), the number of pages (countPages) and how many items it shows (showing). Reads the whole catalog on every call. Any signed-in person may call it.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • fields
    optional
    string

    The attributes to keep on each hotel, comma-separated; a dotted path (hotelDetails.ratingNumber) keeps that part of an attribute. type is always kept. Every attribute when absent.

  • limit
    optional
    string

    Hotels a page: its leading digits, at least 1. 10 when absent or not a number.

  • nextToken
    optional
    string

    The page to answer, counted from 0: the nextToken or prevToken of another page. The first page when absent or not a number.

  • where
    optional
    string

    The filter tree: and(…;…) and or(…;…) groups around field:operator:value conditions joined by commas, each value URL-encoded and a list of values joined by |. Operators: eq (also an unknown or missing one), neq, lt, lte, gt, gte, inq, between, like (every value a substring of the attribute, or a member of a list attribute), beginsWith and exists. Every hotel when absent.

Returns

200

OK

JSON
  • countHotel
    number
    required

    How many hotels match the filter.

  • countPages
    number
    required

    How many pages they make.

  • items
    array of
    object
    required
    • type
      string
      required
    • address
      optional

      Any of the following:

      • string
      • null
    • amenities
      optional
      array of
      string
    • city
      optional

      Any of the following:

      • string
      • null
    • country
      optional
      string
    • countryCode
      optional
      string
    • description
      optional
      string
    • distanceFromSearch
      optional
      object
      • unit
        km
        or
        mi
        required
      • value
        number
        required
    • features
      optional
      array of
      string
    • fullAddress
      optional
      string
    • gate
      optional

      Any of the following:

      • string
      • null
    • iataCode
      optional

      Any of the following:

      • string
      • null
    • internovaId
      optional
      string
    • latitude
      optional
      number
    • longitude
      optional
      number
    • name
      optional
      string
    • photos
      optional
      array of
      object
      • name
        string
        required
      • key
        optional
        string
      • url
        optional
        string
    • placeId
      optional
      string
    • region
      optional
      string
    • source
      optional
      string
    • state
      optional

      Any of the following:

      • string
      • null
    • terminal
      optional

      Any of the following:

      • string
      • null
    • timeZone
      optional
      string
    • zipCode
      optional

      Any of the following:

      • string
      • null
    • additionalAmenities
      optional
      array of
      object
      • type
        string
        required
      • value
        required

        Any of the following:

        • Option 1

          Any of the following:

          • string
          • boolean
        • number
    • availableFilters
      optional
      array of
      string
    • customs
      optional
      array of
      object
      • type
        string
        required
      • value
        required

        Any of the following:

        • Option 1

          Any of the following:

          • string
          • boolean
        • number
    • experiences
      optional
      array of
      string
    • hotelDetails
      optional
      object
      • allowedPaymentMethods
        optional
        array of
        string
      • commission
        optional
        number
      • commissionSuite
        optional
        number
      • contacts
        optional
        array of
        object
        • type
          string
          required
        • email
          optional
          string
        • name
          optional
          string
        • phone
          optional
          string
        • title
          optional
          string
      • crownRating
        optional
        string
      • onSiteFitnessCenterAvailable
        optional
        boolean
      • ratingNumber
        optional
        number
      • smokingRoomAvailable
        optional
        boolean
      • totalNumberFloors
        optional
        number
      • totalNumberOfRooms
        optional
        number
    • program
      optional
      SELECT
      or
      CURATED
    • providerReferences
      optional
      array of
      object
      • chainCode
        string
        required
        minLength: 1
      • propertyCode
        string
        required
        minLength: 1
      • system
        string
        required
    • searchKey
      optional
      string
    • specialAmenities
      optional
      array of
      object
      • type
        string
        required
      • value
        required

        Any of the following:

        • Option 1

          Any of the following:

          • Option 1

            Any of the following:

            • string
            • boolean
          • number
        • null
    • createdAt
      optional
      string
    • updatedAt
      optional
      string
  • nextToken
    required

    The next page's number; null on the last page.

    Any of the following:

    • number
    • null
  • prevToken
    required

    The previous page's number; null on the first page.

    Any of the following:

    • number
    • null
  • showing
    number
    required

    How many hotels this page holds.

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close