Skip to content

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
Download OpenAPI description
Languages
Servers
Demo tenant

https://open-api-demo.open-api.perfectgym.com/

Mock server

https://redocly.sportalliance.com/_mock/apis/perfectgym/openapi/openapi/

Appointments

Appointment, bookable appointment and slots operations

Operations

Checkin vouchers

Redeem checkin vouchers

Operations
Operations

Cross Studio

Cross studio operations

Operations

Customers

Get customers and contracts

Operations

Request

Required Scopes(any of): CUSTOMER_BENEFIT_READ, CUSTOMER_READ

Returns all customer's benefits

Security
ApiKeyAuth
Path
customerIdinteger(int64)required

Unique ID of the customer

Query
keyArray of strings

Benefit keys to validate, when provided, service will check only them

Example: key=FIRST_KEY&key=SECOND_KEY
curl -i -X GET \
  'https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/benefits?key=FIRST_KEY%26key%3DSECOND_KEY' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/jsonArray [
keystringrequired

Benefit key

Example: "BENEFIT_KEY"
validbooleanrequired

Validation result

Example: false
]
Response
application/json
[ { "key": "BENEFIT_KEY", "valid": false } ]

Request

Required Scopes(any of): CUSTOMER_BENEFIT_READ, CUSTOMER_READ

Returns customer's benefits by one of the given parameters: card number, barcode or pin. Exactly one identifier must be provided.

Security
ApiKeyAuth
Query
cardNumberstring

Card number to identify the customer

cardNumberFormatstring(CardNumberFormat)

Defines how card numbers are interpreted

Default "DECIMAL"
Enum"DECIMAL""HEX_MSB""HEX_LSB"
barcodestring

Barcode to identify the customer

pinstring

PIN to identify the customer

keyArray of strings

Benefit keys to validate, when provided, service will check only them

Example: key=FIRST_KEY&key=SECOND_KEY
curl -i -X GET \
  'https://open-api-demo.open-api.perfectgym.com/v1/customers/benefits?cardNumber=string&cardNumberFormat=DECIMAL&barcode=string&pin=string&key=FIRST_KEY%26key%3DSECOND_KEY' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/jsonArray [
keystringrequired

Benefit key

Example: "BENEFIT_KEY"
validbooleanrequired

Validation result

Example: false
]
Response
application/json
[ { "key": "BENEFIT_KEY", "valid": false } ]

Request

Required Scopes(any of): CUSTOMER_WRITE, CUSTOMER_BENEFIT_WRITE

Security
ApiKeyAuth
Path
customerIdinteger(int64)required

Unique ID of the customer

benefitKeystringrequired

Key of the benefit to use

curl -i -X POST \
  'https://open-api-demo.open-api.perfectgym.com/v1/customers/{customerId}/benefits/{benefitKey}/use' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

Benefit has been used.

Response
No content

Customers Account

Retrieve customer accounting details

Operations

Customers Communication

Retrieve customer communication details

Operations
Operations

Customers Transactions

Retrieve customer transaction details

Operations
Operations
Operations
Operations
Operations
Operations

Membership Self-service

Manage membership contracts

Operations
Operations

Online offers

Online offer operations

Operations
Operations
Operations

Trial Offers

Get trial offers information

Operations