Appointment, bookable appointment and slots operations
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/memberships/{customerId}/self-service/contract-data
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/{customerId}/self-service/contract-data
- 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/memberships/{customerId}/self-service/contract-data' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
The contracts desired or current status
| Enum Value | Description |
|---|---|
| ACTIVE | Identifies active contracts |
| INACTIVE | Identifies inactive contracts |
Cancelation status of the contract cancelation
| Enum Value | Description |
|---|---|
| PENDING_WITHDRAWAL_VERIFICATION | The cancelation withdrawal is pending verification. |
| CANCELED | The contract was canceled by the customer. |
| PENDING_VERIFICATION | The cancelation is pending verification. |
Date the cancelation of the contract was or will be canceled
Name of the reason why the contract was canceled
Price details of the contract
Base price of the contract
Current price of the contract. This price takes into account any adjustments that have been made to the base price
Payment frequency of the contract
Unique ID of the payment frequency of a contract
Payment frequency type of a contract
| Enum Value | Description |
|---|---|
| TERM_BASED | Represents that the contract payment frequency is based on terms, with a possibly individual price per term. |
| NON_RECURRING | Represents that the contract payment frequency is non recurring, meaning only one payment is necessary here. |
| FREE | Represents that the contract payment frequency is free of charge. |
| RECURRING | Represents that the contract payment frequency is recurring, meaning that the payment will take place every term. |
| MONTH_DAY | Represents that the contract payment frequency is based on month days, with a possibly individual price per month day. |
Base price, used only for payment frequencies of type RECURRING
Month day to prices list, used for contract payment frequency type MONTH_DAY
Latest date the contract can be canceled
dates the contract can be canceled to
Cancelation origin of the contract cancelation
| Enum Value | Description |
|---|---|
| CUSTOMER | The contract was canceled by the customer. |
| STUDIO | The contract was canceled by the studio. This includes also dunning, contract switch, import, contract voucher withdraw and member cash purchase limit rejection origins. |
[ { "id": 1000, "startDate": "2022-01-15", "endDate": "2025-10-15", "rateName": "Premium", "contractStatus": "ACTIVE", "cancelationPeriod": { … }, "cancelationStatus": "PENDING_VERIFICATION", "cancelationDate": "2023-01-25", "cancelationReason": "Officially ordered studio closure", "price": 19.9, "priceDetails": { … }, "lastPossibleCancelationDate": "2023-01-25", "availableCancelationDates": [ … ], "cancelationOrigin": "CUSTOMER", "rateCodes": [ … ] } ]
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/memberships/{customerId}/self-service/ordinary-contract-cancelation
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/{customerId}/self-service/ordinary-contract-cancelation
- 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/memberships/{customerId}/self-service/ordinary-contract-cancelation' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"cancelationDate": "2023-01-25",
"cancelationReasonId": 1234,
"contractId": 1000
}'- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/memberships/self-service/contract-cancelation-reasons
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/self-service/contract-cancelation-reasons
- 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/memberships/self-service/contract-cancelation-reasons \
-H 'X-API-KEY: YOUR_API_KEY_HERE'[ { "cancelationReasonId": 1000, "cancelationReasonName": "Officially ordered studio closure" } ]