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/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé 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/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom de la catégorie |
sellerId | string | Oui | ID du vendeur |
description | string | Non | Description |
image | string | Non | URL de l’image |
imageId | string | Non | ID du fichier image |
parentId | string | Non | ID 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}Requête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé 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}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
description | string | Non | Nouvelle description |
image | string | Non | Nouvelle image |
parentId | string | Non | Nouvelle 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}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé 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