Appointment, bookable appointment and slots operations
- withdraw cancelation of contract
PerfectGym Next API (1.20.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
- Retrieve customer transaction details
- Get device information
- Employee operations
- Debt collection operations
- Leads operations
- Get member lists
- 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/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" } ]
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/memberships/{customerId}/self-service/withdraw-ordinary-contract-cancelation/{contractId}
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/{customerId}/self-service/withdraw-ordinary-contract-cancelation/{contractId}
- 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/withdraw-ordinary-contract-cancelation/{contractId}' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/memberships/{contractId}/self-service/idle-periods/config
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/{contractId}/self-service/idle-periods/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/memberships/{contractId}/self-service/idle-periods/config' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
Represents the temporal unit of an idle period
| Enum Value | Description |
|---|---|
| MONTH | Represents a monthly temporal unit of the idle period. Can be used for month pickers only. Supports only full months. |
| WEEK | Represents a weekly temporal unit of the idle period. Can be used for week pickers only. Supports only full weeks. |
| DAY | Represents a daily temporal unit of the idle period. Can be used for day pickers only. |
The maximum number of terms allowed when creating or updating a single idle period.
The maximum number of terms allowed in a reference period
Represents the reference period for idle period term limits
| Enum Value | Description |
|---|---|
| CONTRACT_YEAR | The reference period is a full year from contract's start date or its last anniversary |
| CALENDAR_YEAR | The reference period is a calendar year (January to December) |
The first possible start date of the idle period
Whether the given first possible start date of the idle period is the only allowed start date
Represents a financial data
Whether the studio access is refused for the customer during the idle period
List of idle period reasons
Status of the amendment configuration.
| Enum Value | Description |
|---|---|
| READ | No changes to data are possible. |
| CHANGES_REQUIRE_VERIFICATION | Data can be changed, but needs verification to be applied to the customer. |
| CHANGES_WITHOUT_VERIFICATION | Data can be changed, will be applied to the customer with immediate effect. |
Whether the unlimited idle period can be created. For unlimited idle periods, the limitations imposed by maxTerm and maxTermPerReferencePeriod do not apply.
Count of free idle period terms
Whether day-based term shortening via end date field is allowed during idle period update, independent of the idle period configuration temporal unit restriction.
Configuration for idle period fee calculation
The idle period amount
The idle period amount per term unit
The default temporal unit for the idle period
| Enum Value | Description |
|---|---|
| MONTH | Represents a monthly temporal unit of the idle period. Can be used for month pickers only. Supports only full months. |
| WEEK | Represents a weekly temporal unit of the idle period. Can be used for week pickers only. Supports only full weeks. |
| DAY | Represents a daily temporal unit of the idle period. Can be used for day pickers only. |
The dynamic idle period amount percentage
{ "temporalUnit": "WEEK", "maxTerms": 6, "maxTermPerReferencePeriod": 4, "referencePeriod": "CALENDAR_YEAR", "firstPossibleStartDate": "2023-08-01", "nextPossibleStartDateOnly": true, "idlePeriodFee": { "amount": 20, "currency": "EUR" }, "accessRefusal": true, "idlePeriodReasons": [ { … } ], "idlePeriodCreationStatus": "CHANGES_REQUIRE_VERIFICATION", "contractHasExtension": true, "unlimitedAllowed": true, "freeTerms": { "value": 2, "unit": "WEEK" }, "dayBasedTermShorteningAllowed": false, "idlePeriodFeeCalculationConfig": { "idlePeriodAmount": { … }, "idlePeriodAmountPerTermUnit": { … }, "defaultTemporalUnit": "WEEK", "dynamicIdlePeriodAmountPercentage": 10, "recurringIdlePeriodCharges": false } }