Get my travel profile
Returns the signed-in person's own traveler at the agency they act in, as they see and fill it; the family they may fill in for there; and the advisors who serve them at every agency, each with the name and photo of their Nicer account. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>. x-nicer-company names the agency; a person who belongs to one agency may leave it out. The answer holds only the caller's own records: traveler is null before they have one at that agency or when no agency is selected, family lists only the children, spouse or partner related to their traveler there who have no account of their own, and the traveler's documents come with their full numbers. A traveler without an account fills their profile through the profile form link an advisor sends instead. Errors: 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.
Authorization
Header parameters
Returns
200
OK
- familyarray ofobjectrequired
The family members the person may fill in for at the agency they act in; empty when no agency is selected.
- travelerobjectrequired
The family member's traveler, as the person fills it for them.
- addressrequired
The traveler's postal address; null when nobody gave one.
}Any of the following:
- PersonAddress
- address1stringrequiredmaxLength: 200 · minLength: 1
- citystringrequiredmaxLength: 100 · minLength: 1
- countryCodestringrequiredpattern: ^[A-Z]{2}$
- postalCodestringrequiredmaxLength: 20 · minLength: 1
- stateCodestringrequiredmaxLength: 100 · minLength: 1
- null
- importantDatesarray ofobjectrequired
The dates the agency remembers every year; the birthday is birthDate, not one of these.
- datestringrequired
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])))$
- profileobjectrequired
The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.
- airrequired}
Any of the following:
- AirPreferences
- cabinClassrequired}
Any of the following:
- stringBUSINESSorECONOMYorFIRSTorPREMIUM_ECONOMY
- null
- mealCoderequired}
Any of the following:
- string
- null
- notesrequired}
Any of the following:
- string
- null
- preferredAirlineCodesarray ofstringrequiredpattern: ^[A-Z0-9]{2,3}$
- preferredAirportCodesarray ofstringrequiredpattern: ^[A-Z]{3}$
- seatrequired}
Any of the following:
- stringAISLEorANYorWINDOW
- null
- null
- hotelrequired}
Any of the following:
- HotelPreferences
- bedrequired}
Any of the following:
- stringANYorKINGorQUEENorTWIN
- null
- floorrequired}
Any of the following:
- stringANYorHIGHorLOW
- null
- notesrequired}
Any of the following:
- string
- null
- preferredBrandsarray ofstringrequiredmaxLength: 80 · minLength: 1
- roomTyperequired}
Any of the following:
- string
- null
- null
- travelerrequired
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
- addressrequired
The traveler's postal address; null when nobody gave one.
}Any of the following:
- PersonAddress
- null
- birthDaterequired
Date of birth, YYYY-MM-DD; null when unknown.
}Any of the following:
- string
- null
- companyNamestringrequired
The agency the traveler belongs to.
- contactobjectrequired
The traveler's email and phone, the phone in E.164; each is null when unknown.
- emailrequired}
Any of the following:
- string
- null
- phonerequired}
Any of the following:
- E164Phone
- null
- documentsarray ofobjectrequired
The traveler's travel documents with their full numbers, oldest first.
- expirationDaterequired
The day the document expires, YYYY-MM-DD; null for one that does not.
}Any of the following:
- string
- null
- issuingCountryCoderequired
The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- kindstring·one of 7 valuesrequired
What the document is.
Allowed values: DRIVER_LICENSE, KNOWN_TRAVELER_NUMBER, NATIONAL_ID, PASSPORT, REDRESS_NUMBER, RESIDENCE_PERMIT, VISA - numberstringrequired
The document's number, in full, 1 to 100 characters.
maxLength: 100 · minLength: 1 - documentIdstringrequired
The document's id: send it back in an update to keep or replace this document.
minLength: 1 - labelrequired
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
- citizenshipCountryoptional
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
- issueDateoptional
The day the document was issued, YYYY-MM-DD; null or absent when unknown.
}Any of the following:
- string
- null
- placeOfBirthoptional
The place of birth printed on the document; null or absent when unknown.
}Any of the following:
- string
- null
- placeOfIssueoptional
Where the document was issued; null or absent when unknown.
}Any of the following:
- string
- null
- frequentFlyerProgramsarray ofobjectrequired
Airline loyalty memberships, as a flight reservation carries them.
- airlineIataCodestringrequiredpattern: ^[A-Z0-9]{2,3}$
- memberNumberstringrequiredmaxLength: 100 · minLength: 1
- importantDatesarray ofobjectrequired
The dates the agency remembers every year; the birthday is birthDate, not one of these.
- datestringrequired
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])))$ - dateIdstringrequired
The date's id: send it back in an update to keep or replace this date.
minLength: 1 - kindANNIVERSARYorOTHERrequired
What kind of date it is.
- labelrequired
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
- marketingConsentobjectrequired
Whether the traveler agreed to marketing messages, per channel.
- emailbooleanrequired
Whether the traveler agreed to marketing by email.
- smsbooleanrequired
Whether the traveler agreed to marketing by SMS.
- whatsappbooleanrequired
Whether the traveler agreed to marketing on WhatsApp.
- nameobjectrequired
The legal name, as printed on the travel document.
- familyNamestringrequiredmaxLength: 100 · minLength: 1
- givenNamestringrequiredmaxLength: 100 · minLength: 1
- middleNamerequired}
Any of the following:
- string
- null
- nationalityCountryCoderequired
Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- preferredChannelrequired
How the traveler prefers to be contacted; null when they have not said.
}Any of the following:
- PreferredChannel
- null
- preferredLanguagerequired
The language to write to the traveler in, e.g. es or en-US; null when unknown.
}Any of the following:
- LanguageTag
- null
- preferredNamerequired
The name the traveler goes by when it is not their given name; null otherwise.
}Any of the following:
- string
- null
- profileobjectrequired
The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.
- accessibilityrequired}
Any of the following:
- Accessibility
- null
- airrequired}
Any of the following:
- AirPreferences
- null
- dietaryrequired}
Any of the following:
- Dietary
- null
- emergencyContactsarray ofobjectrequired
- namestringrequiredmaxLength: 200 · minLength: 1
- phonerequired}
Any of the following:
- E164Phone
- null
- relationshiprequired}
Any of the following:
- string
- null
- travelerIdrequired}
Any of the following:
- string
- null
- hotelrequired}
Any of the following:
- HotelPreferences
- null
- interestsrequired}
Any of the following:
- Interests
- null
- loyaltyProgramsarray ofobjectrequired
- numberstringrequiredmaxLength: 255 · minLength: 1
- receiverCodeoptionalstringmaxLength: 255 · minLength: 1
- supplierCodeoptionalstringmaxLength: 255 · minLength: 1
- tieroptionalstringmaxLength: 255 · minLength: 1
- typeoptionalstringmaxLength: 255 · minLength: 1
- petsarray ofobjectrequired
- namestringrequiredmaxLength: 80 · minLength: 1
- notesrequired}
Any of the following:
- string
- null
- speciesstringrequiredmaxLength: 60 · minLength: 1
- weightKgrequired}
Any of the following:
- number
- null
- residenceCountryCoderequired
Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- revisionintegerrequired
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 - sexrequired
The sex marker on the travel document; null when unknown.
}Any of the following:
- ParticipantSex
- null
- travelerIdstringrequired
The traveler's id.
maxLength: 64 · minLength: 1
- null