Appointment, bookable appointment and slots operations
- Create customer
Magicline API (1.13.2)
- Appointment, bookable appointment and slots operations
- Redeem checkin vouchers
- Class and slots operations
- Cross studio operations
- Get customers and contracts
- Retrieve customer accounting details
- Retrieve customer communication details
- Get device information
- Employee operations
- Debt collection operations
- Leads operations
- Manage membership contracts
- Membership operations
- Online offer operations
- Payment operations
- Get studio information
- Get trial offers information
https://open-api-demo.open-api.magicline.com/
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/{customerId}/access-restrictions
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/{customerId}/access-restrictions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://open-api-demo.open-api.magicline.com/v1/customers/{customerId}/access-restrictions' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'Country of birth of the customer. Required for Italian studios and non-Italian nationals
Gender of the customer
| Enum Value | Description |
|---|---|
| MALE | Male gender of the customer |
| FEMALE | Female gender of the customer |
| UNISEX | Unisex gender of the customer |
Additional address information of the customer's address
Language of the customer
Required if the studio is located in Spain or Italy. Alternatively, a valid document identification can be provided.
List of communication preferences for the customer
Information from an official document that identifies the customer
By assigning the paymentRequestToken to the customer, the payment method associated with the token will be used as payment method setting of the customer. Additionally, if the paymentRequestToken is associated with a payment instrument, i.e. a SEPA Mandate, BACS Mandate, Credit Card, or other, the payment instrument will be made available in the member account for future collection via payment runs. By leaving this field empty the payment method of the customer will be set to CASH. For reference check 'Create a user payment session'.
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/create
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/create
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open-api-demo.open-api.magicline.com/v1/customers/create \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"thirdPartyId": "A1000",
"firstName": "Peter",
"secondFirstName": "Thomas",
"lastName": "Muller",
"secondLastName": "Meyer",
"dateOfBirth": "2019-08-24",
"placeOfBirth": "string",
"countryOfBirth": "string",
"email": "example@example.com",
"gender": "MALE",
"phoneNumberPrivate": "+44123456789",
"phoneNumberMobile": "+44987654321",
"street": "Raboisen Street",
"secondStreet": "Second Street",
"cityPart": "Tegel",
"district": "District 12",
"streetType": "Avenue",
"streetBlock": "5th block",
"portal": "Portal 1",
"stairway": "Right stairway",
"door": "Door 1",
"province": "Champagne",
"additionalAddressInformation": "Additional information",
"floor": "2nd floor",
"language": {
"languageCode": "de",
"countryCode": "DE"
},
"houseNumber": "3-4",
"buildingName": "Empire State Building",
"city": "Hamburg",
"zipCode": "220-99",
"countryCode": "DE",
"taxId": "12345678A",
"communicationPreferences": [
{
"messageCategory": "CONTRACT",
"channels": [
{
"communicationChannel": "EMAIL",
"customerOverridable": true,
"active": true
}
]
}
],
"documentIdentification": {
"documentNumber": "CX5432112345DS",
"documentType": "ID_CARD"
},
"paymentRequestToken": "string",
"additionalInformationFieldAssignments": [
{
"additionalInformationFieldId": 1234567890,
"value": "string",
"name": "Membership Type"
}
]
}'{ "customerId": 1000 }
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/customers/additional-information-fields
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/customers/additional-information-fields
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://open-api-demo.open-api.magicline.com/v1/customers/additional-information-fields \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
The type of an additional information field. This defines how the field is used and what kind of data it can hold.
| Enum Value | Description |
|---|---|
| DATE | This field holds a date value, used for storing dates. |
| NUMERIC | This field holds a numeric value, used for storing numbers. |
| TEXT | This field holds a text value, used for storing free-form text input. |
| LIST | This field holds a list of items, allowing selection from predefined options. |
| BOOLEAN | This field holds a boolean value, typically used for yes/no questions. |
A list of list items. This is only used if the field type is a list.
[ { "id": 1234567890, "name": "Membership Type", "type": "BOOLEAN", "abbreviation": "MT", "listItems": [ … ] } ]