Base prices
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/jsonBody
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
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
/V1/products/base-pricesPOST /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": {}
}
]