ACSD-62951: Fixes missing items and totals in Credit Memo emails sent via REST API
- Topics:
- REST
CREATED FOR:
- Experienced
- Admin
- Developer
The ACSD-62951 patch fixes the issue where theCredit Memo email is sent without including the order items and totals. This patch is available when the Quality Patches Tool (QPT) 1.1.57 is installed. The patch ID is ACSD-62951. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce (all deployment methods) 2.4.5-p10
Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-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
The Credit Memo email sent when a credit memo is created via the REST API POST V1/order/:orderId/refund
does not include the order items and totals.
Steps to reproduce:
-
Create an order with any product.
-
Ship and invoice the order. Ensure that the invoice email is sent, and it includes the product details.
-
Generate an Admin Token using the API client.
-
Use the token to create a credit memo via the REST API.
-
Endpoint:
POST V1/order/:orderId/refund
-
Request payload:
{ "notify": true, "items": [ { "order_item_id": 1, "qty": 1 } ] }
-
Expected results:
The Credit Memo email should include the refunded items and totals
Actual results:
The Credit Memo email does not contain any items or totals, resulting in incomplete information.
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
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.