> 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/cancel.md).

# Cancel an order

There are a few conditions when cancelling the WooCommerce order with this Digital River plugin:

1. The order can only be cancelled by the store admin, customers don’t have the provision to cancel the order.
2. The order can only be cancelled if the order’s status is **Ready for fulfillment**. The **Enable automatic fulfillment** must be de-selected under the **Digital River** tab in **Payments** to prevent the order to be fulfilled automatically.  &#x20;

To cancel the order, go to **WooCommerce**, click **Orders**, and then click the order. Make sure the order status is **Ready for fulfillment**.

<div align="left"><img src="/files/-MZnum0OdcL_-v3_GEDm" alt=""></div>

Once you click the order, you will see the screen below.&#x20;

1. Choose the **Cancelled** status from the **Status** dropdown.
2. Click **Update**. You will see the order notes on the right side. If it’s successful, it will show **Cancellation has been created with ID.**&#x20;

<div align="left"><img src="/files/-MZnvPCWDe8EfCcpKTJ6" alt=""></div>

If you try to cancel the completed order, that is an order with a **Completed** status, you will see the following error message:

<div align="left"><img src="/files/-MZnwKFvRMChKAsavrJr" alt=""></div>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digitalriver.com/woocommerce/1.0-1/user-guide/cancel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
