Add a traveler
Adds a traveler to the agency, with or without a Nicer account, and returns it. Only the legal name is required. The new traveler is the caller's; an admin may assign another advisor. The answer always includes possibleDuplicates, the travelers who may be the same person (same email, phone, or name and birth date), so the caller can merge them: finding them is part of adding one, at up to four reads. expand takes the same members as GET /crm/travelers/{travelerId}; on a new traveler they are empty, and asking for them costs no read. Requires an Idempotency-Key header: a retry with the same key and the same body and expand answers the first result. Errors: 400 ERROR_BODY_VALIDATION, 400 ERROR_INVALID_QUERY for an expand name that is not a member, 400 INVALID_HEADERS or INVALID_IDEMPOTENCY_KEY, 409 CRM_IDEMPOTENCY_CONFLICT for a key reused with another body or expand.
Authorization
Query parameters
- expandoptionalstring
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
Request body JSON required
Returns
200
OK
- createdAtstringrequired
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))$ - updatedAtstringrequired
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))$