Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

GET /profile

Gets the Club OS user profile based on the given userId.  If you don't know the userId, try using /emailmatch or /usermatch 

GET https://api.club-os.com/profile?userId=[userId]

Parameters

The following fields must be included as parameters in the URL of the request.

VariableTypeDescription
userIdStringThe userId to match against
Success Response

If successful, you will be returned a UserProfile object containing the following:

PropertyTypeDescription
idIntegerThe Club OS unique user id.
roleStringThe Club OS role of the user (Member/Prospect)
firstNameStringThe first name of the user.
lastNameStringThe last name of the user.
emailStringThe email of the user.
mobilePhoneStringThe mobile phone of the user.
homePhoneString

The home phone of the user.

workPhoneString

The work phone of the user.

dateOfBirthDateThe date of birth of the user.
genderStringM or F, the gender of the user.
createdDateDateTimeThe UTC timestamp when the user was first created in the Club OS system.
guestPassStartDateThe guest pass start date.
guestPassEndDateThe guest pass end date.
addressLine1StringThe user's address line 1.
addressLine2StringThe user's address line 2.
cityStringThe user's city.
stateStringThe user's state (2 letter abbreviation)
countryStringThe user's country (2 letter abbreviation)
originStringThe user's origin (how they first contacted the club).
marketingSourceStringThe marketing source of the user (how they heard about the club).
workoutGoalPerWeekIntegerThe number of workouts this user plans on doing per week.
startWeightDecimalThe starting weight of the user.
goalWeightDecimalThe goal weight of the user.
followUpStatusStringThe current follow up status of the user.
nextFollowUpDateDateThe next scheduled follow up date for the user.
interestsString[]The list of interests this user has selected in Club OS.
pitchesPitch[]The list of pitches this user has in their profile. A pitch will contain all the information captured during the pitch, and a timestamp for each pitch.
Failure Response

If your request fails, you will receive a Response object containing the following:

PropertyTypeDescription
statusBooleanWill always be false.
responsesResponseMessage[]An array of ResponseMessage objects describing the error.
  • No labels