This guide explains how to manage EGYM products (like Smart Strength, EGYM+) for members using the MMS API V2.
Product booking allows you to assign specific EGYM services to a member's account. This includes:
- Smart Strength: Access to EGYM Smart Strength machines.
- EGYM+: Access to advanced training methods and programs.
The typical workflow for managing products is:
- Retrieve available products to see what can be assigned.
- Activate a product for a specific member.
- Check active products to verify assignments.
- Deactivate a product when it's no longer needed.
First, retrieve the list of products available in your gym. This will give you the productId needed for assignment.
- Testhttps://one-mms-service.ext-1.test.co.egym.coffee/api/v2/products
- Prodhttps://mms.api.egym.com/api/v2/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://one-mms-service.ext-1.test.co.egym.coffee/api/v2/products \
-H 'x-api-key: YOUR_API_KEY_HERE'To assign a product to a member, use the PUT endpoint. You need to specify the productId, startDate, and optionally an endDate.
- Testhttps://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products
- Prodhttps://mms.api.egym.com/api/v2/accounts/{accountId}/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"productId": "smart_strength",
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}'Note:
startDatecan be today or a future date.endDateis optional but recommended for fixed-term contracts.endDatemax value is 2050-12-31
To see which products are currently active for a member, use the GET endpoint.
- Testhttps://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products
- Prodhttps://mms.api.egym.com/api/v2/accounts/{accountId}/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products' \
-H 'x-api-key: YOUR_API_KEY_HERE'To cancel or remove a product from a member's account, use the DELETE endpoint.
- Testhttps://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products/{productId}
- Prodhttps://mms.api.egym.com/api/v2/accounts/{accountId}/products/{productId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://one-mms-service.ext-1.test.co.egym.coffee/api/v2/accounts/{accountId}/products/{productId}' \
-H 'x-api-key: YOUR_API_KEY_HERE'