Appointment, bookable appointment and slots operations
- Get the idle period configuration of the 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/{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 } }
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. |
Duration term of the idle period. The field is related to the temporal unit
- Demo tenant
https://open-api-demo.open-api.perfectgym.com/v1/memberships/{contractId}/self-service/idle-periods/validate
- Mock server
https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/v1/memberships/{contractId}/self-service/idle-periods/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/memberships/{contractId}/self-service/idle-periods/validate' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"startDate": "2019-08-24",
"temporalUnit": "WEEK",
"termValue": 1,
"unlimited": true
}'OK
Status of the idle period validation
| Enum Value | Description |
|---|---|
| IDLEPERIOD_DEACTIVATED_FOR_CONTRACT | Idle periods are deactivated for the contract. |
| IDLEPERIOD_ENDDATE_ONLY_FOR_SHORTENING | The endDate field is restricted to shortening existing idle periods. |
| IDLEPERIOD_MAXIMUM_YEARS_VIOLATED | 5 years is a hard limit for the length of the idle period. |
| IDLEPERIOD_EXPECTED_STARTDATE_MISMATCH | The idle period start date does not match the expected start date. |
| IDLEPERIOD_DEADLINE_VIOLATED | The start date violates the submission deadline. |
| IDLEPERIOD_ENDDATE_AND_TERM_PROVIDED | End date and term (temporal unit and term value) cannot be provided at the same time. |
| IDLEPERIOD_CREATABLE | The idle period can be created. |
| IDLEPERIOD_TERMVALUE_MISSING | The value for the term is missing. |
| IDLEPERIOD_PENDING_VERIFICATION | Idle periods cannot be created if a pending verification for an amendment exists. |
| IDLEPERIOD_MAXIMUM_TERMS_VIOLATED | The idle period violates the maximum terms value. |
{ "validationStatus": "IDLEPERIOD_DEACTIVATED_FOR_CONTRACT" }