---
title: "Merge a duplicate into 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.

# Merge a duplicate into a traveler

Path: Nicer API › Notes and tasks

`POST /crm/travelers/{travelerId}/merge`

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

Merges duplicateTravelerId into this traveler and returns the traveler that stays: it keeps its values, fills its empty fields from the duplicate and takes its documents, notes, tasks, relationships, trips and account; the duplicate is removed and its id answers as this one. Without expand the answer is the traveler's own fields; expand adds members exactly as on GET /crm/travelers/{travelerId}, read once the merge is done. Requires an Idempotency-Key header: a retry with the same key, duplicate and expand answers the first result. Errors: 400 CRM_MERGE_SAME_TRAVELER, 400 ERROR_INVALID_QUERY for an expand name that is not a member, 404 ERROR_ITEM_NOT_FOUND for either traveler, 409 CRM_IDEMPOTENCY_CONFLICT.

## Authentication

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

## Path parameters

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

## Query parameters

- `expand` (`crm.travelers.merge.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

- `Idempotency-Key` (`crm.travelers.merge.header.Idempotency-Key`; string, required) — Unique key (8–255 chars) per request; replays return the original result.
- `x-nicer-company` (`crm.travelers.merge.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.
- `X-Nicer-CRM-Contract` (`crm.travelers.merge.header.X-Nicer-CRM-Contract`; string, required)
  - one of `"resource"` · example: `"resource"`

## Request body

_Required._

- `duplicateTravelerId` (`crm.travelers.merge.duplicateTravelerId`; string, required) — The traveler's id in the CRM, e.g. TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T.
  - maxLength: `64` · minLength: `1`

## Example request

```json
{
  "duplicateTravelerId": "string"
}
```

## Code samples

### JavaScript SDK

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

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

await nicer.crm.travelers.merge({
  "travelerId": "string",
  "duplicateTravelerId": "string"
});
```

### Nicer CLI

```bash
nicer crm travelers merge --traveler-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "duplicateTravelerId": "string"
}
JSON
```

### cURL

```bash
curl --request POST \
  --url 'https://api.nicer.travel/crm/travelers/<travelerId>/merge' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --header 'X-Nicer-CRM-Contract: resource' \
  --header 'x-nicer-company: string' \
  --data '
{
  "duplicateTravelerId": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/crm/travelers/<travelerId>/merge';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    'x-nicer-company': 'string',
    'X-Nicer-CRM-Contract': 'resource',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({duplicateTravelerId: 'string'})
};

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>/merge"

payload = { "duplicateTravelerId": "string" }
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "x-nicer-company": "string",
    "X-Nicer-CRM-Contract": "resource",
    "Authorization": "Bearer <token>"
}

