Show Profile
const url = 'https://api.wink.travel/api/profile';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/profile \ --header 'Wink-Version: 2.0'Show profile by profile owner.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
User identifier
Indicates whether the user wants to share this profile of themselves with hotel(s)
User details
object
First name
Last name
Telephone
Profile picture URL
Full name
Detailed customer information for this profile
object
Identifier the gender of the customer.
Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.
Marital status of the traveler.
The number of children of the customer.
Name of the (self-professed) country that is clamided for citizenship.
Address line 1
Address line 2
City
State
Postal code
Country
Type of funds preferred for reviewing monetary values, in ISO 4217 codes
The primary language of the customer
Array of emergency contact information for the customer
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Array of customer’s pets
object
Pet name
Pet type
Customer preferences
object
Indicates preference for hotel property locations.
Indicates preference for hotel property types.
Identifies a preferred company by name.
Indicates preferences for hotel property amenities.
Indicates preference for the type of recreation services in a hotel
Indicates preference for type of business services in a hotel
Indicates preference of rtype of security features in a hotel
Indicates preferences for type of features required to meet the needs of persons with physical challenges, disabilities, etc.
Indicates preference for smooking allowed rooms..
Indicates preference for hotel room locations.
Indicates preferences for the size and features of hotel bed types.
Indicates preferences for type of food listener facilities in a hotel.
Indicates preferences for hotel room amenities.
Guest type
Indicates meal preference.
Indicates cuisine preference.
Indicates interest preference
Indicates beverage preference.
Indicates food preference.
Indicates allergies
Indicates pet preferences
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "share": false, "user": "", "personal": "", "preferences": ""}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}