Skip to content
Navigation

Update my travel profile

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

Saves the signed-in person's own traveler at the agency they act in, adding it on the first change, and the travelers of the children, spouse or partner they fill in for there, then answers as GET /crm/me does. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>; x-nicer-company names the agency, and a person who belongs to one agency may leave it out. They may change only the sections of TravelerSelfUpdate: identity, contact, documents, important dates and preferences, never the agency's own fields. Send each traveler's revision; the change that adds their own traveler needs name instead. The traveler is saved first and then each family member in the order sent: a refusal stops there and keeps what was saved before it. Errors: 400 ERROR_BODY_VALIDATION, 400 ERROR_COMPANY_REQUIRED without an agency, 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to, 404 ERROR_ITEM_NOT_FOUND for a family member they may not fill in for, 409 CRM_REVISION_CONFLICT.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

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

Request body JSON required

  • family
    optional
    array of
    object

    Changes to the family members the person may fill in for, at most 10, saved one after the other in the order sent.

    • travelerId
      string
      required

      The family member's traveler, one of the family GET /crm/me answers; any other answers 404 ERROR_ITEM_NOT_FOUND.

      maxLength: 64 · minLength: 1
    • update
      object
      required

      The change to the family member's traveler, with the revision read.

      • address
        optional

        The postal address; null clears it.

        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
        optional

        Date of birth, YYYY-MM-DD; null clears it.

        Any of the following:

        • string
        • null
      • contact
        optional
        object

        The email and phone, both replaced; the phone in E.164.

        • email
          required

          Any of the following:

          • string
          • null
        • phone
          required

          Any of the following:

          • E164Phone
          • null
      • documents
        optional
        array of
        object

        Every travel document to keep, at most 12: a stored document left out is removed, one sent with its documentId is replaced, and one without is added. Absent leaves the documents as they are.

        • 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
        • 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
        • documentId
          optional
          string

          The id of the stored document this one replaces; absent adds a new document.

          minLength: 1
        • label
          optional

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

          Any of the following:

          • string
          • null
      • frequentFlyerPrograms
        optional
        array of
        object

        Every airline loyalty membership to keep, at most 8.

        • airlineIataCode
          string
          required
          pattern: ^[A-Z0-9]{2,3}$
        • memberNumber
          string
          required
          maxLength: 100 · minLength: 1
      • importantDates
        optional
        array of
        object

        Every important date to keep, at most 20: a stored date left out is removed, one sent with its dateId is replaced, and one without is added.

        • date
          string
          required

          The date, YYYY-MM-DD.

          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])))$
        • kind
          ANNIVERSARY
          or
          OTHER
          required

          What kind of date it is.

        • dateId
          optional
          string

          The id of the stored date this one replaces; absent adds a new date.

          minLength: 1
        • label
          optional

          What the date is to people, 1 to 80 characters; null or absent when the kind says enough.

          Any of the following:

          • string
          • null
      • marketingConsent
        optional
        object

        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
        optional
        object

        The legal name, as printed on the travel document. Required on the change that adds the person's own traveler at an agency.

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

          Any of the following:

          • string
          • null
      • nationalityCountryCode
        optional

        Nationality, as an ISO 3166-1 alpha-2 country code; null clears it.

        Any of the following:

        • CountryCode
        • null
      • preferredChannel
        optional

        How the traveler prefers to be contacted; null clears it.

        Any of the following:

        • PreferredChannel
        • null
      • preferredLanguage
        optional

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

        Any of the following:

        • LanguageTag
        • null
      • preferredName
        optional

        The name the traveler goes by, 1 to 100 characters; null clears it.

        Any of the following:

        • string
        • null
      • profile
        optional
        object

        Sections of the travel profile to replace: a section left out is kept and null clears it.

        • accessibility
          optional

          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
          optional

          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
          optional

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

          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
          optional

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

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

        Any of the following:

        • CountryCode
        • null
      • revision
        optional
        integer

        The revision read, required for a traveler that exists; left out only on the change that adds the person's own traveler. A traveler changed since answers 409 CRM_REVISION_CONFLICT: read it again and reapply.

        maximum: 9007199254740991 · minimum: 1
      • sex
        optional

        The sex marker on the travel document; null clears it.

        Any of the following:

        • ParticipantSex
        • null
  • traveler
    optional
    object

    The change to the person's own traveler at the agency they act in; the first one adds it and must include name.

    • address
      optional

      The postal address; null clears it.

      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
      optional

      Date of birth, YYYY-MM-DD; null clears it.

      Any of the following:

      • string
      • null
    • contact
      optional
      object

      The email and phone, both replaced; the phone in E.164.

      • email
        required

        Any of the following:

        • string
        • null
      • phone
        required

        Any of the following:

        • E164Phone
        • null
    • documents
      optional
      array of
      object

      Every travel document to keep, at most 12: a stored document left out is removed, one sent with its documentId is replaced, and one without is added. Absent leaves the documents as they are.

      • 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
      • 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
      • documentId
        optional
        string

        The id of the stored document this one replaces; absent adds a new document.

        minLength: 1
      • label
        optional

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

        Any of the following:

        • string
        • null
    • frequentFlyerPrograms
      optional
      array of
      object

      Every airline loyalty membership to keep, at most 8.

      • airlineIataCode
        string
        required
        pattern: ^[A-Z0-9]{2,3}$
      • memberNumber
        string
        required
        maxLength: 100 · minLength: 1
    • importantDates
      optional
      array of
      object

      Every important date to keep, at most 20: a stored date left out is removed, one sent with its dateId is replaced, and one without is added.

      • date
        string
        required

        The date, YYYY-MM-DD.

        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])))$
      • kind
        ANNIVERSARY
        or
        OTHER
        required

        What kind of date it is.

      • dateId
        optional
        string

        The id of the stored date this one replaces; absent adds a new date.

        minLength: 1
      • label
        optional

        What the date is to people, 1 to 80 characters; null or absent when the kind says enough.

        Any of the following:

        • string
        • null
    • marketingConsent
      optional
      object

      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
      optional
      object

      The legal name, as printed on the travel document. Required on the change that adds the person's own traveler at an agency.

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

        Any of the following:

        • string
        • null
    • nationalityCountryCode
      optional

      Nationality, as an ISO 3166-1 alpha-2 country code; null clears it.

      Any of the following:

      • CountryCode
      • null
    • preferredChannel
      optional

      How the traveler prefers to be contacted; null clears it.

      Any of the following:

      • PreferredChannel
      • null
    • preferredLanguage
      optional

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

      Any of the following:

      • LanguageTag
      • null
    • preferredName
      optional

      The name the traveler goes by, 1 to 100 characters; null clears it.

      Any of the following:

      • string
      • null
    • profile
      optional
      object

      Sections of the travel profile to replace: a section left out is kept and null clears it.

      • accessibility
        optional

        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
        optional

        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
        optional

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

        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
        optional

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

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

      Any of the following:

      • CountryCode
      • null
    • revision
      optional
      integer

      The revision read, required for a traveler that exists; left out only on the change that adds the person's own traveler. A traveler changed since answers 409 CRM_REVISION_CONFLICT: read it again and reapply.

      maximum: 9007199254740991 · minimum: 1
    • sex
      optional

      The sex marker on the travel document; null clears it.

      Any of the following:

      • ParticipantSex
      • null

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