Produkty

Masowa aktualizacja produktów (Bulk Update)

Masowa aktualizacja produktów

put/products_bulk

Request body

object[] required

Example request

[
  {
    "availability_id": 3,
    "ean": 5902135057247,
    "location": "PS-32",
    "price": 61.99,
    "price_promo": 31,
    "product_id": 341,
    "promotion": 1,
    "quantity": 1,
    "storages": [
      {
        "quantity": 20,
        "rack_id": 212,
        "shelf_id": 1,
        "storage_id": 341
      }
    ],
    "title": "produkt testowy",
    "vat": 23,
    "volume": 2
  },
  {
    "availability_id": 3,
    "ean": 5902135057247,
    "price": 98.5,
    "price_promo": 80,
    "promotion": 1,
    "quantity": 5,
    "storages": [
      {
        "quantity": 1,
        "rack_id": 223,
        "shelf_id": 1,
        "storage_id": 341
      }
    ],
    "variant_id": 15,
    "volume": 2
  },
  {
    "availability_id": 3,
    "price": 98.5,
    "price_promo": 78.99,
    "promotion": 0,
    "quantity": 3,
    "storages": [
      {
        "quantity": 1,
        "rack_id": 232,
        "shelf_id": 1,
        "storage_id": 341
      }
    ],
    "variant_id": 39,
    "volume": 2
  }
]

Response

Sukces

statusstring

Example response

{
  "lines": [
    {
      "line": 1,
      "product_id": 341,
      "status": "success"
    },
    {
      "line": 2,
      "message": "item_not_found",
      "status": "error",
      "variant_id": 15
    },
    {
      "line": 3,
      "status": "success",
      "variant_id": 39
    }
  ],
  "status": "SUCCESS"
}

Changes

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