> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/woocommerce/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/woocommerce/1.0-1/user-guide/refund.md).

# Refund the order

Learn how to refund the order.

To refund the WooCommerce order with this Digital River extension:

1. Go to **WooCommerce**, click **Orders**, and then click the order which the customer wants to be refunded.&#x20;
2. Choose the **Request Refund** from the **Status** dropdown and click **Update**.

{% hint style="info" %}
You can only refund the order when the order status is **Completed**.
{% endhint %}

<div align="left"><img src="https://237041549-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYBLJ55uxN93mFkHb7q%2F-M_Lee1Nr0LE5b7tmpxa%2F-M_LhMS2RehtvhZF6Anv%2FRequest-Refund.png?alt=media&amp;token=27f34252-ab65-48aa-ae6c-9089b777dccf" alt=""></div>

This extension listens to the `order.charge.refund.complete` event, which you can see on the Digital River Dashboard under **Event logs**. Once the plugin listens to this event, it marks the order as **refunded**.   &#x20;

<div align="left"><img src="https://237041549-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYBLJ55uxN93mFkHb7q%2F-MZnwN2yfcN1GtNMS-Yq%2F-MZnz_QXfVQ7vULwULbH%2FEvents-Logs.png?alt=media&amp;token=8e2afc7b-a0a0-425d-9b75-8ddd2842cd16" alt=""></div>

<div align="left"><img src="https://237041549-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYBLJ55uxN93mFkHb7q%2F-MZnzd0EmTO0QzgHuMwd%2F-MZo--4XAMtAQyx4L2Az%2FRefunded.png?alt=media&amp;token=13a07cd8-6693-4d8a-adc0-fb18448b5cf6" alt=""></div>

If you try to refund the order which has a status other than **Completed**, you will see the following error message:

<div align="left"><img src="https://237041549-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYBLJ55uxN93mFkHb7q%2F-MZo-1LtuZ7GmOpfZJ12%2F-MZo-J800ODEX7_VYGVp%2FOrder-notes.png?alt=media&amp;token=b1e6b873-d045-4d89-a595-7d5533847aba" alt=""></div>
