Create New Profile If one doesn't exist
POST {{HostName}}/crm/v1/profiles
Request Body
{"profileDetails"=>{"customer"=>{"personName"=>[{"givenName"=>"James", "surname"=>"Smith", "nameType"=>"Primary"}, {"nameType"=>"Alternate"}, {"nameType"=>"Incognito"}], "birthCountry"=>{"code"=>""}, "language"=>"E"}, "addresses"=>{"addressInfo"=>[{"address"=>{"isValidated"=>false, "addressLine"=>["3450 North Triumph Boulevard", "Suite 300", "", ""], "cityName"=>"Lehi", "postalCode"=>"84043", "state"=>"UT", "country"=>{"value"=>"US"}, "language"=>"E", "type"=>"BUSINESS", "primaryInd"=>true}}]}, "telephones"=>{"telephoneInfo"=>[{"telephone"=>{"phoneTechType"=>"PHONE", "phoneUseType"=>"HOME", "phoneNumber"=>"+1 385 555 0102", "orderSequence"=>"1", "primaryInd"=>true}}]}, "mailingActions"=>{"active"=>true}, "privacyInfo"=>{"marketResearchParticipation"=>true, "infoFromThirdParty"=>true, "autoEnrollLoyaltyProgram"=>false, "allowPhone"=>true, "allowSMS"=>true, "allowEmail"=>true, "optInMailingList"=>true, "optInMarketResearch"=>true, "optInThirdParty"=>true, "optInAutoEnrollmentMember"=>true, "optInPhone"=>true, "optInSms"=>true, "optInEmail"=>true}, "statusCode"=>"Active", "requestForHotel"=>"{{HotelId}}", "markAsRecentlyAccessed"=>true, "profileType"=>"Guest"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-app-key | string | ||
x-hotelid | string |