Special price

catalog Special Price Storage V1Update Post

post

Add or update product's special price. If any items will have invalid price, store id, sku or dates, 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":40415740.5558058,"store_id":68609172,"sku":"ex qui","price_from":"ut culpa nisi","price_to":"dolore","extension_attributes":{}},{"price":79140384.04758683,"store_id":-99426909,"sku":"dolore irure dolore cillum Duis","price_from":"officia esse amet","price_to":"proident quis non sunt eiusmod","extension_attributes":{}}]}
Responses
200

OK

application/json
Responseobject
post
/V1/products/special-price
POST /V1/products/special-price HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 341

{
  "prices": [
    {
      "price": 40415740.5558058,
      "store_id": 68609172,
      "sku": "ex qui",
      "price_from": "ut culpa nisi",
      "price_to": "dolore",
      "extension_attributes": {}
    },
    {
      "price": 79140384.04758683,
      "store_id": -99426909,
      "sku": "dolore irure dolore cillum Duis",
      "price_from": "officia esse amet",
      "price_to": "proident quis non sunt eiusmod",
      "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": {}
  }
]