---
title: "Update a traveler"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a traveler

Path: Nicer API › Notes and tasks

`PUT /crm/travelers/{travelerId}`

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

Replaces the sections of a traveler the body names and returns the traveler as it is now. Send the revision you read: a traveler changed since answers 409 CRM_REVISION_CONFLICT. An omitted section is kept, null clears it, and a list replaces the stored one; relationships are written on both travelers, and documents is the whole list of travel documents to keep. Only admins change the advisors. Without expand the answer is the traveler's own fields, with no read beyond the one that checks the traveler; expand adds members exactly as on GET /crm/travelers/{travelerId}, each read once the change is saved. Errors: 400 ERROR_BODY_VALIDATION (a documentId or dateId that is not the traveler's included), 400 ERROR_INVALID_QUERY for an expand name that is not a member, 400 CRM_RELATED_TRAVELER_NOT_FOUND, 403 ERROR_UNAUTHORIZED for an advisor changing the advisors, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_REVISION_CONFLICT.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `travelerId` (`crm.travelers.update.path.travelerId`; string, required)

## Query parameters

- `expand` (`crm.travelers.update.query.expand`; string, optional) — 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` (`crm.travelers.update.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.
- `X-Nicer-CRM-Contract` (`crm.travelers.update.header.X-Nicer-CRM-Contract`; string, required)
  - one of `"resource"` · example: `"resource"`

## Request body

_Required._

- `revision` (`crm.travelers.update.revision`; integer, required) — The revision you read. A traveler changed since answers 409 CRM_REVISION_CONFLICT: read it again and reapply.
  - maximum: `9007199254740991` · minimum: `1`
- `address` (`crm.travelers.update.address`; any of, optional) — The postal address; null clears it.
  - any of the following:
    - `PersonAddress`
      - `address1` (`PersonAddress.address1`; string, required)
        - maxLength: `200` · minLength: `1`
      - `city` (`PersonAddress.city`; string, required)
        - maxLength: `100` · minLength: `1`
      - `countryCode` (`PersonAddress.countryCode`; string, required)
        - pattern: `^[A-Z]{2}$`
      - `postalCode` (`PersonAddress.postalCode`; string, required)
        - maxLength: `20` · minLength: `1`
      - `stateCode` (`PersonAddress.stateCode`; string, required)
        - maxLength: `100` · minLength: `1`
    - `null`
- `assignedAdvisorUserId` (`crm.travelers.update.assignedAdvisorUserId`; any of, optional) — Admins only: the user id of the advisor responsible for the traveler; null leaves nobody assigned. The assigned advisor also serves the traveler.
  - any of the following: `string`, `null`
- `birthDate` (`crm.travelers.update.birthDate`; any of, optional) — Date of birth, YYYY-MM-DD; null clears it.
  - any of the following: `string`, `null`
- `contact` (`crm.travelers.update.contact`; object, optional) — The email and phone, both replaced; the phone in E.164.
  - `email` (`crm.travelers.update.contact.email`; any of, required)
    - any of the following: `string`, `null`
  - `phone` (`crm.travelers.update.contact.phone`; any of, required)
    - any of the following: `E164Phone`, `null`
- `contributingAdvisorIds` (`crm.travelers.update.contributingAdvisorIds`; array of string, optional) — Admins only: the user ids of every advisor who serves the traveler, at most 10. The assigned advisor is always kept in the list.
  - minLength: `1`
