Download OpenAPI specification:Download
This API can be used to integrate Magicline operations into third party clients like websites or apps.
Following operations are supported
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "studioId": 0,
- "referralId": 0,
- "contract": {
- "rateBundleTermId": 0,
- "startDate": "2019-08-24",
- "preuseDate": "2019-08-24",
- "notes": "string",
- "contractSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "sepaSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "textBlockSignatures": [
- {
- "base64Svg": "string",
- "textBlockId": 0
}
], - "selectedRateBundleModules": [
- {
- "id": 0
}
], - "optionalRateBundleTermModules": [
- {
- "id": 0
}
]
}, - "customer": {
- "identityToken": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
- "firstname": "string",
- "secondFirstname": "string",
- "lastname": "string",
- "secondLastName": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "gender": "MALE",
- "telephone_private": "string",
- "telephone_mobile": "string",
- "street": "Raboisen",
- "secondStreet": "string",
- "cityPart": "string",
- "district": "string",
- "streetType": "string",
- "streetBlock": "string",
- "portal": "string",
- "stairway": "string",
- "door": "string",
- "province": "string",
- "additionalAddressInformation": "string",
- "floor": "string",
- "language": "string",
- "locale": "string",
- "houseNumber": "3-4",
- "buildingName": "string",
- "city": "Hamburg",
- "zipCode": "22099",
- "countryCode": "DE",
- "paymentChoice": "DIRECT_DEBIT",
- "bankAccount": {
- "iban": "string",
- "bic": "string",
- "accountHolder": "string"
}, - "creditCard": {
- "tokenizationReference": "string",
- "accountPaymentInstrumentToken": "string"
}, - "privacyConfiguration": {
- "letter": true,
- "email": true,
- "textMessage": true,
- "phone": true,
- "mySportsMessage": true
}, - "communicationPreferences": [
- {
- "messageCategoryId": 0,
- "activeCommunicationChannels": [
- "LETTER"
]
}
], - "identification": {
- "spain_DNI_NIE": "string"
}, - "taxId": "string",
- "placeOfBirth": "string",
- "countryOfBirth": "UNDEFINED",
- "documentIdentification": {
- "documentNumber": "string",
- "documentType": "ID_CARD"
}, - "imageObjectKey": "string",
- "referralCode": "string",
- "studioCountryCode": "UNDEFINED",
- "publicGender": "MALE"
}, - "landingPageConfigurationId": 0,
- "voucherCode": "string",
- "offerUuid": "5d19bb70-d72b-45ae-9b5e-c4257877bdbb"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "firstname": "string",
- "lastname": "string",
- "dateOfBirth": "2019-08-24",
- "customerNumber": "string",
- "contractId": 0,
- "cancellationType": "ORDINARY_CANCELLATION",
- "cancelationReasonId": 0,
- "cancellationDate": "2019-08-24",
- "additionalInformation": "string",
- "confirmationEmail": "string"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "firstname": "string",
- "lastname": "string",
- "dateOfBirth": "2019-08-24",
- "customerNumber": "string",
- "additionalInformation": "string",
- "studioId": 0,
- "cancellationDateType": "NEXT_POSSIBLE_CANCELLATION_DATE",
- "cancellationDate": "2019-08-24",
- "cancelationReasonId": 0,
- "cancellationType": "ORDINARY_CANCELLATION",
- "confirmationEmail": "string"
}
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"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "paymentMethod": "string",
- "browserInfo": "string",
- "studioId": 0,
- "returnUrl": "string",
- "origin": "string"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "organizationUnitId": 0,
- "contractStartDate": "2019-08-24",
- "contractStartPreuseDate": "2019-08-24",
- "customerDto": {
- "identityToken": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
- "firstname": "string",
- "secondFirstname": "string",
- "lastname": "string",
- "secondLastName": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "gender": "MALE",
- "telephone_private": "string",
- "telephone_mobile": "string",
- "street": "Raboisen",
- "secondStreet": "string",
- "cityPart": "string",
- "district": "string",
- "streetType": "string",
- "streetBlock": "string",
- "portal": "string",
- "stairway": "string",
- "door": "string",
- "province": "string",
- "additionalAddressInformation": "string",
- "floor": "string",
- "language": "string",
- "locale": "string",
- "houseNumber": "3-4",
- "buildingName": "string",
- "city": "Hamburg",
- "zipCode": "22099",
- "countryCode": "DE",
- "paymentChoice": "DIRECT_DEBIT",
- "bankAccount": {
- "iban": "string",
- "bic": "string",
- "accountHolder": "string"
}, - "creditCard": {
- "tokenizationReference": "string",
- "accountPaymentInstrumentToken": "string"
}, - "privacyConfiguration": {
- "letter": true,
- "email": true,
- "textMessage": true,
- "phone": true,
- "mySportsMessage": true
}, - "communicationPreferences": [
- {
- "messageCategoryId": 0,
- "activeCommunicationChannels": [
- "LETTER"
]
}
], - "identification": {
- "spain_DNI_NIE": "string"
}, - "taxId": "string",
- "placeOfBirth": "string",
- "countryOfBirth": "UNDEFINED",
- "documentIdentification": {
- "documentNumber": "string",
- "documentType": "ID_CARD"
}, - "imageObjectKey": "string",
- "referralCode": "string",
- "studioCountryCode": "UNDEFINED",
- "publicGender": "MALE"
}
}
For some countries additional customer related attributes might be needed for that. Country will be derived from given studioId.
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "studioId": 0,
- "firstname": "string",
- "lastname": "string",
- "taxId": "string",
- "dateOfBirth": "2019-08-24",
- "placeOfBirth": "string",
- "countryOfBirth": "UNDEFINED",
- "gender": "MALE"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "studioId": 0,
- "referralId": 0,
- "contract": {
- "rateBundleTermId": 0,
- "startDate": "2019-08-24",
- "preuseDate": "2019-08-24",
- "notes": "string",
- "contractSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "sepaSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "textBlockSignatures": [
- {
- "base64Svg": "string",
- "textBlockId": 0
}
], - "selectedRateBundleModules": [
- {
- "id": 0
}
], - "optionalRateBundleTermModules": [
- {
- "id": 0
}
]
}, - "customer": {
- "identityToken": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
- "firstname": "string",
- "secondFirstname": "string",
- "lastname": "string",
- "secondLastName": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "gender": "MALE",
- "telephone_private": "string",
- "telephone_mobile": "string",
- "street": "Raboisen",
- "secondStreet": "string",
- "cityPart": "string",
- "district": "string",
- "streetType": "string",
- "streetBlock": "string",
- "portal": "string",
- "stairway": "string",
- "door": "string",
- "province": "string",
- "additionalAddressInformation": "string",
- "floor": "string",
- "language": "string",
- "locale": "string",
- "houseNumber": "3-4",
- "buildingName": "string",
- "city": "Hamburg",
- "zipCode": "22099",
- "countryCode": "DE",
- "paymentChoice": "DIRECT_DEBIT",
- "bankAccount": {
- "iban": "string",
- "bic": "string",
- "accountHolder": "string"
}, - "creditCard": {
- "tokenizationReference": "string",
- "accountPaymentInstrumentToken": "string"
}, - "privacyConfiguration": {
- "letter": true,
- "email": true,
- "textMessage": true,
- "phone": true,
- "mySportsMessage": true
}, - "communicationPreferences": [
- {
- "messageCategoryId": 0,
- "activeCommunicationChannels": [
- "LETTER"
]
}
], - "identification": {
- "spain_DNI_NIE": "string"
}, - "taxId": "string",
- "placeOfBirth": "string",
- "countryOfBirth": "UNDEFINED",
- "documentIdentification": {
- "documentNumber": "string",
- "documentType": "ID_CARD"
}, - "imageObjectKey": "string",
- "referralCode": "string",
- "studioCountryCode": "UNDEFINED",
- "publicGender": "MALE"
}, - "landingPageConfigurationId": 0,
- "voucherCode": "string",
- "offerUuid": "5d19bb70-d72b-45ae-9b5e-c4257877bdbb"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "studioId": 0,
- "referralId": 0,
- "contract": {
- "rateBundleTermId": 0,
- "startDate": "2019-08-24",
- "preuseDate": "2019-08-24",
- "notes": "string",
- "contractSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "sepaSignature": {
- "base64Svg": "string",
- "textBlockId": 0
}, - "textBlockSignatures": [
- {
- "base64Svg": "string",
- "textBlockId": 0
}
], - "selectedRateBundleModules": [
- {
- "id": 0
}
], - "optionalRateBundleTermModules": [
- {
- "id": 0
}
]
}, - "customer": {
- "identityToken": "2340b1cc-3fe7-4f81-8eca-f92181dd2bb4",
- "firstname": "string",
- "secondFirstname": "string",
- "lastname": "string",
- "secondLastName": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "gender": "MALE",
- "telephone_private": "string",
- "telephone_mobile": "string",
- "street": "Raboisen",
- "secondStreet": "string",
- "cityPart": "string",
- "district": "string",
- "streetType": "string",
- "streetBlock": "string",
- "portal": "string",
- "stairway": "string",
- "door": "string",
- "province": "string",
- "additionalAddressInformation": "string",
- "floor": "string",
- "language": "string",
- "locale": "string",
- "houseNumber": "3-4",
- "buildingName": "string",
- "city": "Hamburg",
- "zipCode": "22099",
- "countryCode": "DE",
- "paymentChoice": "DIRECT_DEBIT",
- "bankAccount": {
- "iban": "string",
- "bic": "string",
- "accountHolder": "string"
}, - "creditCard": {
- "tokenizationReference": "string",
- "accountPaymentInstrumentToken": "string"
}, - "privacyConfiguration": {
- "letter": true,
- "email": true,
- "textMessage": true,
- "phone": true,
- "mySportsMessage": true
}, - "communicationPreferences": [
- {
- "messageCategoryId": 0,
- "activeCommunicationChannels": [
- "LETTER"
]
}
], - "identification": {
- "spain_DNI_NIE": "string"
}, - "taxId": "string",
- "placeOfBirth": "string",
- "countryOfBirth": "UNDEFINED",
- "documentIdentification": {
- "documentNumber": "string",
- "documentType": "ID_CARD"
}, - "imageObjectKey": "string",
- "referralCode": "string",
- "studioCountryCode": "UNDEFINED",
- "publicGender": "MALE"
}, - "landingPageConfigurationId": 0,
- "voucherCode": "string",
- "offerUuid": "5d19bb70-d72b-45ae-9b5e-c4257877bdbb"
}
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error
{- "studioId": 0,
- "firstname": "string",
- "firstname2": "string",
- "lastname": "string",
- "lastname2": "string",
- "taxId": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "gender": "MALE",
- "phone": "string",
- "street": "Raboisen",
- "streetType": "string",
- "streetBlock": "string",
- "portal": "string",
- "stairway": "string",
- "floor": "string",
- "door": "string",
- "province": "string",
- "additionalAddressInformation": "string",
- "houseNumber": "3-4",
- "city": "Hamburg",
- "zipCode": "22099",
- "countryCode": "DE",
- "locale": "string",
- "notes": "any notes about this lead",
- "sourceCampaignId": 0,
- "privacyConfiguration": {
- "letter": true,
- "email": true,
- "textMessage": true,
- "phone": true,
- "mySportsMessage": true
}, - "communicationPreferences": [
- {
- "messageCategoryId": 0,
- "activeCommunicationChannels": [
- "LETTER"
]
}
]
}
Get the studio's default communication settings. The returned list contains an entry for each existing message category.
OK
Bad Request
Forbidden
Not Found
Conflict
Internal Server Error