Produkty

Aktualizuje produkt

Changed on

Aktualizacja produktu w oparciu o jego ID

put/products/{product_id}

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/products/{product_id}
  • Auth
    API key in header apiKey

Path parameters

product_idinteger required

Identyfikator produktu

Query parameters

categories_replacement_mode0 | 1

Tryb zastępowania przypisanych kategorii (0 = dopisz, 1 = zastąp)

images_replacement_mode0 | 1

Tryb zastępowania galerii zdjęć produktu (0 = dopisz, 1 = zastąp)

Request body

titlestring
catalogstring
eanstring
pack_eanstring
as_setboolean
presale_datestring
symbolstring
volumenumber
no_barcode_labelinteger
locationstring
unit_idinteger
priorityinteger
before_gpsrinteger

Wprowadzenie przed rozporządzeniem GPSR (marketed_before_GPSR_obligation)

stepnumber
alertinteger
alert_expiration_daysinteger
alert_expired_daysinteger
responsibleperson_idinteger
extra_infostring
bestsellerinteger
newinteger
shipment_template_idinteger
availability_idinteger
quantitynumber
pricenumber
vat_ratesobject

Aktualizacja wielokrajowych stawek VAT (kod ISO-2 kraju => wartość stawki)

weightnumber
statusinteger
variants_group_idinteger
attributes_group_idinteger
manufacturer_idinteger
category_idinteger
categoriesinteger[]
vatinteger
price_promonumber
promotioninteger
descriptionstring
description_shortstring
imagesstring[]

Example request

{
  "title": "Koszulka sportowa męska (Edycja)",
  "catalog": "TSHIRT-FIT-M-REV",
  "before_gpsr": 1,
  "responsibleperson_id": 15,
  "external_shops_mappings": [
    {
      "shop_id": 1,
      "foreign_id": 4321
    }
  ],
  "locations": [
    {
      "storage_id": 1,
      "shelf_id": 3,
      "rack_id": 12,
      "quantity": 40,
      "expiration_date": "2028-12-31",
      "additional_field": "Sektor A, poziom 2"
    }
  ],
  "price": 99.99,
  "prices": [
    {
      "currency": "EUR",
      "price": 24.99,
      "price_promo": 19.99
    }
  ],
  "vat_rates": {
    "PL": "23",
    "DE": "19"
  },
  "additional_eans": [
    {
      "id": 301,
      "ean": "5901234567800"
    },
    {
      "id": 302,
      "delete": true
    },
    {
      "ean": "5901234567824"
    }
  ],
  "shops_settings": [
    {
      "shop_id": 1,
      "price": 95,
      "price_promo": 75,
      "promotion": 1,
      "promotion_end": "2026-12-31 23:59:59"
    }
  ],
  "packages": {
    "normal": {
      "width": 26,
      "length": 31,
      "height": 3
    }
  },
  "pricesfieldsvalues": [
    {
      "pricesfield_id": 2,
      "value": 68
    }
  ]
}

Response

Sukces

product_idinteger

Example response

{
  "product_id": 20
}

Changes

    • warning

      removed the request property

    • warning

      removed the request property

    • breaking

      the request property type changed from bool to boolean

    • breaking

      the / request property type changed from integer to string, and format from int64 to no format

    • breaking

      the request property type changed from float to number

    • warning

      removed the request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the / request property format was generalized from int64 to no format

    • info

      the request property type was generalized from integer to number

    • info

      the request property type was generalized from integer to number