Skip to content
Navigation

Get my travel profile

GET
https://api.nicer.travel/crm/me

Returns the signed-in person's own traveler at the agency they act in, as they see and fill it; the family they may fill in for there; and the advisors who serve them at every agency, each with the name and photo of their Nicer account. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>. x-nicer-company names the agency; a person who belongs to one agency may leave it out. The answer holds only the caller's own records: traveler is null before they have one at that agency or when no agency is selected, family lists only the children, spouse or partner related to their traveler there who have no account of their own, and the traveler's documents come with their full numbers. A traveler without an account fills their profile through the profile form link an advisor sends instead. Errors: 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

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

Returns

200

OK

JSON
  • advisors
    array of
    object
    required

    The advisors who serve the person at every agency where they are a traveler, one entry per advisor and agency.

    • advisorAvatar
      required

      A link to the photo on the advisor's Nicer account; null when they have none.

      Any of the following:

      • string
      • null
    • advisorName
      required

      The advisor's name, as their Nicer account spells it; null when it has none.

      Any of the following:

      • string
      • null
    • advisorUserId
      string
      required

      The advisor's user id.

    • companyName
      string
      required

      The agency where the advisor serves the person.

    • isAssigned
      boolean
      required

      Whether the advisor is the one responsible for the person at that agency.

  • family
    array of
    object
    required

    The family members the person may fill in for at the agency they act in; empty when no agency is selected.

    • relationship
      string
      ·
      one of 13 values
      required

      What the family member is to the person: CHILD, SPOUSE or PARTNER.

      Allowed values: ASSISTANT, CHILD, COLLEAGUE, EMPLOYER, FRIEND, NANNY, PARENT, PARTNER, REFERRED, REFERRED_BY, RELATIVE, SIBLING, SPOUSE
    • traveler
      object
      required

      The family member's traveler, as the person fills it for them.

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

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

        Any of the following:

        • string
        • 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
      • documents
        array of
        object
        required

        The traveler's travel documents with their full numbers, oldest first.

        • 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
      • 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
      • importantDates
        array of
        object
        required

        The dates the agency remembers every year; the birthday is birthDate, not one of these.

        • 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
      • 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
      • 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
      • profile
        object
        required

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

        • 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
      • 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
      • travelerId
        string
        required

        The traveler's id.

        maxLength: 64 · minLength: 1
  • traveler
    required

    The person's own traveler at the agency they act in; null before they have one there, or when no agency is selected.

    Any of the following:

    • TravelerSelf
      • address
        required

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

        Any of the following:

        • PersonAddress
        • null
      • birthDate
        required

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

        Any of the following:

        • string
        • 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
      • documents
        array of
        object
        required

        The traveler's travel documents with their full numbers, oldest first.

        • 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
      • 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
      • importantDates
        array of
        object
        required

        The dates the agency remembers every year; the birthday is birthDate, not one of these.

        • 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
      • 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
      • 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
      • profile
        object
        required

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

        • accessibility
          required

          Any of the following:

          • Accessibility
          • null
        • air
          required

          Any of the following:

          • AirPreferences
          • null
        • dietary
          required

          Any of the following:

          • Dietary
          • 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
          • null
        • interests
          required

          Any of the following:

          • Interests
          • 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
      • 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
      • travelerId
        string
        required

        The traveler's id.

        maxLength: 64 · minLength: 1
    • 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