Skip to content

getUserDetailsByMembershipAPIKey ​

Retrieves a single User's profile including some connection-related info given a valid userId and API Key

Request ​

http
GET /rest/company/membership/profiles/single

Headers ​

HeaderRequiredDescription
x-nextinteract-company-api-keyYesAdmin-specific API key UUID provided to company

Parameters ​

Possible query parameters : Request must only pass "one" of the parameters below otherwise an error is thrown:

ParameterTypeRequiredDescription
userIdNumberNoUserId of a connection's user profile to retrieve
emailString[255]NoEmail Address of a connection's user profile to retrieve
externalIdString[50]NoExternalId of a connection's Contact record relating to the profile to retrieve. More for enabling V1 VEEVA integration

Response ​

200 OK ​

json
{
  "user": {
    "fieldsToNull": [],
    "uTitleId": null,
    "uTitle": null,
    "uGenderCode": null,
    "uGenderName": null,
    "uEmail": "aaron.mcmullen@hypermedia.com.au",
    "uFirstName": "Joe",
    "uLastName": "Bloggs",
    "uCountryCode": null,
    "uCountryName": null,
    "uPrimaryMobile": null,
    "uDateOfBirth": null,
    "uInterests": null,
    "uDietaryRequirements": null,
    "uPhoto": null,
    "uEnableLocation": "N",
    "uEnableNotifications": "N",
    "uAllowAllEmails": "Y",
    "uAllowNewsletterEmail": "Y",
    "uProfessionId": null,
    "uProfessionName": null,
    "uSpecialtyId": null,
    "uSpecialtyName": null,
    "uOtherTitle": null,
    "uOtherProfession": null,
    "uOtherSpecialty": null,
    "uFacebookId": null,
    "uTwitterId": null,
    "uLinkedinId": null,
    "uLinkedinUrl": null,
    "uTimezoneId": null,
    "addresses": [
      {
        "uuid": "75594f4e-d053-4c93-b045-d013d4aea3c0",
        "type": "Work",
        "typeCode": "W",
        "name": "Address 1 Name",
        "street": "Address 1 Street",
        "city": "Address 1 City",
        "suburb": "Address 1 Suburb",
        "stateCode": "AU-NSW",
        "state": "New South Wales",
        "postcode": "2000",
        "countryCode": "AU",
        "country": "AUSTRALIA",
        "email": "test@test.com",
        "phone": "phone",
        "fax": "fax",
        "mobile": "mobile",
        "department": "department",
        "division": "division",
        "jobTitle": "jobTitle"
      },
      {
        "uuid": "55794f4e-b052-2d93-a045-c014d4aea7b1",
        "type": "Work",
        "typeCode": "W",
        "name": "Alfred Hospital",
        "street": "Alfred Street",
        "city": "Melbourne",
        "suburb": "City",
        "stateCode": "AU-VIC",
        "state": "Victoria",
        "postcode": "3000",
        "countryCode": "AU",
        "country": "AUSTRALIA",
        "email": "test@test.com",
        "phone": "phone",
        "fax": "fax",
        "mobile": "mobile",
        "department": "department",
        "division": "division",
        "jobTitle": "jobTitle"
      }
    ],
    "uIdentifiers": [],
    "uId": 8
  },
  "connectionStatus": {
    "userId": 8,
    "externalId": null,
    "inviteStatusCode": "A",
    "inviteStatusName": "Accepted",
    "dInvited": 1533235880000,
    "dExpires": null,
    "dAccepted": null,
    "dRejected": null,
    "dCancelled": null
  }
}

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSRecordNotFoundExceptionSee Error Definitions
WSCompanyApiKeyNotActiveExceptionSee Error Definitions
WSCompanyNotActiveExceptionSee Error Definitions
WSUserNotFoundExceptionSee Error Definitions
WSUserNotActiveExceptionSee Error Definitions
WSConnectionStatusNotActiveExceptionSee Error Definitions
WSMembershipServiceExceptionSee Error Definitions
WSIncorrectApiKeyTypeExceptionSee Error Definitions