Skip to content
Navigation

Get a trip

GET
https://api.nicer.travel/travelers-trip/{travelersTripId}

Returns a single trip with its destinations, dates, travelers and the ids of the itinerary and conversation attached to it. status is derived on read from the trip dates and whether anything has been booked yet, so it is always current. Readable by the people on the trip, its advisor of record, the admins of the agency that owns it and Nicer staff; anyone else is refused (ERROR_UNAUTHORIZED), whatever the id.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

Returns

200

OK

JSON
  • associatedUserIds
    array of
    string
    required
  • companyName
    string
    required
  • createdBy
    string
    required
  • destinations
    array of
    object
    required
    • endDateTime
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
    • startDateTime
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
    • 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
    • headerImageUrl
      optional
      string
  • hasFlexibleDates
    boolean
    required
  • isAllPricesHidden
    boolean
    required
    default: false
  • isItineraryVisible
    boolean
    required
    default: true
  • isSummaryHidden
    boolean
    required
    default: false
  • lastModifiedBy
    string
    required
  • primaryTravelerUserId
    string
    required
  • tripEndDate
    string
    required
  • tripStartDate
    string
    required
  • tripTitle
    string
    required
  • travelersTripId
    string
    required
  • createdAt
    string
    required
  • updatedAt
    string
    required
  • type
    string
    required
  • isArchived
    boolean
    required
  • status
    PROPOSAL
    or
    IN_PROGRESS
    or
    TRAVELING
    required
  • assignedAdvisorUserId
    optional

    Any of the following:

    • string
    • null
  • associatedChatId
    optional

    Any of the following:

    • string
    • null
  • associatedTripItineraryId
    optional

    Any of the following:

    • string
    • null
  • availableDate
    optional

    Any of the following:

    • string
    • object
      • from
        string
        required
      • to
        string
        required
  • budgetCurrency
    optional

    Any of the following:

    • string
    • null
  • conciergeMessageSentAt
    optional

    Any of the following:

    • string
    • null
  • createdReason
    optional
    CREATED_BY_TRAVELER
    or
    CREATED_BY_ADVISOR
    or
    CREATED_BY_MATCHING_ADVISOR
    or
    CREATED_BY_BOOKING
  • deleted
    optional
    boolean
  • deletedAt
    optional

    Any of the following:

    • string
    • null
  • deletedBy
    optional
    string
  • hasActivity
    optional
    boolean
  • lastMessageTimestamp
    optional

    Any of the following:

    • string
    • null
  • specialRequests
    optional

    Any of the following:

    • string
    • null
  • suggestionsEnabled
    optional
    boolean
  • travelers
    optional
    object
    • adults
      optional
      number
    • children
      optional
      number
  • amount
    optional
    number
  • budget
    optional

    Any of the following:

    • string
    • string
  • purpose
    optional

    Any of the following:

    • string
    • string
    • string
    • string
  • who
    optional

    Any of the following:

    • string
    • string
    • string
    • string

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