List your marketing campaigns
- Book a trial session
Magicline Connect API (1.0.0)
https://connectdemo.api.magicline.com/
https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/
- Generated server url
https://connectdemo.api.magicline.com/connect/v1/trialsession
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://connectdemo.api.magicline.com/connect/v1/trialsession?studioId=1&startDate=2021-05-15&endDate=2021-05-21'Request
Book a free slot. Might return errorCode CONFLICT if configured resources are overbooked for this slot. In this case its advised to reload free slots and let the user select a different slot. If you get a validation error make sure all required fields are filled. Required fields are returned by the /config/validation endpoint.
Communication preferences for the customer. If specified, the list must contain an element for each message category.
Should only be set if booking page has been called with URL param identityToken. If no lead exists with this UUID a new one will be created.
Data privacy configuration for marketing purposes
- Generated server url
https://connectdemo.api.magicline.com/connect/v1/trialsession/book
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession/book
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://connectdemo.api.magicline.com/connect/v1/trialsession/book \
-H 'Content-Type: application/json' \
-d '{
"leadCustomer": {
"address": {
"city": "Hamburg",
"country": "DE",
"details": {
"additionalInformation": "string",
"block": "string",
"buildingName": "string",
"cityPart": "string",
"district": "string",
"door": "string",
"floor": "string",
"portal": "string",
"province": "string",
"provinceCode": "string",
"secondStreet": "string",
"stairway": "string",
"streetType": "string"
},
"houseNumber": "1b",
"street": "Heinrichstraße",
"zip": 20095
},
"communicationPreferences": [
{
"activeCommunicationChannels": [
"LETTER"
],
"messageCategoryId": 0
}
],
"countryOfBirth": "FR",
"customerUUID": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
"dateOfBirth": "1985-05-29",
"email": "mm@test.de",
"firstname": "Max",
"gender": "MALE",
"lastname": "Mustermann",
"phone": "+49 40 123 555",
"placeOfBirth": "Rom",
"privacyConfiguration": {
"email": true,
"letter": true,
"mySportsMessage": true,
"phone": true,
"textMessage": true
},
"secondFirstname": "Martin",
"secondLastname": "Muster",
"studioId": 0,
"taxId": "56982134w"
},
"note": "become fit",
"participants": 2,
"referralCode": "ABCXYZ",
"referrerId": 10,
"sourceCampaignId": 2,
"startDateTime": "2019-04-15T07:00:00.000Z",
"studioId": 1,
"trainerRequired": true
}'- Generated server url
https://connectdemo.api.magicline.com/connect/v1/trialsession/config/validation
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession/config/validation
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://connectdemo.api.magicline.com/connect/v1/trialsession/config/validation?studioId=1'OK
Defines validation mode for full address. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode for birthdate. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode for email address. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode for gender. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
minimum age to book a trial session (dateOfBirthMode is mandatory if value is set)
Defines validation mode for full name. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode fro place of birth. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode for tax id. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.
Defines validation mode for telephone number. INACTIVE: hide it, OPTIONAL: Show it as optional form field, MANDATORY: Show it as mandatory form field.