Skip to content
Navigation

Invite a traveler to a trip

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

Invites a travel companion to a trip. A phone number, an email address or a name is enough. A person with a Nicer account joins the trip at once; a person without one becomes a traveler of the agency on the trip in the CRM, and joins the trip when they sign up, so a group can be assembled before everyone has an account. Returns the trip. Anyone who can see the trip may call it: the people on it, its advisor of record, the admins of the agency that owns it and Nicer staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

Request body JSON required

  • email
    optional
    string
    format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
  • familyName
    optional
    string
  • givenName
    optional
    string
  • phoneNumber
    optional
    string
    minLength: 1

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
  • 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