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

API Catégories

Endpoints pour la gestion des catégories de produits.

SDK: client.app.store.category

Endpoints

Lister les catégories

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

Créer une catégorie

POST /app/{appId}/store/category/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom de la catégorie
sellerIdstringOuiID du vendeur
descriptionstringNonDescription
imagestringNonURL de l’image
imageIdstringNonID du fichier image
parentIdstringNonID de la catégorie parente
curl -X POST https://api.applite.ai/app/{appId}/store/category/create \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "Électronique", "sellerId": "sel_789", "description": "Produits électroniques" }'

Obtenir une catégorie

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

Mettre à jour une catégorie

POST /app/{appId}/store/category/{id}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
descriptionstringNonNouvelle description
imagestringNonNouvelle image
parentIdstringNonNouvelle catégorie parente
curl -X POST https://api.applite.ai/app/{appId}/store/category/{categoryId}/edit \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "Mode & Vêtements" }'

Supprimer une catégorie

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

La suppression d’une catégorie parente ne supprime pas ses sous-catégories. Elles deviennent des catégories racine.

Last updated on