Produkty - Warianty

Tworzy wariant produktu

Tworzenie nowego wariantu w produkcie

post/products_variants

Request body

catalogstring
eanstring
{"stackTrail":"components:schemas:product_variant:properties:price","oasType":"schema","type":"unknown","example":1}
{"stackTrail":"components:schemas:product_variant:properties:price_promo","oasType":"schema","type":"unknown","example":1}
product_idinteger
promotioninteger
quantityinteger
statusinteger
{"stackTrail":"components:schemas:product_variant:properties:weight","oasType":"schema","type":"unknown","example":1}

Example request

{
  "catalog": "1VWOCN48",
  "ean": "7501031311309",
  "price": 1,
  "price_promo": 1,
  "pricesfieldsvalues": [
    {
      "pricesfield_id": 2,
      "value": 21.9
    }
  ],
  "product_id": 1,
  "promotion": 1,
  "quantity": 5,
  "status": 1,
  "variants_properties": [
    {
      "variants_property_id": 1
    }
  ],
  "weight": 1
}

Response

Sukces

product_variant_idinteger

Example response

{
  "product_variant_id": 20
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.