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

API Clients

Endpoints pour la gestion des clients de votre application.

SDK: client.app.customer

Endpoints

Lister les clients

Liste tous les clients de l’application avec filtrage optionnel par plateforme.

POST /app/{appId}/customer/list
ChampTypeRequisDescription
apiKeystringOuiClé API
plateformTypestring[]NonFiltrer par type: store, transport, restauration, multiService, eLearning
curl -X POST https://api.applite.ai/app/{appId}/customer/list \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "plateformType": ["store", "multiService"] }'

Authentifier/Créer un client

Authentifie un client existant ou en crée un nouveau.

POST /app/{appId}/customer/auth
ChampTypeRequisDescription
apiKeystringOuiClé API
fullnamestringOuiNom complet
telephonestringOuiNuméro de téléphone
emailstringNonAdresse email
plateformstringNonType de plateforme
curl -X POST https://api.applite.ai/app/{appId}/customer/auth \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "fullname": "Jean Dupont", "telephone": "+225070000000", "email": "jean@example.com", "plateform": "store" }'

Vérifier un client

Vérifie si un client existe pour un numéro de téléphone donné.

POST /app/{appId}/customer/check
ChampTypeRequisDescription
apiKeystringOuiClé API
telephonestringOuiNuméro de téléphone
plateformstringNonType de plateforme
curl -X POST https://api.applite.ai/app/{appId}/customer/check \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "telephone": "+225070000000" }'

Lister (version légère)

Retourne une liste simplifiée des clients pour les interfaces rapides.

POST /app/{appId}/customer/list/few
ChampTypeRequisDescription
apiKeystringOuiClé API
plateformTypestring[]NonFiltrer par type
curl -X POST https://api.applite.ai/app/{appId}/customer/list/few \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key" }'

Obtenir un client

Récupère les détails complets d’un client avec son activité.

POST /app/{appId}/customer/{id}
ChampTypeRequisDescription
apiKeystringOuiClé API
curl -X POST https://api.applite.ai/app/{appId}/customer/{customerId} \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key" }'

Mettre à jour un client

Met à jour les informations d’un client.

POST /app/{appId}/customer/{id}/update
ChampTypeRequisDescription
apiKeystringOuiClé API
fullnamestringNonNouveau nom
emailstringNonNouvel email
photoUrlstringNonURL de la photo
photoIdstringNonID du fichier photo
genderstringNonGenre: M ou F
dobstringNonDate de naissance (YYYY-MM-DD)
countrystringNonCode pays (ISO)
curl -X POST https://api.applite.ai/app/{appId}/customer/{id}/update \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "fullname": "Jean-Pierre Dupont", "email": "jp.dupont@example.com" }'
Last updated on