response = requests.post(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.merge.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.merge.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.merge.response.200.birthDate`; any of, required) — Date of birth, YYYY-MM-DD; null when unknown.
  - any of the following: `string`, `null`
- `bookedTotal` (`crm.travelers.merge.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.merge.response.200.companyName`; string, required) — The agency the traveler belongs to.
- `contact` (`crm.travelers.merge.response.200.contact`; object, required) — The traveler's email and phone, the phone in E.164; each is null when unknown.
  - `email` (`crm.travelers.merge.response.200.contact.email`; any of, required)
    - any of the following: `string`, `null`
  - `phone` (`crm.travelers.merge.response.200.contact.phone`; any of, required)
    - any of the following: `E164Phone`, `null`
- `contributingAdvisorIds` (`crm.travelers.merge.response.200.contributingAdvisorIds`; array of string, required) — The user ids of every advisor who serves the traveler, the assigned one included.
- `createdAt` (`crm.travelers.merge.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.merge.response.200.createdBy`; string, required) — The user id of who added the traveler, or SYSTEM.
- `customFields` (`crm.travelers.merge.response.200.customFields`; map of CustomFieldValue, required) — The values of the agency's own custom fields, by the field's key.
- `displayName` (`crm.travelers.merge.response.200.displayName`; string, required) — The name to show: the preferred name, else the given name, then the family name.
- `frequentFlyerPrograms` (`crm.travelers.merge.response.200.frequentFlyerPrograms`; array of object, required) — Airline loyalty memberships, as a flight reservation carries them.
  - `airlineIataCode` (`crm.travelers.merge.response.200.frequentFlyerPrograms.airlineIataCode`; string, required)
    - pattern: `^[A-Z0-9]{2,3}$`
  - `memberNumber` (`crm.travelers.merge.response.200.frequentFlyerPrograms.memberNumber`; string, required)
    - maxLength: `100` · minLength: `1`
- `isArchived` (`crm.travelers.merge.response.200.isArchived`; boolean, required) — Whether the traveler is archived: kept, but out of the lists and searches.
- `lastActivityAt` (`crm.travelers.merge.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.merge.response.200.lastModifiedBy`; string, required) — The user id of who last changed the traveler, or SYSTEM.
- `lastTripEndDate` (`crm.travelers.merge.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.merge.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.merge.response.200.marketingConsent`; object, required) — Whether the traveler agreed to marketing messages, per channel.
  - `email` (`crm.travelers.merge.response.200.marketingConsent.email`; boolean, required) — Whether the traveler agreed to marketing by email.
  - `sms` (`crm.travelers.merge.response.200.marketingConsent.sms`; boolean, required) — Whether the traveler agreed to marketing by SMS.
  - `whatsapp` (`crm.travelers.merge.response.200.marketingConsent.whatsapp`; boolean, required) — Whether the traveler agreed to marketing on WhatsApp.
- `name` (`crm.travelers.merge.response.200.name`; object, required) — The legal name, as printed on the travel document.
  - `familyName` (`crm.travelers.merge.response.200.name.familyName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `givenName` (`crm.travelers.merge.response.200.name.givenName`; string, required)
    - maxLength: `100` · minLength: `1`
  - `middleName` (`crm.travelers.merge.response.200.name.middleName`; any of, required)
    - any of the following: `string`, `null`
- `nationalityCountryCode` (`crm.travelers.merge.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.merge.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.merge.response.200.origin`; string, required) — How the traveler entered the CRM.
  - one of `"BACKFILL"`, `"CHECKOUT"`, `"IMPORT"`, `"INVITE"`, `"MANUAL"`, `"REFERRAL"`, `"SIGNUP"`, `"TRIP"`
- `preferredChannel` (`crm.travelers.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.response.200.stage`; string, required) — LEAD until the traveler's first booking is confirmed, then CLIENT.
  - one of `"CLIENT"`, `"LEAD"`
- `tags` (`crm.travelers.merge.response.200.tags`; array of string, required) — Labels the agency groups travelers by, such as VIP.
  - maxLength: `40` · minLength: `1`
- `travelerId` (`crm.travelers.merge.response.200.travelerId`; string, required) — The traveler's id.
  - maxLength: `64` · minLength: `1`
- `tripsCount` (`crm.travelers.merge.response.200.tripsCount`; integer, required) — How many trips the traveler is on.
  - maximum: `9007199254740991` · minimum: `0`
- `updatedAt` (`crm.travelers.merge.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.merge.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.merge.response.200.visibility`; string, required) — Which of the agency's advisors see the traveler.
  - one of `"ADVISORS"`, `"COMPANY"`
- `documents` (`crm.travelers.merge.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.merge.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.merge.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.merge.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.merge.response.200.documents.number`; string, required) — The document's number, in full, 1 to 100 characters.
    - maxLength: `100` · minLength: `1`
  - `documentId` (`crm.travelers.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.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.merge.response.200.importantDates.kind`; string, required) — What kind of date it is.
    - one of `"ANNIVERSARY"`, `"OTHER"`
  - `label` (`crm.travelers.merge.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.merge.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.merge.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.merge.response.200.possibleDuplicates.displayName`; string, required) — The other traveler's display name.
  - `reason` (`crm.travelers.merge.response.200.possibleDuplicates.reason`; string, required) — What the two travelers share.
    - one of `"EMAIL"`, `"NAME_AND_BIRTH_DATE"`, `"PHONE"`
  - `travelerId` (`crm.travelers.merge.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.merge.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.merge.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.merge.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.merge.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.merge.response.200.profile.emergencyContacts`; array of object, required)
    - `name` (`crm.travelers.merge.response.200.profile.emergencyContacts.name`; string, required)
      - maxLength: `200` · minLength: `1`
    - `phone` (`crm.travelers.merge.response.200.profile.emergencyContacts.phone`; any of, required)
      - any of the following: `E164Phone`, `null`
    - `relationship` (`crm.travelers.merge.response.200.profile.emergencyContacts.relationship`; any of, required)
      - any of the following: `string`, `null`
    - `travelerId` (`crm.travelers.merge.response.200.profile.emergencyContacts.travelerId`; any of, required)
      - any of the following: `string`, `null`
  - `hotel` (`crm.travelers.merge.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.merge.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.merge.response.200.profile.loyaltyPrograms`; array of object, required)
    - `number` (`crm.travelers.merge.response.200.profile.loyaltyPrograms.number`; string, required)
      - maxLength: `255` · minLength: `1`
    - `receiverCode` (`crm.travelers.merge.response.200.profile.loyaltyPrograms.receiverCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `supplierCode` (`crm.travelers.merge.response.200.profile.loyaltyPrograms.supplierCode`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `tier` (`crm.travelers.merge.response.200.profile.loyaltyPrograms.tier`; string, optional)
      - maxLength: `255` · minLength: `1`
    - `type` (`crm.travelers.merge.response.200.profile.loyaltyPrograms.type`; string, optional)
      - maxLength: `255` · minLength: `1`
  - `pets` (`crm.travelers.merge.response.200.profile.pets`; array of object, required)
    - `name` (`crm.travelers.merge.response.200.profile.pets.name`; string, required)
      - maxLength: `80` · minLength: `1`
    - `notes` (`crm.travelers.merge.response.200.profile.pets.notes`; any of, required)
      - any of the following: `string`, `null`
    - `species` (`crm.travelers.merge.response.200.profile.pets.species`; string, required)
      - maxLength: `60` · minLength: `1`
    - `weightKg` (`crm.travelers.merge.response.200.profile.pets.weightKg`; any of, required)
      - any of the following: `number`, `null`
- `relationships` (`crm.travelers.merge.response.200.relationships`; array of object, optional) — Other travelers of the agency this one is related to. Only with expand=relationships.
  - `displayName` (`crm.travelers.merge.response.200.relationships.displayName`; string, required) — The related traveler's display name.
  - `relatedTravelerId` (`crm.travelers.merge.response.200.relationships.relatedTravelerId`; string, required) — The related traveler's id.
    - maxLength: `64` · minLength: `1`
  - `relationship` (`crm.travelers.merge.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.merge.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.merge.response.200.trips.relationship`; string, required) — The traveler's part on the trip.
    - one of `"BILLING_CONTACT"`, `"PAYER"`, `"PRIMARY"`, `"TRAVELER"`
  - `salesStage` (`crm.travelers.merge.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.merge.response.200.trips.travelersTripId`; string, required) — The trip's id, e.g. TT….
  - `tripEndDate` (`crm.travelers.merge.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.merge.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.merge.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.merge.response.400.errorCode`; string, required)
- `errorMessage` (`crm.travelers.merge.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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