API Services
Endpoints pour la gestion des services proposés.
SDK: client.app.multiService.service
Endpoints
Lister les services
POST /app/{appId}/multi-service/services/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/services/list \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Créer un service
POST /app/{appId}/multi-service/services/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom du service |
basePrice | number | Oui | Prix de base |
companyId | string | Non | ID entreprise (défaut: par défaut) |
description | string | Non | Description |
duration | number | Non | Durée en minutes |
image | string | Non | URL de l’image |
fields | array | Non | Champs personnalisés |
isActive | boolean | Non | Service actif |
Structure d’un champ:
{
"name": "notes",
"label": "Notes supplémentaires",
"type": "text",
"required": false,
"options": []
}Types de champs: text, number, select, multipleSelect, email, phone, date
curl -X POST https://api.applite.ai/app/{appId}/multi-service/services/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Massage Relaxant",
"basePrice": 15000,
"duration": 60,
"description": "Massage complet du corps",
"fields": [
{
"name": "intensity",
"label": "Intensité",
"type": "select",
"required": true,
"options": [
{"value": "light", "label": "Léger"},
{"value": "medium", "label": "Moyen"},
{"value": "deep", "label": "Profond"}
]
}
]
}'Obtenir un service
POST /app/{appId}/multi-service/services/{id}Requête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/services/{serviceId} \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Mettre à jour un service
POST /app/{appId}/multi-service/services/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
basePrice | number | Non | Nouveau prix |
duration | number | Non | Nouvelle durée |
description | string | Non | Nouvelle description |
fields | array | Non | Nouveaux champs |
isActive | boolean | Non | Statut actif |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/services/{serviceId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"basePrice": 2000,
"duration": 45
}'Supprimer un service
POST /app/{appId}/multi-service/services/{id}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/services/{serviceId}/delete \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'La suppression d’un service supprime également tous les rendez-vous associés.
Last updated on