Base prices

catalog Base Price Storage V1Update Post

post

Add or update product prices. Input item should correspond \Magento\Catalog\Api\Data\CostInterface. If any items will have invalid price, store id or sku, they will be marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"prices":[{"price":66000772.265263796,"store_id":95367218,"sku":"ipsum dolore proident","extension_attributes":{}},{"price":-87097818.1938415,"store_id":73585781,"sku":"do","extension_attributes":{}}]}
Responses
200

OK

application/json
Responseobject
post
/V1/products/base-prices
POST /V1/products/base-prices HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 202

{
  "prices": [
    {
      "price": 66000772.265263796,
      "store_id": 95367218,
      "sku": "ipsum dolore proident",
      "extension_attributes": {}
    },
    {
      "price": -87097818.1938415,
      "store_id": 73585781,
      "sku": "do",
      "extension_attributes": {}
    }
  ]
}
[
  {
    "message": "Duis",
    "parameters": [
      "Excepteur in pariatur",
      "ut n"
    ],
    "extension_attributes": {}
  },
  {
    "message": "aliqua pariatur",
    "parameters": [
      "tempor adipisicing voluptate est",
      "incididunt est sint in proident"
    ],
    "extension_attributes": {}
  }
]