This Wellpass Admission flow uses operations in the generated MMS API V2 reference. The specification is maintained outside this repository and is not edited here.
The code samples below show example requests. Open an operation to see its request fields, response payloads, and HTTP error responses.
| Operation | Specification |
|---|---|
| Create a member account | Create an account |
| Assign an RFID card | Update RFIDs of a user |
| Validate admission | Member Admission |
| List corporate fitness member accounts | List accounts |
See Wellpass admission error codes for denial reasons and handling guidance.
These links open the shared MMS API reference and its navigation. They do not mean that every MMS operation is required for Wellpass Admission.
Use publishAccount to create an account with membershipType: CORPORATE_FITNESS and a verificationTAN.
- Testhttps://mms.api.ed.ts.egym.coffee/api/v2/accounts
- Prodhttps://mms.api.egym.com/api/v2/accounts
curl -i -X POST \
https://mms.api.ed.ts.egym.coffee/api/v2/accounts \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"email": "string",
"firstName": "John",
"lastName": "Wick",
"dateOfBirth": "2019-08-24",
"gender": "MALE",
"contact": {
"phone": "string",
"street": "string",
"streetNumber": "string",
"zipCode": "string",
"city": "string",
"state": "string",
"country": "DE"
},
"membership": {
"membershipId": "string",
"agreementNumber": "string",
"membershipType": "BASIC",
"membershipSubType": "string",
"endOfContract": "2019-08-24",
"startOfContract": "2019-08-24",
"referringMemberId": "string",
"barcode": "string",
"verificationTAN": "string"
}
}'Use the existing MMS API V2 operation to assign an RFID card to the member.
- Testhttps://mms.api.ed.ts.egym.coffee/api/v2/accounts/{accountId}/rfids
- Prodhttps://mms.api.egym.com/api/v2/accounts/{accountId}/rfids
curl -i -X PUT \
'https://mms.api.ed.ts.egym.coffee/api/v2/accounts/{accountId}/rfids' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"rfids": [
{
"rfid": "string",
"tagFormat": "HITAG1"
}
]
}'Use checkAdmission to verify whether a Wellpass member can enter the gym.
- Testhttps://mms.api.ed.ts.egym.coffee/api/v2/accounts/{accountId}/admissions
- Prodhttps://mms.api.egym.com/api/v2/accounts/{accountId}/admissions
curl -i -X POST \
'https://mms.api.ed.ts.egym.coffee/api/v2/accounts/{accountId}/admissions' \
-H 'x-api-key: YOUR_API_KEY_HERE'Use getCorporateFitnessMemberAccounts to identify memberships that are ending.
- Testhttps://mms.api.ed.ts.egym.coffee/api/v2/accounts/corporate-fitness
- Prodhttps://mms.api.egym.com/api/v2/accounts/corporate-fitness
curl -i -X GET \
'https://mms.api.ed.ts.egym.coffee/api/v2/accounts/corporate-fitness?endDateFrom=2022-09-22&endDateTo=2022-09-23' \
-H 'x-api-key: YOUR_API_KEY_HERE'