List your marketing campaigns
curl -i -X GET \
'https://connectdemo.api.magicline.com/connect/v1/trialsession?endDate=2021-05-21&startDate=2021-05-15&studioId=1'
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
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
}'
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.