Appointment, bookable appointment and slots operations
- Search customers
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/by
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/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/by?cardNumber=string&cardNumberFormat=DECIMAL&debtorId=string&barcode=string&pin=string&customerNumber=string&qrCodeUuid=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
Gender of the customer
| Enum Value | Description |
|---|---|
| MALE | Male gender of the customer |
| FEMALE | Female gender of the customer |
| UNISEX | Unisex gender of the customer |
Additional address information of the customer's address
Status of customer
| Enum Value | Description |
|---|---|
| FORMER_MEMBER | Customer is a former member |
| PROSPECT | Customer without contracts |
| MEMBER | Customer with contracts attached |
Url with an image to download. It will expire after 15 minutes
List of additional information field assignments of the customer
Customer's creation date time in ISO-8601 format
UID list of the customer card numbers in expected format. (The new property to use is accessMediums)
{ "id": 1001, "customerNumber": "1-12345", "firstName": "Edgar", "secondFirstName": "Thomas", "lastName": "Bullock", "secondLastName": "Meyer", "dateOfBirth": "1952-05-04", "email": "example@email.com", "gender": "MALE", "street": "Am Bahnhof", "houseNumber": 89, "zipCode": "12133", "city": "Munich", "country": "DE", "secondStreet": "Second Street", "cityPart": "Tegel", "district": "District 12", "streetType": "Avenue", "streetBlock": "5th block", "portal": "Portal 1", "stairway": "Right stairway", "door": "Door 1", "province": "Champagne", "additionalAddressInformation": "Additional information", "floor": "2nd floor", "buildingName": "Empire State Building", "status": "MEMBER", "cardNumbers": [ "1290158199" ], "imageUrl": "https://example.com", "phonePrivate": "+49 30901820", "phonePrivateMobile": "+49 15223433333", "phoneBusiness": "+49 30901820", "phoneBusinessMobile": "+49 15223433333", "idlePeriods": [ { … } ], "bankAccount": { "accountHolder": "Sven Hannawald", "bankName": "Deutsche Bank", "bic": "DEUTDEFFXXX", "iban": "DE91 1000 0000 0123 4567 89" }, "accessRefusal": true, "accessRestrictions": [ { … } ], "uuid": "7be3932c-825b-4401-abff-29e9f9410bc7", "referralCode": "20J6N", "studioId": 1238735970, "preferredLanguage": { "languageCode": "de", "countryCode": "DE" }, "additionalInformationFieldAssignments": [ { … } ], "thirdPartyId": "A1000", "createdDateTime": "2022-06-15T23:59:59.999+02:00[Europe/Berlin]", "accessMediums": [ { … } ] }
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/search
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/search
- 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/search \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"firstName": "Edga",
"lastName": "Bull",
"email": "example@email.com",
"dateOfBirth": "1952-05-04",
"cardNumberFormat": "DECIMAL"
}'OK
Gender of the customer
| Enum Value | Description |
|---|---|
| MALE | Male gender of the customer |
| FEMALE | Female gender of the customer |
| UNISEX | Unisex gender of the customer |
Additional address information of the customer's address
Status of customer
| Enum Value | Description |
|---|---|
| FORMER_MEMBER | Customer is a former member |
| PROSPECT | Customer without contracts |
| MEMBER | Customer with contracts attached |
Url with an image to download. It will expire after 15 minutes
List of additional information field assignments of the customer
Customer's creation date time in ISO-8601 format
UID list of the customer card numbers in expected format. (The new property to use is accessMediums)
Customer's bank account information. Deprecated: For fetching bank accounts use get customers by payment details endpoint.
[ { "id": 1001, "customerNumber": "1-12345", "firstName": "Edgar", "secondFirstName": "Thomas", "lastName": "Bullock", "secondLastName": "Meyer", "dateOfBirth": "1952-05-04", "email": "example@email.com", "gender": "MALE", "street": "Am Bahnhof", "houseNumber": 89, "zipCode": "12133", "city": "Munich", "country": "DE", "secondStreet": "Second Street", "cityPart": "Tegel", "district": "District 12", "streetType": "Avenue", "streetBlock": "5th block", "portal": "Portal 1", "stairway": "Right stairway", "door": "Door 1", "province": "Champagne", "additionalAddressInformation": "Additional information", "floor": "2nd floor", "buildingName": "Empire State Building", "status": "MEMBER", "cardNumbers": [ … ], "imageUrl": "https://example.com", "phonePrivate": "+49 30901820", "phonePrivateMobile": "+49 15223433333", "phoneBusiness": "+49 30901820", "phoneBusinessMobile": "+49 15223433333", "idlePeriods": [ … ], "bankAccount": { … }, "accessRefusal": true, "accessRestrictions": [ … ], "uuid": "7be3932c-825b-4401-abff-29e9f9410bc7", "referralCode": "20J6N", "studioId": 1238735970, "preferredLanguage": { … }, "additionalInformationFieldAssignments": [ … ], "thirdPartyId": "A1000", "createdDateTime": "2022-06-15T23:59:59.999+02:00[Europe/Berlin]", "accessMediums": [ … ] } ]
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/{customerId}/contracts
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/{customerId}/contracts
- 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/{customerId}/contracts?status=ACTIVE' \
-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" } ]