Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET /usermatch

Gets the Club OS unique id for a member given the userId from one of Club OS's integrated systems.  Useful to do single sign-on validation. 

GET https://api.club-os.com/usermatch?systemCode[systemCode]&userId=[userId]

Parameters

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

VariableTypeDescription
systemCodeString

The code of the system you wish to access. Codes can be either 'ABC' or 'OS'Get these codes from your Club OS developer contact.

userIdStringThe system userId to match against.
Success Response

One of the following messages If successful, you will be returned when the request succeeds.

...

a UserResponse object containing the following:

PropertyTypeDescription
trueidUser foundIntegerThe Club OS unique user id.
firstNameStringThe first name of the user.The member was successfully found and you have access to them.false

User not found

The invalid systemCode and userIdYour credentials were invalid
lastNameStringThe last name of the user.
emailStringThe email of the user.
roleStringThe Club OS role of the user (Client, Trainer, ect..)
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.