Skip to content
Navigation

Get a traveler

GET
https://api.nicer.travel/crm/travelers/{travelerId}

Returns one traveler. Without expand the answer is the traveler's own fields, read in one call. expand adds members, comma-separated, each at the cost of its own reads, all read at the same time: profile (the travel profile, one read), documents (travel documents with their full numbers, one read), importantDates (one read), relationships (up to two reads: the links, then the related travelers' names), trips (one read) and possibleDuplicates (up to four reads: one lookup per email, phone and name with birth date, then the travelers found, among those the caller may see). Ask only for the members you show. Errors: 400 ERROR_INVALID_QUERY for an expand name that is not a member, 404 ERROR_ITEM_NOT_FOUND for a traveler the caller may not see.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelerId
    string
    required

Query parameters

  • expand
    optional
    string

    The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.

    minLength: 1

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Returns

200

OK

JSON
  • address
    required

    The traveler's postal address; null when nobody gave one.

    Any of the following:

    • PersonAddress
      • address1
        string
        required
        maxLength: 200 · minLength: 1
      • city
        string
        required
        maxLength: 100 · minLength: 1
      • countryCode
        string
        required
        pattern: ^[A-Z]{2}$
      • postalCode
        string
        required
        maxLength: 20 · minLength: 1
      • stateCode
        string
        required
        maxLength: 100 · minLength: 1
    • null
  • assignedAdvisorUserId
    required

    The user id of the advisor responsible for the traveler; null until an admin assigns one.

    Any of the following:

    • string
    • null
  • birthDate
    required

    Date of birth, YYYY-MM-DD; null when unknown.

    Any of the following:

    • string
    • null
  • bookedTotal
    required

    What the traveler has booked, in minor units of one currency. Informative only: commerce holds the money. Null before the first booking.

    Any of the following:

    • Money
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
    • null
  • companyName
    string
    required

    The agency the traveler belongs to.

  • contact
    object
    required

    The traveler's email and phone, the phone in E.164; each is null when unknown.

    • email
      required

      Any of the following:

      • string
      • null
    • phone
      required

      Any of the following:

      • E164Phone
      • null
  • contributingAdvisorIds
    array of
    string
    required

    The user ids of every advisor who serves the traveler, the assigned one included.

  • createdAt
    string
    required

    When the traveler was added, ISO 8601 in UTC.

    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • createdBy
    string
    required

    The user id of who added the traveler, or SYSTEM.

  • customFields
    map of
    CustomFieldValue
    required

    The values of the agency's own custom fields, by the field's key.

  • displayName
    string
    required

    The name to show: the preferred name, else the given name, then the family name.

  • frequentFlyerPrograms
    array of
    object
    required

    Airline loyalty memberships, as a flight reservation carries them.

    • airlineIataCode
      string
      required
      pattern: ^[A-Z0-9]{2,3}$
    • memberNumber
      string
      required
      maxLength: 100 · minLength: 1
  • isArchived
    boolean
    required

    Whether the traveler is archived: kept, but out of the lists and searches.

  • lastActivityAt
    required

    When something last happened with the traveler, ISO 8601 in UTC; null when nothing has.

    Any of the following:

    • string
    • null
  • lastModifiedBy
    string
    required

    The user id of who last changed the traveler, or SYSTEM.

  • lastTripEndDate
    required

    The last day, YYYY-MM-DD, of the traveler's latest trip that has ended; null when none has.

    Any of the following:

    • string
    • null
  • linkedAt
    required

    When the traveler was linked to a Nicer account, ISO 8601 in UTC; null while they have none.

    Any of the following:

    • string
    • null
  • marketingConsent
    object
    required

    Whether the traveler agreed to marketing messages, per channel.

    • email
      boolean
      required

      Whether the traveler agreed to marketing by email.

    • sms
      boolean
      required

      Whether the traveler agreed to marketing by SMS.

    • whatsapp
      boolean
      required

      Whether the traveler agreed to marketing on WhatsApp.

  • name
    object
    required

    The legal name, as printed on the travel document.

    • familyName
      string
      required
      maxLength: 100 · minLength: 1
    • givenName
      string
      required
      maxLength: 100 · minLength: 1
    • middleName
      required

      Any of the following:

      • string
      • null
  • nationalityCountryCode
    required

    Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown.

    Any of the following:

    • CountryCode
    • null
  • nextTripStartDate
    required

    The first day, YYYY-MM-DD, of the traveler's next trip; null when none is coming.

    Any of the following:

    • string
    • null
  • origin
    string
    ·
    one of 8 values
    required

    How the traveler entered the CRM.

    Allowed values: BACKFILL, CHECKOUT, IMPORT, INVITE, MANUAL, REFERRAL, SIGNUP, TRIP
  • preferredChannel
    required

    How the traveler prefers to be contacted; null when they have not said.

    Any of the following:

    • PreferredChannel
    • null
  • preferredLanguage
    required

    The language to write to the traveler in, e.g. es or en-US; null when unknown.

    Any of the following:

    • LanguageTag
    • null
  • preferredName
    required

    The name the traveler goes by when it is not their given name; null otherwise.

    Any of the following:

    • string
    • null
  • referredByTravelerId
    required

    The traveler who referred this one; null when nobody did.

    Any of the following:

    • string
    • null
  • residenceCountryCode
    required

    Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown.

    Any of the following:

    • CountryCode
    • null
  • revision
    integer
    required

    Goes up by one on every change. Send it back with an update, so a change made meanwhile is never overwritten.

    maximum: 9007199254740991 · minimum: 1
  • sex
    required

    The sex marker on the travel document; null when unknown.

    Any of the following:

    • ParticipantSex
    • null
  • stage
    CLIENT
    or
    LEAD
    required

    LEAD until the traveler's first booking is confirmed, then CLIENT.

  • tags
    array of
    string
    required

    Labels the agency groups travelers by, such as VIP.

    maxLength: 40 · minLength: 1
  • travelerId
    string
    required

    The traveler's id.

    maxLength: 64 · minLength: 1
  • tripsCount
    integer
    required

    How many trips the traveler is on.

    maximum: 9007199254740991 · minimum: 0
  • updatedAt
    string
    required

    When the traveler last changed, ISO 8601 in UTC.

    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • userId
    required

    The traveler's Nicer account, once they have one and it is linked; null otherwise.

    Any of the following:

    • string
    • null
  • visibility
    ADVISORS
    or
    COMPANY
    required

    Which of the agency's advisors see the traveler.

  • documents
    optional
    array of
    object

    The traveler's travel documents with their full numbers, oldest first. Only with expand=documents; never in a list.

    • expirationDate
      required

      The day the document expires, YYYY-MM-DD; null for one that does not.

      Any of the following:

      • string
      • null
    • issuingCountryCode
      required

      The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown.

      Any of the following:

      • CountryCode
      • null
    • kind
      string
      ·
      one of 7 values
      required

      What the document is.

      Allowed values: DRIVER_LICENSE, KNOWN_TRAVELER_NUMBER, NATIONAL_ID, PASSPORT, REDRESS_NUMBER, RESIDENCE_PERMIT, VISA
    • number
      string
      required

      The document's number, in full, 1 to 100 characters.

      maxLength: 100 · minLength: 1
    • documentId
      string
      required

      The document's id: send it back in an update to keep or replace this document.

      minLength: 1
    • label
      required

      What the document is to people, e.g. "ESTA" or "Schengen", 1 to 60 characters; null when it has none.

      Any of the following:

      • string
      • null
    • citizenshipCountry
      optional

      The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.

      Any of the following:

      • CountryCode
      • null
    • issueDate
      optional

      The day the document was issued, YYYY-MM-DD; null or absent when unknown.

      Any of the following:

      • string
      • null
    • placeOfBirth
      optional

      The place of birth printed on the document; null or absent when unknown.

      Any of the following:

      • string
      • null
    • placeOfIssue
      optional

      Where the document was issued; null or absent when unknown.

      Any of the following:

      • string
      • null
  • importantDates
    optional
    array of
    object

    The dates the agency remembers every year; the birthday is birthDate, not one of these. Only with expand=importantDates.

    • date
      string
      required

      The date, YYYY-MM-DD. Its month and day come back every year; the year is the first one.

      format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
    • dateId
      string
      required

      The date's id: send it back in an update to keep or replace this date.

      minLength: 1
    • kind
      ANNIVERSARY
      or
      OTHER
      required

      What kind of date it is.

    • label
      required

      What the date is to people, e.g. Wedding anniversary, 1 to 80 characters; null when the kind says enough.

      Any of the following:

      • string
      • null
  • possibleDuplicates
    optional
    array of
    object

    Other travelers of the agency, among those the caller may see, who may be the same person. Only with expand=possibleDuplicates, and always on the answer to adding a traveler.

    • confidence
      HIGH
      or
      MEDIUM
      required

      HIGH for the same email, MEDIUM for the same phone or the same name and birth date.

    • displayName
      string
      required

      The other traveler's display name.

    • reason
      EMAIL
      or
      NAME_AND_BIRTH_DATE
      or
      PHONE
      required

      What the two travelers share.

    • travelerId
      string
      required

      The other traveler's id: merge the two with POST /crm/travelers/{travelerId}/merge.

      maxLength: 64 · minLength: 1
  • profile
    optional
    object

    The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets. Only with expand=profile.

    • accessibility
      required

      Any of the following:

      • Accessibility
        • medicalNotes
          required

          Any of the following:

          • string
          • null
        • mobility
          required

          Any of the following:

          • string
            NONE
            or
            REDUCED_MOBILITY
            or
            WHEELCHAIR_ASSISTANCE
            or
            WHEELCHAIR_OWN
          • null
      • null
    • air
      required

      Any of the following:

      • AirPreferences
        • cabinClass
          required

          Any of the following:

          • string
            BUSINESS
            or
            ECONOMY
            or
            FIRST
            or
            PREMIUM_ECONOMY
          • null
        • mealCode
          required

          Any of the following:

          • string
          • null
        • notes
          required

          Any of the following:

          • string
          • null
        • preferredAirlineCodes
          array of
          string
          required
          pattern: ^[A-Z0-9]{2,3}$
        • preferredAirportCodes
          array of
          string
          required
          pattern: ^[A-Z]{3}$
        • seat
          required

          Any of the following:

          • string
            AISLE
            or
            ANY
            or
            WINDOW
          • null
      • null
    • dietary
      required

      Any of the following:

      • Dietary
        • codes
          array of
          string
          ·
          one of 11 values
          required
          Allowed values: DIABETIC, GLUTEN_FREE, HALAL, KOSHER, LACTOSE_FREE, LOW_SODIUM, NUT_ALLERGY, OTHER, SHELLFISH_ALLERGY, VEGAN, VEGETARIAN
        • notes
          required

          Any of the following:

          • string
          • null
      • null
    • emergencyContacts
      array of
      object
      required
      • name
        string
        required
        maxLength: 200 · minLength: 1
      • phone
        required

        Any of the following:

        • E164Phone
        • null
      • relationship
        required

        Any of the following:

        • string
        • null
      • travelerId
        required

        Any of the following:

        • string
        • null
    • hotel
      required

      Any of the following:

      • HotelPreferences
        • bed
          required

          Any of the following:

          • string
            ANY
            or
            KING
            or
            QUEEN
            or
            TWIN
          • null
        • floor
          required

          Any of the following:

          • string
            ANY
            or
            HIGH
            or
            LOW
          • null
        • notes
          required

          Any of the following:

          • string
          • null
        • preferredBrands
          array of
          string
          required
          maxLength: 80 · minLength: 1
        • roomType
          required

          Any of the following:

          • string
          • null
      • null
    • interests
      required

      Any of the following:

      • Interests
        • bucketList
          required

          Any of the following:

          • string
          • null
        • budgetNotes
          required

          Any of the following:

          • string
          • null
        • interests
          array of
          string
          required
          maxLength: 60 · minLength: 1
        • travelStyles
          array of
          string
          required
          maxLength: 60 · minLength: 1
      • null
    • loyaltyPrograms
      array of
      object
      required
      • number
        string
        required
        maxLength: 255 · minLength: 1
      • receiverCode
        optional
        string
        maxLength: 255 · minLength: 1
      • supplierCode
        optional
        string
        maxLength: 255 · minLength: 1
      • tier
        optional
        string
        maxLength: 255 · minLength: 1
      • type
        optional
        string
        maxLength: 255 · minLength: 1
    • pets
      array of
      object
      required
      • name
        string
        required
        maxLength: 80 · minLength: 1
      • notes
        required

        Any of the following:

        • string
        • null
      • species
        string
        required
        maxLength: 60 · minLength: 1
      • weightKg
        required

        Any of the following:

        • number
        • null
  • relationships
    optional
    array of
    object

    Other travelers of the agency this one is related to. Only with expand=relationships.

    • displayName
      string
      required

      The related traveler's display name.

    • relatedTravelerId
      string
      required

      The related traveler's id.

      maxLength: 64 · minLength: 1
    • relationship
      string
      ·
      one of 13 values
      required

      Who the related traveler is to this one.

      Allowed values: ASSISTANT, CHILD, COLLEAGUE, EMPLOYER, FRIEND, NANNY, PARENT, PARTNER, REFERRED, REFERRED_BY, RELATIVE, SIBLING, SPOUSE
  • trips
    optional
    array of
    object

    The trips the traveler is on, the latest start first and undated ones last. Only with expand=trips.

    • relationship
      BILLING_CONTACT
      or
      PAYER
      or
      PRIMARY
      or
      TRAVELER
      required

      The traveler's part on the trip.

    • salesStage
      required

      Where the trip stands as a sale; null when it has no stage.

      Any of the following:

      • SalesStage
      • null
    • travelersTripId
      string
      required

      The trip's id, e.g. TT….

    • tripEndDate
      required

      The trip's last day, YYYY-MM-DD; null while it has no dates.

      Any of the following:

      • string
      • null
    • tripName
      required

      The trip's name; null when it has none.

      Any of the following:

      • string
      • null
    • tripStartDate
      required

      The trip's first day, YYYY-MM-DD; null while it has no dates.

      Any of the following:

      • string
      • null

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