API Entreprises
Endpoints pour la gestion des entreprises (fournisseurs de services).
SDK: client.app.multiService.company
Endpoints
Lister les entreprises
POST /app/{appId}/multi-service/companies/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/companies/list \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Créer une entreprise
POST /app/{appId}/multi-service/companies/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom de l’entreprise |
description | string | Non | Description |
email | string | Non | Email de contact |
telephone | string | Non | Téléphone |
address | string | Non | Adresse |
logo | string | Non | URL du logo |
logoId | string | Non | ID du fichier logo |
isDefault | boolean | Non | Entreprise par défaut |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/companies/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Spa Détente",
"description": "Centre de bien-être",
"email": "contact@spadetente.com",
"telephone": "+225071111111",
"address": "Abidjan, Plateau",
"isDefault": false
}'Si isDefault: true, les autres entreprises perdent leur statut par défaut.
Obtenir une entreprise
POST /app/{appId}/multi-service/companies/{id}Requête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/companies/{companyId} \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Mettre à jour une entreprise
POST /app/{appId}/multi-service/companies/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
description | string | Non | Nouvelle description |
email | string | Non | Nouvel email |
telephone | string | Non | Nouveau téléphone |
address | string | Non | Nouvelle adresse |
logo | string | Non | Nouveau logo |
isDefault | boolean | Non | Statut par défaut |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/companies/{companyId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Salon Belle Coiffure & Spa",
"address": "Abidjan, Riviera 2"
}'Supprimer une entreprise
POST /app/{appId}/multi-service/companies/{id}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/companies/{companyId}/delete \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'La suppression entraîne la suppression en cascade de tous les services, agents et rendez-vous de l’entreprise.
Last updated on