Appointment, bookable appointment and slots operations
- Get customer's contracts by
Magicline 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.magicline.com/
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/measurement/latest
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/measurement/latest
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://open-api-demo.open-api.magicline.com/v1/customers/measurement/latest?cardNumber=string&cardNumberFormat=DECIMAL&barcode=string&pin=string&qrCodeUuid=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "id": 1001, "firstName": "Edgar", "lastName": "Bullock", "age": 16, "dateOfBirth": "2000-01-01", "gender": "MALE", "height": 180.2 }
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/contracts/by
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/contracts/by
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://open-api-demo.open-api.magicline.com/v1/customers/contracts/by?cardNumber=string&cardNumberFormat=DECIMAL&debtorId=string&barcode=string&pin=string&customerNumber=string&status=ACTIVE&qrCodeUuid=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-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 |
Reason of the contract cancellation
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
Represents a time period
Represents a time period
Url to download the contract related document. It will expire after 15 minutes
Date and time when the contract was reversed
[ { "id": 1000, "createdDate": "2022-01-01", "startDate": "2022-01-01", "endDate": "2022-10-01", "rateName": "Premium", "rateCodes": [ … ], "contractStatus": "ACTIVE", "cancellationPeriod": { … }, "cancelled": true, "cancellationDate": "2022-10-10", "cancellationReceiptDate": "2022-10-10", "cancellationReason": "Officially ordered studio closure", "price": 19.9, "priceDetails": { … }, "lastPossibleCancellationDate": "2019-08-24", "term": { … }, "extensionTerm": { … }, "flatFeeContracts": [ … ], "moduleContracts": [ … ], "signedDocumentUrl": "string", "thirdPartyId": "1000a", "reversed": false, "reversalReason": "Studio closure", "reversalDateTime": "2026-03-10T23:59:59.999+02:00" } ]
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/{customerId}/weighing
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/{customerId}/weighing
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://open-api-demo.open-api.magicline.com/v1/customers/{customerId}/weighing?benefitKey=string' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"databaseId": 0,
"basalMetabolicRate": 0,
"bodyFatMass": 0,
"bodyMassIndex": 0,
"fatFreeMass": 0,
"percentBodyFat": 0,
"percentSkeletalMuscleMass": 0,
"skeletalMuscleMass": 0,
"totalBodyWater": 0,
"visceralFatLevel": 0,
"weight": 0,
"height": 0,
"bfmLeftArm": 0,
"bfmLeftLeg": 0,
"bfmPercentLeftArm": 0,
"bfmPercentLeftLeg": 0,
"bfmPercentRightArm": 0,
"bfmPercentRightLeg": 0,
"bfmPercentTrunk": 0,
"bfmRightArm": 0,
"bfmRightLeg": 0,
"bfmTrunk": 0,
"ffmLeftArm": 0,
"ffmLeftLeg": 0,
"ffmPercentLeftArm": 0,
"ffmPercentLeftLeg": 0,
"ffmPercentRightArm": 0,
"ffmPercentRightLeg": 0,
"ffmPercentTrunk": 0,
"ffmRightArm": 0,
"ffmRightLeg": 0,
"ffmTrunk": 0,
"rawResults": "string"
}'{ "databaseId": 0, "basalMetabolicRate": 0, "bodyFatMass": 0, "bodyMassIndex": 0, "fatFreeMass": 0, "percentBodyFat": 0, "percentSkeletalMuscleMass": 0, "skeletalMuscleMass": 0, "totalBodyWater": 0, "visceralFatLevel": 0, "weight": 0, "height": 0, "bfmLeftArm": 0, "bfmLeftLeg": 0, "bfmPercentLeftArm": 0, "bfmPercentLeftLeg": 0, "bfmPercentRightArm": 0, "bfmPercentRightLeg": 0, "bfmPercentTrunk": 0, "bfmRightArm": 0, "bfmRightLeg": 0, "bfmTrunk": 0, "ffmLeftArm": 0, "ffmLeftLeg": 0, "ffmPercentLeftArm": 0, "ffmPercentLeftLeg": 0, "ffmPercentRightArm": 0, "ffmPercentRightLeg": 0, "ffmPercentTrunk": 0, "ffmRightArm": 0, "ffmRightLeg": 0, "ffmTrunk": 0, "rawResults": "string" }