List your marketing campaigns
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.
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. Deprecated. Use communicationPreferences instead.
curl -i -X POST \
https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession/book \
-H 'Content-Type: application/json' \
-d '{
"studioId": 1,
"startDateTime": "2019-04-15T07:00:00Z",
"leadCustomer": {
"studioId": 0,
"firstname": "Max",
"secondFirstname": "Martin",
"lastname": "Mustermann",
"secondLastname": "Muster",
"taxId": "56982134w",
"placeOfBirth": "Rom",
"countryOfBirth": "FR",
"gender": "MALE",
"dateOfBirth": "1985-05-29",
"email": "mm@test.de",
"phone": "+49 40 123 555",
"address": {
"street": "Heinrichstraße",
"houseNumber": "1b",
"zip": "20095",
"city": "Hamburg",
"country": "DE",
"details": {
"additionalInformation": "string",
"streetType": "string",
"block": "string",
"portal": "string",
"stairway": "string",
"floor": "string",
"door": "string",
"province": "string",
"provinceCode": "string",
"secondStreet": "string",
"buildingName": "string",
"cityPart": "string",
"district": "string"
}
},
"customerUUID": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
"privacyConfiguration": {
"letter": true,
"email": true,
"textMessage": true,
"phone": true,
"mySportsMessage": true
},
"communicationPreferences": [
{
"messageCategoryId": 0,
"activeCommunicationChannels": [
"LETTER"
]
}
]
},
"note": "become fit",
"referrerId": 10,
"participants": 2,
"sourceCampaignId": 2,
"referralCode": "ABCXYZ"
}'
curl -i -X GET \
'https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession?endDate=2021-05-21&startDate=2021-05-15&studioId=1'
curl -i -X GET \
'https://redocly.sportalliance.com/_mock/apis/magicline/connectapi/connectapi/connect/v1/trialsession/config/validation?studioId=1'
OK
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 for gender. 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 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 email address. 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.
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 zip code. 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)