> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scayla.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel order block

> Let customers cancel their own order from the Order status and Order index pages.

The **Cancel order** block renders as a button in the manage order menu. When a customer clicks it, their order is cancelled automatically.

## How it works

* The button can only be clicked while the order is within the [editing window](/editr/guides/configuring-editr/editing-window) and not blocked by [editing restrictions](/editr/guides/configuring-editr/editing-restrictions)
* Cancellations trigger an automatic refund based on your [refund options](/editr/guides/configuring-editr/refund-options)
* If [restocking](/editr/guides/configuring-editr/restocking-inventory) is turned on, inventory is returned to your available stock
* Customers receive a cancellation email if [customer notifications](/editr/guides/configuring-editr/customer-notifications) are enabled

## Settings

The Cancel order block has no block-level settings. All behavior is controlled from your Editr admin settings.

## Where it appears

The Cancel order block is available on the **Orders and Order status** target. Once added, it renders on both the Order status page and the Orders index in customer accounts.

## Related guides

* [Adding editing blocks to your theme](/editr/guides/editing-options/adding-editing-blocks)
* [Refund options](/editr/guides/configuring-editr/refund-options)
* [Restocking inventory](/editr/guides/configuring-editr/restocking-inventory)
