Skip to content
Navigation

Get a trip in the back office

GET
https://api.nicer.travel/backoffice/trips/{travelersTripId}

Returns a whole trip record and the people on it: each person's relationship to the trip, whether they archived it and when they last read its chat. The agency is named by the x-nicer-company header and nothing else. Nicer staff who name no agency reach any trip; with an agency named, staff and its admins reach that agency's trips only. An agency admin may name only an agency they administer, and may leave the header out when they administer one. Errors: 404 ERROR_ITEM_NOT_FOUND for a trip that does not exist or belongs to another agency; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • members
    array of
    object
    required

    The member edges of the people in associatedUserIds that have one.

    • createdAt
      string
      required

      When the person was added to the trip, ISO 8601.

    • createdBy
      string
      required

      Who added the person to the trip: a user id, or SYSTEM.

    • lastModifiedBy
      string
      required

      Who last changed the edge: a user id, or SYSTEM.

    • travelersTripId
      string
      required

      The trip's id.

    • type
      string
      required
    • updatedAt
      string
      required

      When the edge last changed, ISO 8601.

    • userId
      string
      required

      The person's user id.

    • displayName
      optional

      The person's name as the trip shows it, when one is stored.

      Any of the following:

      • string
      • null
    • isArchived
      optional
      boolean

      Whether the person archived the trip in their own list.

    • lastReadAt
      optional

      When the person last read the trip's chat, ISO 8601; null or absent if never.

      Any of the following:

      • string
      • null
    • relationship
      optional
      BILLING_CONTACT
      or
      PAYER
      or
      PRIMARY
      or
      TRAVELER

      How a person takes part in a trip: PRIMARY (the lead traveler), TRAVELER, PAYER or BILLING_CONTACT.

  • trip
    object
    required

    The whole trip record, as travelers-trip stores it: the list fields plus its chat, visibility, flexible dates, budget and special requests.

    • associatedUserIds
      array of
      string
      required

      The user id of every person on the trip, in any relationship.

    • companyName
      string
      required

      The agency the trip belongs to.

    • createdBy
      string
      required

      The user id of who created the trip.

    • destinations
      array of
      object
      required

      Where the trip goes, in order, each place with its first and last day (YYYY-MM-DD).

      • 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

      The user id of the trip's lead traveler.

    • tripEndDate
      string
      required

      The trip's last day.

    • tripStartDate
      string
      required

      The trip's first day.

    • tripTitle
      string
      required

      The trip's name.

    • travelersTripId
      string
      required

      The trip's id.

    • createdAt
      string
      required

      When the trip was created, ISO 8601.

    • updatedAt
      string
      required

      When the trip last changed, ISO 8601.

    • type
      string
      required
    • assignedAdvisorUserId
      optional

      The user id of the advisor responsible for the trip; null or absent while none is assigned.

      Any of the following:

      • string
      • null
    • associatedChatId
      optional

      Any of the following:

      • string
      • null
    • associatedTripItineraryId
      optional

      The trip's itinerary, once its advisor started one; null or absent before.

      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

      How the trip came to be: created by the traveler, by an advisor, by a matching advisor or by a booking.

    • deleted
      optional
      boolean

      True once the trip was deleted. Deleted trips are listed too.

    • deletedAt
      optional

      Any of the following:

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

      True once the traveler approved a segment or an order was placed on the trip.

    • lastMessageTimestamp
      optional

      Any of the following:

      • string
      • null
    • specialRequests
      optional

      Any of the following:

      • string
      • null
    • suggestionsEnabled
      optional
      boolean
    • travelers
      optional
      object

      How many adults and children travel.

      • adults
        optional
        number
      • children
        optional
        number
    • amount
      optional
      number
    • budget
      optional

      The kind of budget the traveler asked for: goodValue or luxury.

      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