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

API Produits

Endpoints pour la gestion des produits dans la boutique.

SDK: client.app.store.product

Endpoints

Lister les produits

Récupère la liste des produits avec pagination et filtres.

POST /app/{appId}/store/product/list
ChampTypeRequisDescription
apiKeystringOuiClé API
searchstringNonRecherche textuelle
idsstring[]NonFiltrer par IDs
categoryIdstringNonFiltrer par catégorie
sellerIdstringNonFiltrer par vendeur
collectionIdsstring[]NonFiltrer par collections
tagIdsstring[]NonFiltrer par tags
statusstringNonACTIVE, DRAFT, ARCHIVED
pagenumberNonPage (défaut: 1)
limitnumberNonLimite (défaut: 20, max: 100)
curl -X POST https://api.applite.ai/app/{appId}/store/product/list \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "search": "T-Shirt", "status": "ACTIVE", "page": 1, "limit": 20 }'

Créer un produit

Crée un nouveau produit avec ses variantes.

POST /app/{appId}/store/product/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom du produit
sellerIdstringOuiID du vendeur
categoryIdstringOuiID de la catégorie
variantsarrayOuiVariantes du produit
skustringNonCode SKU global
descriptionstringNonDescription
statusstringNonACTIVE, DRAFT, ARCHIVED
seoTitlestringNonTitre SEO
seoDescriptionstringNonDescription SEO
collectionIdsstring[]NonCollections
tagIdsstring[]NonTags
badgeIdstringNonBadge
shippingProfileIdstringNonProfil de livraison
attributesarrayNonAttributs personnalisés

Structure d’une variante:

{ "price": 2500, "compareAtPrice": 3000, "quantity": 100, "sku": "TSP-001-M", "isDefault": true, "images": [ { "url": "https://...", "imageId": "img_001" } ], "optionValues": [ { "optionId": "opt_001", "value": "M" } ] }
curl -X POST https://api.applite.ai/app/{appId}/store/product/create \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "T-Shirt Premium", "sellerId": "sel_789", "categoryId": "cat_456", "variants": [ { "price": 2500, "quantity": 100, "isDefault": true, "images": [{"url": "https://cdn.example.com/tshirt.jpg"}] } ] }'

Obtenir un produit

Récupère les détails complets d’un produit.

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

Mettre à jour un produit

Met à jour un produit existant.

POST /app/{appId}/store/product/{id}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
descriptionstringNonNouvelle description
statusstringNonNouveau statut
categoryIdstringNonNouvelle catégorie
variantsarrayNonNouvelles variantes
Autres champs optionnels
curl -X POST https://api.applite.ai/app/{appId}/store/product/{productId}/edit \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "T-Shirt Premium V2", "status": "DRAFT" }'

Supprimer un produit

Supprime un produit.

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