Produkty - Warianty

Tworzy wariant produktu

Changed on

Tworzenie nowego wariantu w produkcie

post/products_variants

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/products_variants
  • Auth
    API key in header apiKey

Request body

catalogstring
eanstring
pricenumber
price_promonumber
product_idinteger
promotioninteger
quantityinteger
statusinteger
weightnumber

Example request

{
  "catalog": "1VWOCN48",
  "ean": "7501031311309",
  "price": 1,
  "price_promo": 1,
  "pricesfieldsvalues": [
    {
      "currency": "EUR",
      "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

    • breaking

      the request property type changed from float to number

    • breaking

      the request property type changed from float to number

    • breaking

      the request property type changed from float to number

    • info

      added the new optional request property //