products/tier-prices

products/tier-prices

post/V1/products/tier-prices

Add or update product 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 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.

Request
Request Body schema:
required
Array of objects (catalog-data-tier-price-interface)
Responses
200

200 Success.

401

401 Unauthorized

default

Unexpected error

Request samples
{
  • "prices": [
    ]
}
Response samples
[
  • {
    }
]

products/tier-prices

put/V1/products/tier-prices

Remove existing tier prices and replace them with the new ones. 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 replace 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.

Request
Request Body schema:
required
Array of objects (catalog-data-tier-price-interface)
Responses
200

200 Success.

401

401 Unauthorized

default

Unexpected error

Request samples
{
  • "prices": [
    ]
}
Response samples
[
  • {
    }
]