Skip to content
Navigation

Open a profile form

GET
https://api.nicer.travel/crm/profile-forms/{token}

Opens the traveler a profile form link was sent for, without an account, with the name the agency presents itself with. The token is the link's secret. Errors: 404 ERROR_ITEM_NOT_FOUND for an unknown or expired link.

Path parameters

  • token
    string
    required

Header parameters

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

Returns

200

OK

JSON
  • companyDisplayName
    required

    The name the agency presents itself with; null when it has none on file.

    Any of the following:

    • string
    • null
  • companyName
    string
    required

    The agency the traveler belongs to.

  • expiresAt
    string
    required

    When the link stops working, ISO 8601 in UTC: 14 days after the advisor sent it.

    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))$
  • traveler
    object
    required

    The traveler the link was sent for, as the person fills it.

    • 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

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close