Aktualizuje produkt
Changed onAktualizacja produktu w oparciu o jego ID
Request
- Base URLhttps://demo.sellasist.pl/api/v1
- URLhttps://demo.sellasist.pl/api/v1/products/{product_id}
- AuthAPI key in header apiKey
Path parameters
Identyfikator produktu
Query parameters
Tryb zastępowania przypisanych kategorii (0 = dopisz, 1 = zastąp)
Tryb zastępowania galerii zdjęć produktu (0 = dopisz, 1 = zastąp)
Request body
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
Example response
{
"product_id": 20
}Changes
- warning
removed the request property
- warning
removed the request property
- warning
- breaking
the
request property type changed frombooltoboolean - breaking
the
/request property type changed fromintegertostring, and format fromint64to no format - breaking
the
request property type changed fromfloattonumber - 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 fromint64to no format - info
the
request property type was generalized fromintegertonumber - info
the
request property type was generalized fromintegertonumber
- breaking