- `customFields` (`crm.travelers.update.customFields`; map of CustomFieldValue, optional) — Values of the agency's own custom fields, by key; a key set to null clears that field.
- `documents` (`crm.travelers.update.documents`; array of object, optional) — Every travel document the traveler keeps, 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` (`crm.travelers.update.documents.expirationDate`; any of, required) — The day the document expires, YYYY-MM-DD; null for one that does not.
    - any of the following: `string`, `null`
  - `issuingCountryCode` (`crm.travelers.update.documents.issuingCountryCode`; any of, 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` (`crm.travelers.update.documents.kind`; string, required) — What the document is.
    - one of `"DRIVER_LICENSE"`, `"KNOWN_TRAVELER_NUMBER"`, `"NATIONAL_ID"`, `"PASSPORT"`, `"REDRESS_NUMBER"`, `"RESIDENCE_PERMIT"`, `"VISA"`
  - `number` (`crm.travelers.update.documents.number`; string, required) — The document's number, in full, 1 to 100 characters.
    - maxLength: `100` · minLength: `1`
  - `citizenshipCountry` (`crm.travelers.update.documents.citizenshipCountry`; any of, 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` (`crm.travelers.update.documents.issueDate`; any of, optional) — The day the document was issued, YYYY-MM-DD; null or absent when unknown.
    - any of the following: `string`, `null`
  - `placeOfBirth` (`crm.travelers.update.documents.placeOfBirth`; any of, optional) — The place of birth printed on the document; null or absent when unknown.
    - any of the following: `string`, `null`
  - `placeOfIssue` (`crm.travelers.update.documents.placeOfIssue`; any of, optional) — Where the document was issued; null or absent when unknown.
    - any of the following: `string`, `null`
  - `documentId` (`crm.travelers.update.documents.documentId`; string, optional) — The id of the stored document this one replaces; absent adds a new document.
    - minLength: `1`
  - `label` (`crm.travelers.update.documents.label`; any of, 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` (`crm.travelers.update.frequentFlyerPrograms`; array of object, optional) — Every airline loyalty membership to keep, at most 8.
  - `airlineIataCode` (`crm.travelers.update.frequentFlyerPrograms.airlineIataCode`; string, required)
    - pattern: `^[A-Z0-9]{2,3}$`
  - `memberNumber` (`crm.travelers.update.frequentFlyerPrograms.memberNumber`; string, required)
    - maxLength: `100` · minLength: `1`
- `importantDates` (`crm.travelers.update.importantDates`; array of object, optional) — 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` (`crm.travelers.update.importantDates.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` (`crm.travelers.update.importantDates.kind`; string, required) — What kind of date it is.
    - one of `"ANNIVERSARY"`, `"OTHER"`
  - `dateId` (`crm.travelers.update.importantDates.dateId`; string, optional) — The id of the stored date this one replaces; absent adds a new date.
    - minLength: `1`
  - `label` (`crm.travelers.update.importantDates.label`; any of, 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`
- `isArchived` (`crm.travelers.update.isArchived`; boolean, optional) — true takes the traveler out of the lists and searches without erasing them; false brings them back.
- `marketingConsent` (`crm.travelers.update.marketingConsent`; object, optional) — Whether the traveler agreed to marketing messages, per channel.
  - `email` (`crm.travelers.update.marketingConsent.email`; boolean, required) — Whether the traveler agreed to marketing by email.
  - `sms` (`crm.travelers.update.marketingConsent.sms`; boolean, required) — Whether the traveler agreed to marketing by SMS.
  - `whatsapp` (`crm.travelers.update.marketingConsent.whatsapp`; boolean, required) — Whether the traveler agreed to marketing on WhatsApp.
- `name` (`crm.travelers.update.name`; object, optional) — The legal name, as printed on the travel document.
  - `familyName` (`crm.travelers.update.name.familyName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `givenName` (`crm.travelers.update.name.givenName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `middleName` (`crm.travelers.update.name.middleName`; any of, required)
    - any of the following: `string`, `null`
- `nationalityCountryCode` (`crm.travelers.update.nationalityCountryCode`; any of, optional) — Nationality, as an ISO 3166-1 alpha-2 country code; null clears it.
  - any of the following: `CountryCode`, `null`
- `preferredChannel` (`crm.travelers.update.preferredChannel`; any of, optional) — How the traveler prefers to be contacted; null clears it.
  - any of the following: `PreferredChannel`, `null`
- `preferredLanguage` (`crm.travelers.update.preferredLanguage`; any of, 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` (`crm.travelers.update.preferredName`; any of, optional) — The name the traveler goes by, 1 to 100 characters; null clears it.
  - any of the following: `string`, `null`
- `profile` (`crm.travelers.update.profile`; object, optional) — Sections of the travel profile to replace: a section left out is kept and null clears it.
  - `accessibility` (`crm.travelers.update.profile.accessibility`; any of, optional)
    - any of the following:
      - `Accessibility`
        - `medicalNotes` (`Accessibility.medicalNotes`; any of, required)
          - any of the following: `string`, `null`
        - `mobility` (`Accessibility.mobility`; any of, required)
          - any of the following:
            - `string`: one of `"NONE"`, `"REDUCED_MOBILITY"`, `"WHEELCHAIR_ASSISTANCE"`, `"WHEELCHAIR_OWN"`
            - `null`
      - `null`
  - `air` (`crm.travelers.update.profile.air`; any of, optional)
    - any of the following:
      - `AirPreferences`
        - `cabinClass` (`AirPreferences.cabinClass`; any of, required)
          - any of the following:
            - `string`: one of `"BUSINESS"`, `"ECONOMY"`, `"FIRST"`, `"PREMIUM_ECONOMY"`
            - `null`
        - `mealCode` (`AirPreferences.mealCode`; any of, required)
          - any of the following: `string`, `null`
        - `notes` (`AirPreferences.notes`; any of, required)
          - any of the following: `string`, `null`
        - `preferredAirlineCodes` (`AirPreferences.preferredAirlineCodes`; array of string, required)
          - pattern: `^[A-Z0-9]{2,3}$`
        - `preferredAirportCodes` (`AirPreferences.preferredAirportCodes`; array of string, required)
          - pattern: `^[A-Z]{3}$`
        - `seat` (`AirPreferences.seat`; any of, required)
          - any of the following:
            - `string`: one of `"AISLE"`, `"ANY"`, `"WINDOW"`
            - `null`
      - `null`
  - `dietary` (`crm.travelers.update.profile.dietary`; any of, optional)
    - any of the following:
      - `Dietary`
        - `codes` (`Dietary.codes`; array of string, required)
          - one of `"DIABETIC"`, `"GLUTEN_FREE"`, `"HALAL"`, `"KOSHER"`, `"LACTOSE_FREE"`, `"LOW_SODIUM"`, `"NUT_ALLERGY"`, `"OTHER"`, `"SHELLFISH_ALLERGY"`, `"VEGAN"`, `"VEGETARIAN"`
        - `notes` (`Dietary.notes`; any of, required)
          - any of the following: `string`, `null`
      - `null`
  - `emergencyContacts` (`crm.travelers.update.profile.emergencyContacts`; array of object, optional)
    - `name` (`crm.travelers.update.profile.emergencyContacts.name`; string, required)
      - maxLength: `200` · minLength: `1`
    - `phone` (`crm.travelers.update.profile.emergencyContacts.phone`; any of, required)
      - any of the following: `E164Phone`, `null`
    - `relationship` (`crm.travelers.update.profile.emergencyContacts.relationship`; any of, required)
      - any of the following: `string`, `null`
    - `travelerId` (`crm.travelers.update.profile.emergencyContacts.travelerId`; any of, required)
      - any of the following: `string`, `null`
  - `hotel` (`crm.travelers.update.profile.hotel`; any of, optional)
    - any of the following:
      - `HotelPreferences`
        - `bed` (`HotelPreferences.bed`; any of, required)
          - any of the following:
            - `string`: one of `"ANY"`, `"KING"`, `"QUEEN"`, `"TWIN"`
            - `null`
        - `floor` (`HotelPreferences.floor`; any of, required)
          - any of the following:
            - `string`: one of `"ANY"`, `"HIGH"`, `"LOW"`
            - `null`
        - `notes` (`HotelPreferences.notes`; any of, required)
          - any of the following: `string`, `null`
        - `preferredBrands` (`HotelPreferences.preferredBrands`; array of string, required)
          - maxLength: `80` · minLength: `1`
        - `roomType` (`HotelPreferences.roomType`; any of, required)
          - any of the following: `string`, `null`
      - `null`
  - `interests` (`crm.travelers.update.profile.interests`; any of, optional)
    - any of the following:
      - `Interests`
        - `bucketList` (`Interests.bucketList`; any of, required)
          - any of the following: `string`, `null`
        - `budgetNotes` (`Interests.budgetNotes`; any of, required)
          - any of the following: `string`, `null`
        - `interests` (`Interests.interests`; array of string, required)
          - maxLength: `60` · minLength: `1`
        - `travelStyles` (`Interests.travelStyles`; array of string, required)
          - maxLength: `60` · minLength: `1`
      - `null`
  - `loyaltyPrograms` (`crm.travelers.update.profile.loyaltyPrograms`; array of object, optional)
    - `number` (`crm.travelers.update.profile.loyaltyPrograms.number`; string, required)
      - maxLength: `255` · minLength: `1`
    - `receiverCode` (`crm.travelers.update.profile.loyaltyPrograms.receiverCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `supplierCode` (`crm.travelers.update.profile.loyaltyPrograms.supplierCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `tier` (`crm.travelers.update.profile.loyaltyPrograms.tier`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `type` (`crm.travelers.update.profile.loyaltyPrograms.type`; string, optional)
      - maxLength: `255` · minLength: `1`
  - `pets` (`crm.travelers.update.profile.pets`; array of object, optional)
    - `name` (`crm.travelers.update.profile.pets.name`; string, required)
      - maxLength: `80` · minLength: `1`
    - `notes` (`crm.travelers.update.profile.pets.notes`; any of, required)
      - any of the following: `string`, `null`
    - `species` (`crm.travelers.update.profile.pets.species`; string, required)
      - maxLength: `60` · minLength: `1`
    - `weightKg` (`crm.travelers.update.profile.pets.weightKg`; any of, required)
      - any of the following: `number`, `null`
- `referredByTravelerId` (`crm.travelers.update.referredByTravelerId`; any of, optional) — The traveler of the agency who referred this one, never the traveler itself; null clears it.
  - any of the following: `TravelerId`, `null`
- `relationships` (`crm.travelers.update.relationships`; array of object, optional) — Every relationship to keep, at most 20, written on both travelers: one left out is removed from both.
  - `relatedTravelerId` (`crm.travelers.update.relationships.relatedTravelerId`; string, required) — The related traveler: one of the agency's, never this traveler.
    - maxLength: `64` · minLength: `1`
  - `relationship` (`crm.travelers.update.relationships.relationship`; string, required) — Who the related traveler is to this one; the other traveler gets the inverse.
    - one of `"ASSISTANT"`, `"CHILD"`, `"COLLEAGUE"`, `"EMPLOYER"`, `"FRIEND"`, `"NANNY"`, `"PARENT"`, `"PARTNER"`, `"REFERRED"`, `"REFERRED_BY"`, `"RELATIVE"`, `"SIBLING"`, `"SPOUSE"`
- `residenceCountryCode` (`crm.travelers.update.residenceCountryCode`; any of, optional) — Country of residence, as an ISO 3166-1 alpha-2 country code; null clears it.
  - any of the following: `CountryCode`, `null`
- `sex` (`crm.travelers.update.sex`; any of, optional) — The sex marker on the travel document; null clears it.
  - any of the following: `ParticipantSex`, `null`
- `stage` (`crm.travelers.update.stage`; string, optional) — LEAD or CLIENT.
  - one of `"CLIENT"`, `"LEAD"`
- `tags` (`crm.travelers.update.tags`; array of string, optional) — Every label to keep, at most 20, each 1 to 40 characters.
  - maxLength: `40` · minLength: `1`
- `visibility` (`crm.travelers.update.visibility`; string, optional) — Which of the agency's advisors see the traveler.
  - one of `"ADVISORS"`, `"COMPANY"`

## Example request

```json
{
  "revision": 3,
  "tags": [
    "VIP"
  ]
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.crm.travelers.update({
  "travelerId": "string",
  "revision": 3,
  "tags": [
    "VIP"
  ]
});
```

### Nicer CLI

```bash
nicer crm travelers update --traveler-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "revision": 3,
  "tags": [
    "VIP"
  ]
}
JSON
```

### cURL

```bash
curl --request PUT \
  --url 'https://api.nicer.travel/crm/travelers/<travelerId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Nicer-CRM-Contract: resource' \
  --header 'x-nicer-company: string' \
  --data '
{
  "revision": 3,
  "tags": [
    "VIP"
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/crm/travelers/<travelerId>';
const options = {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    'x-nicer-company': 'string',
    'X-Nicer-CRM-Contract': 'resource',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({revision: 3, tags: ['VIP']})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/crm/travelers/<travelerId>"

payload = {
    "revision": 3,
    "tags": ["VIP"]
}
headers = {
    "Content-Type": "application/json",
    "x-nicer-company": "string",
    "X-Nicer-CRM-Contract": "resource",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "address": {
    "address1": "Av. Reforma 222",
    "city": "Mexico City",
    "countryCode": "MX",
    "postalCode": "06600",
    "stateCode": "CMX"
  },
  "assignedAdvisorUserId": "string",
  "birthDate": "2019-08-24",
  "bookedTotal": {
    "amountMinor": 9007199254740991,
    "currency": "string"
  },
  "companyName": "string",
  "contact": {
    "email": "ana@example.com",
    "phone": "+525512345678"
  },
  "contributingAdvisorIds": [
    "string"
  ],
  "createdAt": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "customFields": {
    "property1": "string",
    "property2": "string"
  },
  "displayName": "string",
  "documents": [
    {
      "citizenshipCountry": "string",
      "expirationDate": "2019-08-24",
      "issueDate": "2019-08-24",
      "issuingCountryCode": "string",
      "kind": "DRIVER_LICENSE",
      "number": "string",
      "placeOfBirth": "string",
      "placeOfIssue": "string",
      "documentId": "string",
      "label": "string"
    }
  ],
  "frequentFlyerPrograms": [
    {
      "airlineIataCode": "AM",
      "memberNumber": "123456789"
    }
  ],
  "importantDates": [
    {
      "date": "2019-08-24",
      "dateId": "string",
      "kind": "ANNIVERSARY",
      "label": "string"
    }
  ],
  "isArchived": true,
  "lastActivityAt": "2019-08-24T14:15:22Z",
  "lastModifiedBy": "string",
  "lastTripEndDate": "2019-08-24",
  "linkedAt": "2019-08-24T14:15:22Z",
  "marketingConsent": {
    "email": true,
    "sms": true,
    "whatsapp": true
  },
  "name": {
    "familyName": "Pérez",
    "givenName": "Ana",
    "middleName": null
  },
  "nationalityCountryCode": "string",
  "nextTripStartDate": "2019-08-24",
  "origin": "BACKFILL",
  "possibleDuplicates": [
    {
      "confidence": "HIGH",
      "displayName": "string",
      "reason": "EMAIL",
      "travelerId": "string"
    }
  ],
  "preferredChannel": "EMAIL",
  "preferredLanguage": "string",
  "preferredName": "string",
  "profile": {
    "accessibility": {
      "medicalNotes": "string",
      "mobility": "NONE"
    },
    "air": {
      "cabinClass": "BUSINESS",
      "mealCode": "string",
      "notes": "string",
      "preferredAirlineCodes": [
        "string"
      ],
      "preferredAirportCodes": [
        "string"
      ],
      "seat": "AISLE"
    },
    "dietary": {
      "codes": [
        "DIABETIC"
      ],
      "notes": "string"
    },
    "emergencyContacts": [
      {
        "name": "string",
        "phone": "+14155550123",
        "relationship": "string",
        "travelerId": "string"
      }
    ],
    "hotel": {
      "bed": "ANY",
      "floor": "ANY",
      "notes": "string",
      "preferredBrands": [
        "string"
      ],
      "roomType": "string"
    },
    "interests": {
      "bucketList": "string",
      "budgetNotes": "string",
      "interests": [
        "string"
      ],
      "travelStyles": [
        "string"
      ]
    },
    "loyaltyPrograms": [
      {
        "number": "987654321",
        "supplierCode": "MC",
        "tier": "Gold",
        "type": "HOTEL"
      }
    ],
    "pets": [
      {
        "name": "string",
        "notes": "string",
        "species": "string",
        "weightKg": 200
      }
    ]
  },
  "referredByTravelerId": "string",
  "relationships": [
    {
      "displayName": "string",
      "relatedTravelerId": "string",
      "relationship": "ASSISTANT"
    }
  ],
  "residenceCountryCode": "string",
  "revision": 1,
  "sex": "F",
  "stage": "CLIENT",
  "tags": [
    "string"
  ],
  "travelerId": "string",
  "trips": [
    {
      "relationship": "BILLING_CONTACT",
      "salesStage": "BOOKED",
      "travelersTripId": "string",
      "tripEndDate": "2019-08-24",
      "tripName": "string",
      "tripStartDate": "2019-08-24"
    }
  ],
  "tripsCount": 9007199254740991,
  "updatedAt": "2019-08-24T14:15:22Z",
  "userId": "string",
  "visibility": "ADVISORS"
}
```

- `address` (`crm.travelers.update.response.200.address`; any of, required) — The traveler's postal address; null when nobody gave one.
  - any of the following:
    - `PersonAddress`
      - `address1` (`PersonAddress.address1`; string, required)
        - maxLength: `200` · minLength: `1`
      - `city` (`PersonAddress.city`; string, required)
        - maxLength: `100` · minLength: `1`
      - `countryCode` (`PersonAddress.countryCode`; string, required)
        - pattern: `^[A-Z]{2}$`
      - `postalCode` (`PersonAddress.postalCode`; string, required)
        - maxLength: `20` · minLength: `1`
      - `stateCode` (`PersonAddress.stateCode`; string, required)
        - maxLength: `100` · minLength: `1`
    - `null`
- `assignedAdvisorUserId` (`crm.travelers.update.response.200.assignedAdvisorUserId`; any of, required) — The user id of the advisor responsible for the traveler; null until an admin assigns one.
  - any of the following: `string`, `null`
- `birthDate` (`crm.travelers.update.response.200.birthDate`; any of, required) — Date of birth, YYYY-MM-DD; null when unknown.
  - any of the following: `string`, `null`
- `bookedTotal` (`crm.travelers.update.response.200.bookedTotal`; any of, 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` (`Money.amountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `currency` (`Money.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
    - `null`
- `companyName` (`crm.travelers.update.response.200.companyName`; string, required) — The agency the traveler belongs to.
- `contact` (`crm.travelers.update.response.200.contact`; object, required) — The traveler's email and phone, the phone in E.164; each is null when unknown.
  - `email` (`crm.travelers.update.response.200.contact.email`; any of, required)
    - any of the following: `string`, `null`
  - `phone` (`crm.travelers.update.response.200.contact.phone`; any of, required)
    - any of the following: `E164Phone`, `null`
- `contributingAdvisorIds` (`crm.travelers.update.response.200.contributingAdvisorIds`; array of string, required) — The user ids of every advisor who serves the traveler, the assigned one included.
- `createdAt` (`crm.travelers.update.response.200.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` (`crm.travelers.update.response.200.createdBy`; string, required) — The user id of who added the traveler, or SYSTEM.
- `customFields` (`crm.travelers.update.response.200.customFields`; map of CustomFieldValue, required) — The values of the agency's own custom fields, by the field's key.
- `displayName` (`crm.travelers.update.response.200.displayName`; string, required) — The name to show: the preferred name, else the given name, then the family name.
- `frequentFlyerPrograms` (`crm.travelers.update.response.200.frequentFlyerPrograms`; array of object, required) — Airline loyalty memberships, as a flight reservation carries them.
  - `airlineIataCode` (`crm.travelers.update.response.200.frequentFlyerPrograms.airlineIataCode`; string, required)
    - pattern: `^[A-Z0-9]{2,3}$`
  - `memberNumber` (`crm.travelers.update.response.200.frequentFlyerPrograms.memberNumber`; string, required)
    - maxLength: `100` · minLength: `1`
- `isArchived` (`crm.travelers.update.response.200.isArchived`; boolean, required) — Whether the traveler is archived: kept, but out of the lists and searches.
- `lastActivityAt` (`crm.travelers.update.response.200.lastActivityAt`; any of, required) — When something last happened with the traveler, ISO 8601 in UTC; null when nothing has.
  - any of the following: `string`, `null`
- `lastModifiedBy` (`crm.travelers.update.response.200.lastModifiedBy`; string, required) — The user id of who last changed the traveler, or SYSTEM.
- `lastTripEndDate` (`crm.travelers.update.response.200.lastTripEndDate`; any of, 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` (`crm.travelers.update.response.200.linkedAt`; any of, 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` (`crm.travelers.update.response.200.marketingConsent`; object, required) — Whether the traveler agreed to marketing messages, per channel.
  - `email` (`crm.travelers.update.response.200.marketingConsent.email`; boolean, required) — Whether the traveler agreed to marketing by email.
  - `sms` (`crm.travelers.update.response.200.marketingConsent.sms`; boolean, required) — Whether the traveler agreed to marketing by SMS.
  - `whatsapp` (`crm.travelers.update.response.200.marketingConsent.whatsapp`; boolean, required) — Whether the traveler agreed to marketing on WhatsApp.
- `name` (`crm.travelers.update.response.200.name`; object, required) — The legal name, as printed on the travel document.
  - `familyName` (`crm.travelers.update.response.200.name.familyName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `givenName` (`crm.travelers.update.response.200.name.givenName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `middleName` (`crm.travelers.update.response.200.name.middleName`; any of, required)
    - any of the following: `string`, `null`
- `nationalityCountryCode` (`crm.travelers.update.response.200.nationalityCountryCode`; any of, required) — Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown.
  - any of the following: `CountryCode`, `null`
- `nextTripStartDate` (`crm.travelers.update.response.200.nextTripStartDate`; any of, 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` (`crm.travelers.update.response.200.origin`; string, required) — How the traveler entered the CRM.
  - one of `"BACKFILL"`, `"CHECKOUT"`, `"IMPORT"`, `"INVITE"`, `"MANUAL"`, `"REFERRAL"`, `"SIGNUP"`, `"TRIP"`
- `preferredChannel` (`crm.travelers.update.response.200.preferredChannel`; any of, required) — How the traveler prefers to be contacted; null when they have not said.
  - any of the following: `PreferredChannel`, `null`
- `preferredLanguage` (`crm.travelers.update.response.200.preferredLanguage`; any of, 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` (`crm.travelers.update.response.200.preferredName`; any of, required) — The name the traveler goes by when it is not their given name; null otherwise.
  - any of the following: `string`, `null`
- `referredByTravelerId` (`crm.travelers.update.response.200.referredByTravelerId`; any of, required) — The traveler who referred this one; null when nobody did.
  - any of the following: `string`, `null`
- `residenceCountryCode` (`crm.travelers.update.response.200.residenceCountryCode`; any of, required) — Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown.
  - any of the following: `CountryCode`, `null`
- `revision` (`crm.travelers.update.response.200.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` (`crm.travelers.update.response.200.sex`; any of, required) — The sex marker on the travel document; null when unknown.
  - any of the following: `ParticipantSex`, `null`
- `stage` (`crm.travelers.update.response.200.stage`; string, required) — LEAD until the traveler's first booking is confirmed, then CLIENT.
  - one of `"CLIENT"`, `"LEAD"`
- `tags` (`crm.travelers.update.response.200.tags`; array of string, required) — Labels the agency groups travelers by, such as VIP.
  - maxLength: `40` · minLength: `1`
- `travelerId` (`crm.travelers.update.response.200.travelerId`; string, required) — The traveler's id.
  - maxLength: `64` · minLength: `1`
- `tripsCount` (`crm.travelers.update.response.200.tripsCount`; integer, required) — How many trips the traveler is on.
  - maximum: `9007199254740991` · minimum: `0`
- `updatedAt` (`crm.travelers.update.response.200.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` (`crm.travelers.update.response.200.userId`; any of, required) — The traveler's Nicer account, once they have one and it is linked; null otherwise.
  - any of the following: `string`, `null`
- `visibility` (`crm.travelers.update.response.200.visibility`; string, required) — Which of the agency's advisors see the traveler.
  - one of `"ADVISORS"`, `"COMPANY"`
- `documents` (`crm.travelers.update.response.200.documents`; array of object, optional) — The traveler's travel documents with their full numbers, oldest first. Only with expand=documents; never in a list.
  - `expirationDate` (`crm.travelers.update.response.200.documents.expirationDate`; any of, required) — The day the document expires, YYYY-MM-DD; null for one that does not.
    - any of the following: `string`, `null`
  - `issuingCountryCode` (`crm.travelers.update.response.200.documents.issuingCountryCode`; any of, 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` (`crm.travelers.update.response.200.documents.kind`; string, required) — What the document is.
    - one of `"DRIVER_LICENSE"`, `"KNOWN_TRAVELER_NUMBER"`, `"NATIONAL_ID"`, `"PASSPORT"`, `"REDRESS_NUMBER"`, `"RESIDENCE_PERMIT"`, `"VISA"`
  - `number` (`crm.travelers.update.response.200.documents.number`; string, required) — The document's number, in full, 1 to 100 characters.
    - maxLength: `100` · minLength: `1`
  - `documentId` (`crm.travelers.update.response.200.documents.documentId`; string, required) — The document's id: send it back in an update to keep or replace this document.
    - minLength: `1`
  - `label` (`crm.travelers.update.response.200.documents.label`; any of, 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` (`crm.travelers.update.response.200.documents.citizenshipCountry`; any of, 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` (`crm.travelers.update.response.200.documents.issueDate`; any of, optional) — The day the document was issued, YYYY-MM-DD; null or absent when unknown.
    - any of the following: `string`, `null`
  - `placeOfBirth` (`crm.travelers.update.response.200.documents.placeOfBirth`; any of, optional) — The place of birth printed on the document; null or absent when unknown.
    - any of the following: `string`, `null`
  - `placeOfIssue` (`crm.travelers.update.response.200.documents.placeOfIssue`; any of, optional) — Where the document was issued; null or absent when unknown.
    - any of the following: `string`, `null`
- `importantDates` (`crm.travelers.update.response.200.importantDates`; array of object, optional) — The dates the agency remembers every year; the birthday is birthDate, not one of these. Only with expand=importantDates.
  - `date` (`crm.travelers.update.response.200.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` (`crm.travelers.update.response.200.importantDates.dateId`; string, required) — The date's id: send it back in an update to keep or replace this date.
    - minLength: `1`
  - `kind` (`crm.travelers.update.response.200.importantDates.kind`; string, required) — What kind of date it is.
    - one of `"ANNIVERSARY"`, `"OTHER"`
  - `label` (`crm.travelers.update.response.200.importantDates.label`; any of, 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` (`crm.travelers.update.response.200.possibleDuplicates`; array of object, optional) — 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` (`crm.travelers.update.response.200.possibleDuplicates.confidence`; string, required) — HIGH for the same email, MEDIUM for the same phone or the same name and birth date.
    - one of `"HIGH"`, `"MEDIUM"`
  - `displayName` (`crm.travelers.update.response.200.possibleDuplicates.displayName`; string, required) — The other traveler's display name.
  - `reason` (`crm.travelers.update.response.200.possibleDuplicates.reason`; string, required) — What the two travelers share.
    - one of `"EMAIL"`, `"NAME_AND_BIRTH_DATE"`, `"PHONE"`
  - `travelerId` (`crm.travelers.update.response.200.possibleDuplicates.travelerId`; string, required) — The other traveler's id: merge the two with POST /crm/travelers/{travelerId}/merge.
    - maxLength: `64` · minLength: `1`
- `profile` (`crm.travelers.update.response.200.profile`; object, optional) — The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets. Only with expand=profile.
  - `accessibility` (`crm.travelers.update.response.200.profile.accessibility`; any of, required)
    - any of the following:
      - `Accessibility`
        - `medicalNotes` (`Accessibility.medicalNotes`; any of, required)
          - any of the following: `string`, `null`
        - `mobility` (`Accessibility.mobility`; any of, required)
          - any of the following:
            - `string`: one of `"NONE"`, `"REDUCED_MOBILITY"`, `"WHEELCHAIR_ASSISTANCE"`, `"WHEELCHAIR_OWN"`
            - `null`
      - `null`
  - `air` (`crm.travelers.update.response.200.profile.air`; any of, required)
    - any of the following:
      - `AirPreferences`
        - `cabinClass` (`AirPreferences.cabinClass`; any of, required)
          - any of the following:
            - `string`: one of `"BUSINESS"`, `"ECONOMY"`, `"FIRST"`, `"PREMIUM_ECONOMY"`
            - `null`
        - `mealCode` (`AirPreferences.mealCode`; any of, required)
          - any of the following: `string`, `null`
        - `notes` (`AirPreferences.notes`; any of, required)
          - any of the following: `string`, `null`
        - `preferredAirlineCodes` (`AirPreferences.preferredAirlineCodes`; array of string, required)
          - pattern: `^[A-Z0-9]{2,3}$`
        - `preferredAirportCodes` (`AirPreferences.preferredAirportCodes`; array of string, required)
          - pattern: `^[A-Z]{3}$`
        - `seat` (`AirPreferences.seat`; any of, required)
          - any of the following:
            - `string`: one of `"AISLE"`, `"ANY"`, `"WINDOW"`
            - `null`
      - `null`
  - `dietary` (`crm.travelers.update.response.200.profile.dietary`; any of, required)
    - any of the following:
      - `Dietary`
        - `codes` (`Dietary.codes`; array of string, required)
          - one of `"DIABETIC"`, `"GLUTEN_FREE"`, `"HALAL"`, `"KOSHER"`, `"LACTOSE_FREE"`, `"LOW_SODIUM"`, `"NUT_ALLERGY"`, `"OTHER"`, `"SHELLFISH_ALLERGY"`, `"VEGAN"`, `"VEGETARIAN"`
        - `notes` (`Dietary.notes`; any of, required)
          - any of the following: `string`, `null`
      - `null`
  - `emergencyContacts` (`crm.travelers.update.response.200.profile.emergencyContacts`; array of object, required)
    - `name` (`crm.travelers.update.response.200.profile.emergencyContacts.name`; string, required)
      - maxLength: `200` · minLength: `1`
    - `phone` (`crm.travelers.update.response.200.profile.emergencyContacts.phone`; any of, required)
      - any of the following: `E164Phone`, `null`
    - `relationship` (`crm.travelers.update.response.200.profile.emergencyContacts.relationship`; any of, required)
      - any of the following: `string`, `null`
    - `travelerId` (`crm.travelers.update.response.200.profile.emergencyContacts.travelerId`; any of, required)
      - any of the following: `string`, `null`
  - `hotel` (`crm.travelers.update.response.200.profile.hotel`; any of, required)
    - any of the following:
      - `HotelPreferences`
        - `bed` (`HotelPreferences.bed`; any of, required)
          - any of the following:
            - `string`: one of `"ANY"`, `"KING"`, `"QUEEN"`, `"TWIN"`
            - `null`
        - `floor` (`HotelPreferences.floor`; any of, required)
          - any of the following:
            - `string`: one of `"ANY"`, `"HIGH"`, `"LOW"`
            - `null`
        - `notes` (`HotelPreferences.notes`; any of, required)
          - any of the following: `string`, `null`
        - `preferredBrands` (`HotelPreferences.preferredBrands`; array of string, required)
          - maxLength: `80` · minLength: `1`
        - `roomType` (`HotelPreferences.roomType`; any of, required)
          - any of the following: `string`, `null`
      - `null`
  - `interests` (`crm.travelers.update.response.200.profile.interests`; any of, required)
    - any of the following:
      - `Interests`
        - `bucketList` (`Interests.bucketList`; any of, required)
          - any of the following: `string`, `null`
        - `budgetNotes` (`Interests.budgetNotes`; any of, required)
          - any of the following: `string`, `null`
        - `interests` (`Interests.interests`; array of string, required)
          - maxLength: `60` · minLength: `1`
        - `travelStyles` (`Interests.travelStyles`; array of string, required)
          - maxLength: `60` · minLength: `1`
      - `null`
  - `loyaltyPrograms` (`crm.travelers.update.response.200.profile.loyaltyPrograms`; array of object, required)
    - `number` (`crm.travelers.update.response.200.profile.loyaltyPrograms.number`; string, required)
      - maxLength: `255` · minLength: `1`
    - `receiverCode` (`crm.travelers.update.response.200.profile.loyaltyPrograms.receiverCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `supplierCode` (`crm.travelers.update.response.200.profile.loyaltyPrograms.supplierCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `tier` (`crm.travelers.update.response.200.profile.loyaltyPrograms.tier`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `type` (`crm.travelers.update.response.200.profile.loyaltyPrograms.type`; string, optional)
      - maxLength: `255` · minLength: `1`
  - `pets` (`crm.travelers.update.response.200.profile.pets`; array of object, required)
    - `name` (`crm.travelers.update.response.200.profile.pets.name`; string, required)
      - maxLength: `80` · minLength: `1`
    - `notes` (`crm.travelers.update.response.200.profile.pets.notes`; any of, required)
      - any of the following: `string`, `null`
    - `species` (`crm.travelers.update.response.200.profile.pets.species`; string, required)
      - maxLength: `60` · minLength: `1`
    - `weightKg` (`crm.travelers.update.response.200.profile.pets.weightKg`; any of, required)
      - any of the following: `number`, `null`
- `relationships` (`crm.travelers.update.response.200.relationships`; array of object, optional) — Other travelers of the agency this one is related to. Only with expand=relationships.
  - `displayName` (`crm.travelers.update.response.200.relationships.displayName`; string, required) — The related traveler's display name.
  - `relatedTravelerId` (`crm.travelers.update.response.200.relationships.relatedTravelerId`; string, required) — The related traveler's id.
    - maxLength: `64` · minLength: `1`
  - `relationship` (`crm.travelers.update.response.200.relationships.relationship`; string, required) — Who the related traveler is to this one.
    - one of `"ASSISTANT"`, `"CHILD"`, `"COLLEAGUE"`, `"EMPLOYER"`, `"FRIEND"`, `"NANNY"`, `"PARENT"`, `"PARTNER"`, `"REFERRED"`, `"REFERRED_BY"`, `"RELATIVE"`, `"SIBLING"`, `"SPOUSE"`
- `trips` (`crm.travelers.update.response.200.trips`; array of object, optional) — The trips the traveler is on, the latest start first and undated ones last. Only with expand=trips.
  - `relationship` (`crm.travelers.update.response.200.trips.relationship`; string, required) — The traveler's part on the trip.
    - one of `"BILLING_CONTACT"`, `"PAYER"`, `"PRIMARY"`, `"TRAVELER"`
  - `salesStage` (`crm.travelers.update.response.200.trips.salesStage`; any of, required) — Where the trip stands as a sale; null when it has no stage.
    - any of the following: `SalesStage`, `null`
  - `travelersTripId` (`crm.travelers.update.response.200.trips.travelersTripId`; string, required) — The trip's id, e.g. TT….
  - `tripEndDate` (`crm.travelers.update.response.200.trips.tripEndDate`; any of, required) — The trip's last day, YYYY-MM-DD; null while it has no dates.
    - any of the following: `string`, `null`
  - `tripName` (`crm.travelers.update.response.200.trips.tripName`; any of, required) — The trip's name; null when it has none.
    - any of the following: `string`, `null`
  - `tripStartDate` (`crm.travelers.update.response.200.trips.tripStartDate`; any of, 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.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.update.response.400.errorCode`; string, required)
- `errorMessage` (`crm.travelers.update.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.update.response.401.errorCode`; string, required)
- `errorMessage` (`crm.travelers.update.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.update.response.403.errorCode`; string, required)
- `errorMessage` (`crm.travelers.update.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Notes-and-tasks/crm.travelers.update/index.md
