Tier prices delete
Delete product tier prices. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from delete 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":19216035.254590124,"price_type":"Duis Ut","website_id":5133488,"sku":"irure quis minim amet tempor","customer_group":"mollit nostrud reprehenderit","quantity":-4871832.695546806,"extension_attributes":{}},{"price":14720943.397007912,"price_type":"cillum est ad eu","website_id":53384041,"sku":"sit voluptate","customer_group":"fugiat cillum mollit","quantity":-23893126.237930804,"extension_attributes":{}}]}
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/products/tier-prices-delete HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 428
{
"prices": [
{
"price": 19216035.254590124,
"price_type": "Duis Ut",
"website_id": 5133488,
"sku": "irure quis minim amet tempor",
"customer_group": "mollit nostrud reprehenderit",
"quantity": -4871832.695546806,
"extension_attributes": {}
},
{
"price": 14720943.397007912,
"price_type": "cillum est ad eu",
"website_id": 53384041,
"sku": "sit voluptate",
"customer_group": "fugiat cillum mollit",
"quantity": -23893126.237930804,
"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": {}
}
]