Appointment, bookable appointment and slots operations
Magicline API (1.10.0)
- 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
- 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/
The status of a communication thread
| Enum Value | Description |
|---|---|
| CREATED | The thread is created |
| CLOSED | The thread is closed |
| ONGOING | The thread is in ongoing progress |
The content of the communication
The direction of the communication
| Enum Value | Description |
|---|---|
| INCOMING | The communication is incoming from the customer |
| OUTGOING | The communication is outgoing to the customer |
The link to the ticket in the third party ticketing system
The channel of the communication
| Enum Value | Description |
|---|---|
| OTHER | Communication via other means |
| LETTER | Communication via letter |
| TEXT_MESSAGE | Communication via text message |
| PHONE | Communication via phone |
| CHAT | Communication via chat |
Communication via email | |
| FAX | Communication via fax |
| CONVERSATION | Communication via conversation |
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/threads
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/communications/{customerId}/threads
- 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/communications/{customerId}/threads' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"communicationThreadStatus": "CREATED",
"ticketNumber": "A123456",
"subject": "Complaint",
"content": "I received two invoices this month, but I only made one purchase.",
"communicationDirection": "INCOMING",
"ticketLink": "https://ticketing-system.com/ticket/A123456",
"communicationChannel": "LETTER",
"agent": "Peter Meyer",
"communicationDateTime": "2022-06-22T08:00:00.000+02:00[Europe/Berlin]"
}'OK
The status of a communication thread
| Enum Value | Description |
|---|---|
| CREATED | The thread is created |
| CLOSED | The thread is closed |
| ONGOING | The thread is in ongoing progress |
The content of the communication
The direction of the communication
| Enum Value | Description |
|---|---|
| INCOMING | The communication is incoming from the customer |
| OUTGOING | The communication is outgoing to the customer |
The link to the ticket in the third party ticketing system
The channel of the communication
| Enum Value | Description |
|---|---|
| OTHER | Communication via other means |
| LETTER | Communication via letter |
| TEXT_MESSAGE | Communication via text message |
| PHONE | Communication via phone |
| CHAT | Communication via chat |
Communication via email | |
| FAX | Communication via fax |
| CONVERSATION | Communication via conversation |
{ "customerId": 1, "communicationId": 1, "threadId": 1, "communicationThreadStatus": "CREATED", "ticketNumber": "A123456", "subject": "Complaint", "content": "I received two invoices this month, but I only made one purchase.", "communicationDirection": "INCOMING", "ticketLink": "https://ticketing-system.com/ticket/A123456", "communicationChannel": "LETTER", "agent": "Peter Meyer" }
The status of a communication thread
| Enum Value | Description |
|---|---|
| CREATED | The thread is created |
| CLOSED | The thread is closed |
| ONGOING | The thread is in ongoing progress |
The content of the communication
The direction of the communication
| Enum Value | Description |
|---|---|
| INCOMING | The communication is incoming from the customer |
| OUTGOING | The communication is outgoing to the customer |
The link to the ticket in the third party ticketing system
The channel of the communication
| Enum Value | Description |
|---|---|
| OTHER | Communication via other means |
| LETTER | Communication via letter |
| TEXT_MESSAGE | Communication via text message |
| PHONE | Communication via phone |
| CHAT | Communication via chat |
Communication via email | |
| FAX | Communication via fax |
| CONVERSATION | Communication via conversation |
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/threads/{threadId}
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/communications/{customerId}/threads/{threadId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/threads/{threadId}' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"communicationThreadStatus": "CREATED",
"ticketNumber": "A123456",
"subject": "Complaint",
"content": "I received two invoices this month, but I only made one purchase.",
"communicationDirection": "INCOMING",
"ticketLink": "https://ticketing-system.com/ticket/A123456",
"communicationChannel": "LETTER",
"agent": "Peter Meyer",
"communicationDateTime": "2022-06-22T08:00:00.000+02:00[Europe/Berlin]"
}'OK
The status of a communication thread
| Enum Value | Description |
|---|---|
| CREATED | The thread is created |
| CLOSED | The thread is closed |
| ONGOING | The thread is in ongoing progress |
The content of the communication
The direction of the communication
| Enum Value | Description |
|---|---|
| INCOMING | The communication is incoming from the customer |
| OUTGOING | The communication is outgoing to the customer |
The link to the ticket in the third party ticketing system
The channel of the communication
| Enum Value | Description |
|---|---|
| OTHER | Communication via other means |
| LETTER | Communication via letter |
| TEXT_MESSAGE | Communication via text message |
| PHONE | Communication via phone |
| CHAT | Communication via chat |
Communication via email | |
| FAX | Communication via fax |
| CONVERSATION | Communication via conversation |
{ "customerId": 1, "communicationId": 1, "threadId": 1, "communicationThreadStatus": "CREATED", "ticketNumber": "A123456", "subject": "Complaint", "content": "I received two invoices this month, but I only made one purchase.", "communicationDirection": "INCOMING", "ticketLink": "https://ticketing-system.com/ticket/A123456", "communicationChannel": "LETTER", "agent": "Peter Meyer" }
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/communication-preferences
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/communications/{customerId}/communication-preferences
- 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/communications/{customerId}/communication-preferences' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'OK
The message category of the communication preference
| Enum Value | Description |
|---|---|
| APPOINTMENT | The message category is appointment related |
| NEWSLETTER | The message category is newsletter related |
| CONTRACT | The message category is contract related |
| LOYALTY_PROGRAM | The message category is loyalty program related |
| GENERAL | The message category is general |
The communication channels related to the message category of the communication preference
[ { "messageCategory": "CONTRACT", "channels": [ … ] } ]
The message category of the communication preference
| Enum Value | Description |
|---|---|
| APPOINTMENT | The message category is appointment related |
| NEWSLETTER | The message category is newsletter related |
| CONTRACT | The message category is contract related |
| LOYALTY_PROGRAM | The message category is loyalty program related |
| GENERAL | The message category is general |
The communication channels related to the message category of the communication preference
- Demo tenant
https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/communication-preferences
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/openapi/openapi/v1/communications/{customerId}/communication-preferences
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://open-api-demo.open-api.magicline.com/v1/communications/{customerId}/communication-preferences' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '[
{
"messageCategory": "CONTRACT",
"channels": [
{
"communicationChannel": "EMAIL",
"customerOverridable": true,
"active": true
}
]
}
]'OK
The message category of the communication preference
| Enum Value | Description |
|---|---|
| APPOINTMENT | The message category is appointment related |
| NEWSLETTER | The message category is newsletter related |
| CONTRACT | The message category is contract related |
| LOYALTY_PROGRAM | The message category is loyalty program related |
| GENERAL | The message category is general |
The communication channels related to the message category of the communication preference
[ { "messageCategory": "CONTRACT", "channels": [ … ] } ]