[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-65775: Incorrect base_row_total and row_total values in REST API order details for multiple quantities

The ACSD-65775 patch fixes the issue where the REST API order details return incorrect base_row_total and row_total values when multiple quantities of the same item are ordered. This patch is available when the Quality Patches Tool (QPT) 1.1.66 is installed. The patch ID is ACSD-65775. 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.8

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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

The base_row_total and row_total in the order details REST API response show the unit price instead of the total price when multiple quantities of the same item are ordered.

Steps to reproduce:

  1. Create two simple products: simple1 priced at $10 and simple2 priced at $15.

  2. Create a new customer account.

  3. Add simple1 to the cart with quantity 2 and simple2 with quantity 3.

  4. Place the order using the customer account.

  5. Obtain an admin token by sending a POST request to /rest/V1/integration/admin/token with the following payload:

    code language-none
    {
      "username": "admin",
      "password": "password"
    }
    
  6. Retrieve the order details using a GET request to /rest/default/V1/orders/1.

Expected results:

base_row_total and row_total should reflect the total price calculated as quantity multiplied by item price (for example, 2 × $10 = $20 for simple1).

Actual results:

base_row_total and row_total return only the unit price (for example, $10 for simple1 instead of $20).

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3