Appointment, bookable appointment and slots operations
PerfectGym Next API (1.11.1)
- 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
- 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/leads/config
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/leads/config
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://open-api-demo.open-api.perfectgym.com/v1/leads/config \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
Represents the mode of an input field
| Enum Value | Description |
|---|---|
| OPTIONAL | The input is optional |
| INACTIVE | The input is disabled |
| MANDATORY | The input is mandatory |
Represents the mode of an input field
| Enum Value | Description |
|---|---|
| OPTIONAL | The input is optional |
| INACTIVE | The input is disabled |
| MANDATORY | The input is mandatory |
Represents the mode of an input field
| Enum Value | Description |
|---|---|
| OPTIONAL | The input is optional |
| INACTIVE | The input is disabled |
| MANDATORY | The input is mandatory |
Represents the mode of an input field
| Enum Value | Description |
|---|---|
| OPTIONAL | The input is optional |
| INACTIVE | The input is disabled |
| MANDATORY | The input is mandatory |
List of the additional information fields configured for leads
{ "addressMode": "INACTIVE", "dateOfBirthMode": "INACTIVE", "genderMode": "INACTIVE", "telephoneMode": "INACTIVE", "additionalInformation": [ { … } ], "communicationPreferences": [ { … } ] }
Lead customer information
Unique ID of the third party customer in the third party system
Gender of the customer
| Enum Value | Description |
|---|---|
| MALE | Male gender of the customer |
| FEMALE | Female gender of the customer |
| UNISEX | Unisex gender of the customer |
List of the communication preferences of the lead
List of the the additional information about the lead
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/leads/validate
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/leads/validate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open-api-demo.open-api.perfectgym.com/v1/leads/validate \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"leadCustomer": {
"thirdPartyId": "A1000",
"firstname": "Max",
"secondFirstname": "Peter",
"lastname": "Mustermann",
"secondLastname": "Meier",
"email": "example@email.com",
"gender": "MALE",
"dateOfBirth": "2000-10-10",
"telephone": "5006001112",
"language": {
"languageCode": "de",
"countryCode": "DE"
}
},
"address": {
"street": "Am Bahnhof",
"houseNumber": "90",
"zipCode": "12133",
"city": "Munich",
"countryCode": "DE",
"province": "Madrid/California",
"provinceCode": "MD/CA",
"secondStreet": "Second Street",
"cityPart": "Tegel",
"district": "District 12",
"streetType": "Avenue",
"streetBlock": "5th block",
"portal": "Portal 1",
"stairway": "Right stairway",
"door": "Door 1",
"additionalAddressInformation": "Additional information",
"floor": "2nd floor",
"buildingName": "Empire State Building"
},
"communicationPreferences": [
{
"messageCategory": "CONTRACT",
"channels": [
{
"communicationChannel": "EMAIL",
"customerOverridable": true,
"active": true
}
]
}
],
"additionalInformation": [
{
"additionalFieldId": 1246357240,
"value": "Friends",
"values": [
"Radio",
"Webinar"
]
}
],
"notes": "Free trials and classes",
"externalIdentifier": "CMPGN-123"
}'{ "status": "POSSIBLE" }
Lead customer information
Unique ID of the third party customer in the third party system
Gender of the customer
| Enum Value | Description |
|---|---|
| MALE | Male gender of the customer |
| FEMALE | Female gender of the customer |
| UNISEX | Unisex gender of the customer |
List of the communication preferences of the lead
List of the the additional information about the lead
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/leads/create
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/leads/create
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open-api-demo.open-api.perfectgym.com/v1/leads/create \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"leadCustomer": {
"thirdPartyId": "A1000",
"firstname": "Max",
"secondFirstname": "Peter",
"lastname": "Mustermann",
"secondLastname": "Meier",
"email": "example@email.com",
"gender": "MALE",
"dateOfBirth": "2000-10-10",
"telephone": "5006001112",
"language": {
"languageCode": "de",
"countryCode": "DE"
}
},
"address": {
"street": "Am Bahnhof",
"houseNumber": "90",
"zipCode": "12133",
"city": "Munich",
"countryCode": "DE",
"province": "Madrid/California",
"provinceCode": "MD/CA",
"secondStreet": "Second Street",
"cityPart": "Tegel",
"district": "District 12",
"streetType": "Avenue",
"streetBlock": "5th block",
"portal": "Portal 1",
"stairway": "Right stairway",
"door": "Door 1",
"additionalAddressInformation": "Additional information",
"floor": "2nd floor",
"buildingName": "Empire State Building"
},
"communicationPreferences": [
{
"messageCategory": "CONTRACT",
"channels": [
{
"communicationChannel": "EMAIL",
"customerOverridable": true,
"active": true
}
]
}
],
"additionalInformation": [
{
"additionalFieldId": 1246357240,
"value": "Friends",
"values": [
"Radio",
"Webinar"
]
}
],
"notes": "Free trials and classes",
"externalIdentifier": "CMPGN-123"
}'{ "id": 1246358530, "customerId": 9876543210, "uuid": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4", "customerNumber": "1-4139" }