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 3 Next »

GET /memberships

Verifies that the given membershipId exists in Club OS and you have access to it.  

GET http://api.club-os.com/users?clubLocationId=[clubLocationId]&membershipId=[membershipId]

VariableTypeDescription
clubLocationIdIntegerThe Club OS unique id for the club location you wish to access. Club OS will provide these to you.
membershipIdIntegerThe Club OS unique id for the membership you are requesting.

POST /memberships

Add a user to the system.

POST http://api.club-os.com/users?clubLocationId=[clubLocationId]

Request Body

The following fields must be included in the body of the HTTP request.

PropertyTypeRequiredDefaultDescription
roleStringY One of 'member', 'trainer', 'salesperson'.
fullAccountBooleanYfalse

Club OS has 2 types of member accounts, Full and Basic. Full means they get access to both nutrition and/or workout features based on the club's service plan.

false - Make the member a Basic account.

true - Make the member full account.

trainerIdIntegerN The Club OS unique id for the trainer of the user being added or updated.
salespersonIdIntegerN The Club OS unique id for the salesperson of the user being added or updated (applies to members only).
templateUsernameStringN The username of the template account that should be applied to the user (applies to members only).
localUserIdStringY Your systems unique id for the user.
firstNameStringY User first name.
lastNameStringN User last name.
emailStringY Email address of the user.
genderStringY 'M' for male, 'F' for female.
birthdateDate (M-d-YYYY)N User date of birth.
joinDateDate (M-d-YYYY)N The date the User joined the club.
homePhoneStringN User home phone number.
workPhoneStringN User work phone number.
mobilePhoneStringN User mobile phone number.
address1StringN User address line 1.
address2StringN User address line 2.
cityStringN User full city.
stateStringN User 2 letter state code, i.e. PA for Pennsylvania.
zipStringN User zip code.

PUT /users

Update a users account type

POST http://api.club-os.com/users?clubLocationId=[clubLocationId]

Request Body

The following fields must be included in the body of the HTTP request.

PropertyTypeRequiredDefaultDescription
userIdIntegerY The Club OS unique id for the member to update
fullAccountBooleanYfalse

Club OS has 2 types of member accounts, Full and Basic. Full means they get access to both nutrition and/or workout features based on the club's service plan.

false - Make the member a Basic account.

true - Make the member full account.

  • No labels