Crée une nouvelle variante pour un produit existant.
Exemples de variantes:
- Tailles : S, M, L, XL
- Couleurs : Rouge, Bleu, Vert
- Options : Avec option A, Sans option A
Propriétés personnalisables:
- Prix spécifique à la variante
- Stock propre à la variante
- Référence distincte
Événement déclenché: CREATE_PRODUCT_VARIANT
POST
/product/{uid}/variant
curl \
--request POST 'https://wuro.pro/api/v3.2/product/{uid}/variant' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"string","reference":"string","sku":"string","price_ht":42.0,"buying_price":42.0,"tva_rate":42.0,"options":{},"stock":{"nb_stock":42.0,"nb_alert":42.0,"nb_min":42.0}}'
Request examples
{
"name": "string",
"reference": "string",
"sku": "string",
"price_ht": 42.0,
"buying_price": 42.0,
"tva_rate": 42.0,
"options": {},
"stock": {
"nb_stock": 42.0,
"nb_alert": 42.0,
"nb_min": 42.0
}
}