codingrow.com
Withdrawal Button

Magento 2 Credit Memo: How to Refund an Order Step by Step

Create a Magento 2 credit memo the right way: online vs offline refunds, partial refunds, restocking, customer emails and a clean refund workflow.

Withdrawal Button — Magento 2 Credit Memo: How to Refund an Order Step by Step

Refunding an order is one of the most common admin tasks, yet many merchants are unsure how a Magento 2 credit memo works. Online or offline? Is stock returned? Does the customer get an email? This guide walks you through the whole native process.

  • Create a full or partial credit memo from an order
  • Choose correctly between Refund and Refund Offline
  • Return items to stock and notify the customer
  • Set up a repeatable refund workflow, including withdrawal requests

Step 1: Understand what a credit memo is

A credit memo is the document that reverses all or part of an invoice. It is the only correct way to record a refund in Magento.

  • It updates the order status and the totals in reports.
  • It can refund items, shipping and custom adjustments.
  • It can only be created for an order that has an invoice.
If the order was never invoiced (for example payment not captured), you do not need a credit memo. Cancel the order instead from the order view with the Cancel button.

Step 2: Open the order and start the credit memo

Find the order you want to refund.

Sales›Orders

Open the order, then click the Credit Memo button in the top toolbar. You land on the New Memo page, prefilled with the invoiced items.

  • The button is missing? The order is not invoiced, or it is already fully refunded.
  • You can also start from an invoice: Sales›Invoices, open it, then click Credit Memo.

Step 3: Select the items and quantities

In the Items to Refund table, set the quantity for each product.

`1` (partial) or full quantity

Click Update Qty's after any change. Totals below are recalculated.

For a partial refund of one item in a multi-item order, set every other quantity to 0 and click Update Qty's before doing anything else.

Step 4: Return items to stock (or not)

On the same page you decide whether the product goes back into inventory.

checked (only if the item is resellable)

Damaged or opened goods should not go back to salable stock, so leave the box unchecked for those.

To make restocking automatic for every credit memo, use the global setting:

Stores›Configuration›Catalog›Inventory›Product Stock Options
Yes

Expect the Return to Stock box to be pre-checked afterwards. You can still change it per memo.

Automatic restocking assumes every refunded item is physically back. If you refund before the parcel arrives, you may oversell. Consider restocking manually after the goods are inspected.

Step 5: Set the refund totals

Scroll to Refund Totals. Here you control exactly how much money goes back.

  • Refund Shipping: the shipping amount to return. Set 0 to keep it.
  • Adjustment Refund: extra money to give back, for example a goodwill amount.
  • Adjustment Fee: an amount to deduct, such as a restocking fee.

Example: an order of 100.00 with 10.00 shipping. You refund the item (100.00), set Refund Shipping to 0 and Adjustment Fee to 5 for a handling charge. Click Update Totals, and the Grand Total shows the figure that will be refunded.

Always click Update Totals after editing shipping or adjustments, otherwise the refund button stays disabled and the amount may be wrong.

Always click Update Totals after editing shipping or adjustments. The buttons stay disabled until you do.

Step 6: Choose Refund or Refund Offline

This is where most mistakes happen. At the bottom you see one or two buttons.

  • Refund: sends the money back through the original payment gateway. Available only if the payment method supports online refunds and the invoice was captured online.
  • Refund Offline: only records the refund in Magento. No money moves. You must send it yourself (bank transfer, gateway dashboard, etc.).

Before clicking, optionally add a note.

internal or customer-facing note
tick to include the comment in the email
tick to notify the customer

Expect a green success message and the order status updated to Closed (full refund) or still open (partial).

Using Refund Offline on an order paid by card does not return the money to the customer. Verify in your payment provider that the refund really happened.

Step 7: Enable and check credit memo emails

Customers should always receive confirmation of a refund. Check that credit memo emails are active.

Stores›Configuration›Sales›Sales Emails›Credit Memo
Yes

You can also set Send Credit Memo Email Copy To for your accounting mailbox. To edit the template, go to Marketing›Communications›Email Templates and load the credit memo template.

