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.
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "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"
}