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

# How Cancelling an Order Affects Inventory in Eaglecart

> When you cancel or reopen an Eaglecart order, a stock prompt appears only for orders with stock-tracked products. Learn when it appears and what yes and no do.

[Help Center](https://help.eaglecart.com/introduction.md)

[Orders](https://help.eaglecart.com/orders.md)

How cancelling affects inventory

# How cancelling affects inventory

When you cancel an order in Eaglecart, you can choose whether its products go back into stock. When you reopen a cancelled order, you can choose whether to take them out again. The choice is yours, and the status changes either way.

The prompt doesn't appear on every status change. It depends on what the order contains and which statuses you're moving between.

## When the stock prompt appears

Two things must both be true:

1. **The order contains at least one stock-tracked product.** That's a product with inventory tracking turned on.
2. **The order status crosses the Cancelled boundary.** It moves from an active status into **Cancelled**, or from **Cancelled** back to an active status.

| Order contains stock-tracked products? | Status change | Stock prompt |
| - | - | - |
| Yes | Active status → **Cancelled** (for example **Confirmed** → **Cancelled**) | Offers to **restock** tracked quantities |
| Yes | **Cancelled** → active status (for example **Cancelled** → **Confirmed**) | Offers to **deduct** tracked quantities |
| Yes | Between active statuses (for example **Pending** → **Confirmed**, **Confirmed** → **Completed**) | No prompt |
| No | Any change, including to or from **Cancelled** | No prompt |

## Which orders count as stock-tracked

An order is stock-tracked when at least one of its products has inventory tracking turned on:

* A physical product with **Track quantity** on: stock-tracked.
* A digital product without stock tracking: not stock-tracked.
* A service without stock tracking: not stock-tracked.
* Any product with inventory tracking turned off: not stock-tracked.

In a mixed order, one stock-tracked product is enough for the prompt to appear. Only the tracked quantities move.

## What yes and no do

| Change | You choose yes | You choose no |
| - | - | - |
| Into **Cancelled** | The order is cancelled and tracked quantities return to inventory. | The order is cancelled. Stock doesn't move. |
| Out of **Cancelled** | The order is reopened and tracked quantities are deducted from inventory again. | The order is reopened. Stock doesn't move. |

The prompt is a choice, not a condition. Saying no never blocks the status change.

## Step by step

1. Open the order, or find its row in the **Orders** list.
2. Change the **Order status** to **Cancelled**, or from **Cancelled** to an active status.
3. If the order contains stock-tracked products, the stock prompt appears.
4. Choose yes to move the stock, or no to skip the stock movement.
5. The status change is saved and recorded in [Order history](https://help.eaglecart.com/orders/order-history.md).

> [!WARNING]
>
> If you choose no, the stock isn't moved and Eaglecart won't ask again for that change. Check your inventory afterwards. To fix quantities later, use a [stock adjustment](https://help.eaglecart.com/inventory-warehouse/stock-adjustments.md) with a reason, so the correction is recorded.

## Examples

**Cancelling an order of shirts.** A customer orders two stock-tracked shirts. You change the order from **Confirmed** to **Cancelled**. Eaglecart asks whether to return the tracked quantity to inventory. You choose yes, and the two shirts are back in stock.

**Reopening the same order.** The customer changes their mind again. You change the order back to **Confirmed**. Eaglecart offers to deduct the stock again. You choose yes, and the two shirts are taken out of stock.

**Cancelling a digital download.** An order contains only a digital download with inventory tracking turned off. You change it to **Cancelled**. No stock prompt appears, because there's no tracked inventory to move.

**Confirming an order.** You change an order with stock-tracked products from **Pending** to **Confirmed**. No prompt appears, because the change doesn't involve **Cancelled**.

## The prompt doesn't check past stock movements

Eaglecart decides whether to show the prompt by looking at the products in the order, not at what happened to the stock before. The prompt can appear even if no stock was deducted for that order earlier.

So before choosing yes, think about whether the stock really left your inventory for this order. If it didn't, choosing yes would add stock you don't actually have.

> [!NOTE]
>
> **Technical note:** the prompt is shown when the order is trackable (`is_trackable`, meaning at least one product in the order has inventory tracking on) and the order status change goes into or out of **Cancelled**. Accepting into **Cancelled** sends `restock=1`, declining sends `restock=0`. Accepting out of **Cancelled** sends `deduct=1`, declining sends `deduct=0`. The check is on product trackability, not on the order's history of inventory movements. Changes between two non-cancelled statuses never show the prompt.

## Troubleshooting

**Why didn't I see the restock prompt when cancelling?**
The order has no stock-tracked products. For example, it only contains a digital product or a product with inventory tracking turned off.

**Why does reopening a cancelled order offer to deduct stock?**
Moving out of **Cancelled** means the order is active again. If the stock was returned when you cancelled, it needs to come out again for the order.

**I declined the prompt by mistake.**
The status still changed. Correct the stock with a [stock adjustment](https://help.eaglecart.com/inventory-warehouse/stock-adjustments.md).

**Can I cancel an order without restocking it?**
Yes. Choose no when the prompt appears. The order is cancelled and stock stays as it is.

## Related guides

* [Cancel and reopen an order](https://help.eaglecart.com/orders/cancel-and-reopen-an-order.md): the full cancellation steps.
* [Correct inventory quantities](https://help.eaglecart.com/inventory-warehouse/stock-adjustments.md): fix stock with a reason.
* [View and manage inventory](https://help.eaglecart.com/inventory-warehouse/manage-inventory.md): check stock after a cancellation.
* [Product inventory, SKUs and barcodes](https://help.eaglecart.com/products/inventory-skus-and-barcodes.md): turn tracking on or off.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.