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

API Vendeurs

Endpoints pour la gestion des vendeurs/marchands.

SDK: client.app.store.seller

Endpoints

Lister les vendeurs

POST /app/{appId}/store/seller/list
ChampTypeRequisDescription
apiKeystringOuiClé 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/create
ChampTypeRequisDescription
apiKeystringOuiClé API
fullnamestringOuiNom complet
telephonestringOuiTéléphone
emailstringOuiEmail
passwordstringNonMot de passe
confirmstringNonConfirmation mot de passe
avatarstringNonURL de l’avatar
avatarIdstringNonID du fichier avatar
countrystringNonCode pays
isDefaultbooleanNonVendeur 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}
ChampTypeRequisDescription
apiKeystringOuiClé 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}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
fullnamestringOuiNom complet
telephonestringOuiTéléphone
emailstringOuiEmail
avatarstringNonURL de l’avatar
avatarIdstringNonID 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}/delete
ChampTypeRequisDescription
apiKeystringOuiClé 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