API Vendeurs
Endpoints pour la gestion des vendeurs/marchands.
SDK: client.app.store.seller
Endpoints
Lister les vendeurs
POST /app/{appId}/store/seller/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/store/seller/list \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Créer un vendeur
POST /app/{appId}/store/seller/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
fullname | string | Oui | Nom complet |
telephone | string | Oui | Téléphone |
email | string | Oui | |
password | string | Non | Mot de passe |
confirm | string | Non | Confirmation mot de passe |
avatar | string | Non | URL de l’avatar |
avatarId | string | Non | ID du fichier avatar |
country | string | Non | Code pays |
isDefault | boolean | Non | Vendeur par défaut |
curl -X POST https://api.applite.ai/app/{appId}/store/seller/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"fullname": "Nouvelle Boutique",
"telephone": "+225071111111",
"email": "nouvelle@boutique.com",
"isDefault": false
}'Obtenir un vendeur
POST /app/{appId}/store/seller/{id}Requête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/store/seller/{sellerId} \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Mettre à jour un vendeur
POST /app/{appId}/store/seller/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
fullname | string | Oui | Nom complet |
telephone | string | Oui | Téléphone |
email | string | Oui | |
avatar | string | Non | URL de l’avatar |
avatarId | string | Non | ID du fichier avatar |
curl -X POST https://api.applite.ai/app/{appId}/store/seller/{sellerId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"fullname": "Boutique Pro Updated",
"telephone": "+225070000000",
"email": "new@boutiquepro.com"
}'Supprimer un vendeur
POST /app/{appId}/store/seller/{id}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/store/seller/{sellerId}/delete \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'La suppression d’un vendeur entraîne la suppression de tous ses produits, catégories et commandes associées.
Last updated on