MDVA-31150: invoice without store credit info

The MDVA-31150 patch fixes the issue where an invoice is created without store credit information. This patch is available when the Quality Patches Tool (QPT) v.1.0.8 is installed. Please note that the issue will be fixed in Adobe Commerce version 2.4.2.

Affected products and versions

  • This patch was designed for Adobe Commerce on cloud infrastructure 2.3.5-p2.
  • The patch is also compatible with Adobe Commerce on-premises and Adobe Commerce on cloud infrastructure 2.3.0 to 2.3.5-p2, and 2.4.0 to 2.4.0-p1.
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 QPT landing page. Use the patch ID as a search keyword to locate the patch.

Issue

After the invoice order by API the used customer balance and gift card information is not present in the invoice.

Steps to reproduce

  1. Add a store credit amount to a customer account: On the Admin sidebar, go to Customers > All Customers.
  2. Find the customer record and click on Edit in the Action column, then Store Credit > Update the balance > Save Customer.
  3. Go to Storefront and add products to cart.
  4. Place an order by applying the store credit or gift card amount as partial payment.
  5. Create invoice using REST API>POST>/rest/V1/order/1/invoice with payload: clike { "capture": true, "items": [ { "extension_attributes": {}, "order_item_id": 3, "qty": 1 } ], "notify": true, "appendComment": true, "comment": { "extension_attributes": {}, "comment": "string", "is_visible_on_front": 0 }, "arguments": { "extension_attributes": {} }}
  6. Get the invoice that was just created using REST API>GET>/rest/V1/invoices/1.

Expected result

Store credit and gift card balance are returned by API Call.

Actual result

Store credit and gift card balance are not returned by API Call.

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:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.

On this page