Appointment, bookable appointment and slots operations
- Set customer's access restriction
PerfectGym Next API (1.13.2)
- Appointment, bookable appointment and slots operations
- Redeem checkin vouchers
- Class and slots operations
- Cross studio operations
- Get customers and contracts
- Retrieve customer accounting details
- Retrieve customer communication details
- Get device information
- Employee operations
- Debt collection operations
- Leads operations
- Manage membership contracts
- Membership operations
- Online offer operations
- Payment operations
- Get studio information
- Get trial offers information
https://open-api-demo.open-api.perfectgym.com/
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/images
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/customers/{customerId}/images
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/images' \
-H 'Content-Type: multipart/form-data' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-F image=string{ "imageUrl": "https://example.com" }
Request
Required Scopes: CUSTOMER_ACCESS_RESTRICTION_WRITE
Creates or updates access restriction for the customer. If the customer already has an access restriction, it will be updated with the provided data. Only previously created restrictions may be updated. If no such restriction exists, it will be created. It is necessary to provide either both startDate and endDate or neither of them.
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/access-restrictions
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/customers/{customerId}/access-restrictions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/access-restrictions' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"reason": "Destroyed equipment",
"startDate": "2024-01-01",
"endDate": "2024-06-30"
}'{ "reason": "Destroyed equipment", "startDate": "2024-01-01", "endDate": "2024-06-30" }
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/access-restrictions
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/customers/{customerId}/access-restrictions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/access-restrictions' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'