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

API Options

Endpoints pour la gestion des options de variantes produits.

SDK: client.app.store.option

Endpoints

Lister les options

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

Créer une option

POST /app/{appId}/store/option/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom de l’option
sellerIdstringOuiID du vendeur
valuesstring[]OuiValeurs possibles
descriptionstringNonDescription
curl -X POST https://api.applite.ai/app/{appId}/store/option/create \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "Matière", "sellerId": "sel_789", "values": ["Coton", "Polyester", "Lin"], "description": "Type de tissu" }'

Obtenir une option

POST /app/{appId}/store/option/{id}
curl -X POST https://api.applite.ai/app/{appId}/store/option/{optionId} \ -H "Content-Type: application/json" \ -d '{"apiKey": "your_api_key"}'

Mettre à jour une option

POST /app/{appId}/store/option/{id}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
descriptionstringNonNouvelle description
valuesstring[]NonNouvelles valeurs
curl -X POST https://api.applite.ai/app/{appId}/store/option/{optionId}/edit \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "values": ["XS", "S", "M", "L", "XL", "XXL"] }'

Supprimer une option

POST /app/{appId}/store/option/{id}/delete
curl -X POST https://api.applite.ai/app/{appId}/store/option/{optionId}/delete \ -H "Content-Type: application/json" \ -d '{"apiKey": "your_api_key"}'

La suppression d’une option peut affecter les variantes de produits qui l’utilisent.

Last updated on