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.
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
After the invoice order by API the used customer balance and gift card information is not present in the invoice.
Steps to reproduce
- Add a store credit amount to a customer account: On the Admin sidebar, go to Customers > All Customers.
- Find the customer record and click on Edit in the Action column, then Store Credit > Update the balance > Save Customer.
- Go to Storefront and add products to cart.
- Place an order by applying the store credit or gift card amount as partial payment.
- Create invoice using
REST API>POST>/rest/V1/order/1/invoice
with payload:{ "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": {} }}
- 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:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.