Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API
REST APIMulti-ServiceEntreprises

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/list
ChampTypeRequisDescription
apiKeystringOuiClé 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/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom de l’entreprise
descriptionstringNonDescription
emailstringNonEmail de contact
telephonestringNonTéléphone
addressstringNonAdresse
logostringNonURL du logo
logoIdstringNonID du fichier logo
isDefaultbooleanNonEntreprise 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}
ChampTypeRequisDescription
apiKeystringOuiClé 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}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
descriptionstringNonNouvelle description
emailstringNonNouvel email
telephonestringNonNouveau téléphone
addressstringNonNouvelle adresse
logostringNonNouveau logo
isDefaultbooleanNonStatut 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}/delete
ChampTypeRequisDescription
apiKeystringOuiClé 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