Step 8: Verify the result

After saving, confirm everything is consistent.

Sales›Credit Memos
  • The new memo appears with the right Refunded amount.
  • The order view shows it under the Credit Memos tab.
  • Product quantity is updated if you ticked Return to Stock.
  • The customer email appears in your mail logs or inbox.

Step 9: Build a refund workflow for withdrawal requests

In the EU, consumers can generally withdraw from distance purchases, and the refund is expected within a short legal deadline after you are informed (typically 14 days). Check the exact rules with your legal adviser.

The legal refund deadline is typically 14 days from when you are informed of the withdrawal. Confirm the exact rules for your country with a legal adviser.

A simple native process looks like this:

  1. Receive the request (email, contact form or a dedicated page).
  2. Open the order and add a comment in the Notes for this Order box with the date received.
  3. Wait for the return, or refund according to your policy.
  4. Create the credit memo with the steps above.
  5. Keep the email and order comment as proof.

Write the request date in the order comment immediately. The refund deadline runs from when you were informed, not from when you process the order.

Checklist

  • ☐ The order has a paid invoice
  • ☐ Quantities and Update Qty's applied
  • ☐ Return to Stock set correctly for each item
  • ☐ Refund Shipping and adjustments reviewed
  • ☐ Update Totals clicked
  • ☐ Correct button used: Refund or Refund Offline
  • ☐ Email Copy of Credit Memo ticked
  • ☐ Refund confirmed in the payment provider
  • ☐ Memo visible under Sales›Credit Memos

Common mistakes

Problem: The Credit Memo button is not visible.

Fix: Create an invoice first. Without it, only cancellation is possible.

Problem: The refund shows in Magento but the customer has no money.

Fix: You used Refund Offline. Send the money manually, or ask your payment provider to refund it.

Problem: Stock numbers are wrong after refunds.

Fix: Review Return to Stock per memo and the Automatically Return Credit Memo Item to Stock setting.

Problem: The Refund button is greyed out.

Fix: Click Update Totals first. If it is still disabled, the grand total is probably 0 or negative.

Problem: Shipping was refunded by accident.

Fix: You cannot edit a saved memo. Check Refund Shipping before submitting, and use Adjustment Fee for corrections on the next memo only if justified.

FAQ

Can I delete or edit a credit memo?

No. Credit memos are accounting documents and cannot be edited or deleted from the admin after creation. Review the totals carefully before submitting.

A saved credit memo is permanent. Double-check quantities, shipping and adjustments before you submit.

Can I refund more than the original order total?

No. Magento blocks refunds that exceed the amount paid. Use adjustments only within the invoiced total.

How do I refund to store credit?

The Refund to Store Credit option is available only in Adobe Commerce, when the customer account and store credit are enabled. In Open Source you can refund to the original method or offline.

Does a credit memo reverse the tax?

Yes. Tax is refunded proportionally to the items and shipping included in the memo, based on the original order.

A faster alternative

Credit memos solve the refund side, but the customer first needs an easy way to tell you they want to withdraw. Handling that by email is slow and hard to track.

The Withdrawal Button extension for Magento 2 adds a public withdrawal request page where the customer enters name, email, order number and delivery date, with the EU Directive 2023/2673 note included. You then process each request and issue the credit memo as described above.

Withdrawal Button admin configuration in Magento
Withdrawal Button admin configuration in Magento
The public withdrawal request page with name, email, order number, delivery date and the EU Directive 2023/2673 note
The public withdrawal request page with name, email, order number, delivery date and the EU Directive 2023/2673 note

If you handle few returns, the native process above is enough. If requests are frequent or you need a clear, documented trail, a dedicated button saves time.

Questions & Answers

No questions yet — be the first to ask.

Ask a question

Public. Shown only after moderation. No spam.

New guides, when they go live

One hands-on Magento 2 guide per email, only when we publish one. Nothing else.

Articles are written in English. One click to unsubscribe, in every email. · privacy