ACSD-69129: REST API tier price update fails after deleting the default base website and using the secondary website as default
The ACSD-69129 patch fixes the issue where deleting the default base website and using the secondary website as the default resulted in an error when attempting to update the tier price for the secondary website via REST API. This patch is available when the Quality Patches Tool (QPT) 1.1.76 is installed. The patch ID is ACSD-69129. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p13, 2.4.8-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.6-p13, 2.4.8 - 2.4.8-p3
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Deleting the default base website and using the secondary website as the default, results in an error when attempting to update the tier price for the secondary website via REST API.
Steps to reproduce:
- Log in to Admin panel.
- Set Catalog Price Scope = Website.
- Create a new website/store/storeview.
- Set Set as default for the newly created website.
- Clear the cache.
- Create a new product. Assign it only to the second website.
- Send a REST API request to set the tier price for second website.
- The result should be an empty array with a 200 response.
- In the Admin, delete Main Website.
- Send a REST API request to set the tier price for the second website.
Expected results:
- A 200 response is received.
- The tier price for the product is updated.
Actual results:
- The Invalid attribute Website ID = %websiteId. Row ID: SKU = %SKU, Website ID: %websiteId, Customer Group: %customerGroup, Quantity: %qty. error is returned in the response.
- The tier price for the product isn’t updated.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
- Catalog Management: Price Scope in the Adobe Commerce Catalog Management Guide
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide