> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: CancelOrderErrorCode
description: An enumeration value representing the current status of the order.
---

import Deprecated from "/snippets/Deprecated.mdx";

<Warning>
  This feature is deprecated and will be removed in the future. You should not use it in new code.
</Warning>

## Valid values

***

`ORDER_ALREADY_SHIPPED`

The order cannot be cancelled as it has already been shipped

***

`ORDER_SHIPPING_IN_PROGRESS`

The order cannot be cancelled as it is currently being shipped

***

`CANCEL_WINDOW_EXPIRED`

The window for cancelling the order has expired

***

`REQUEST_MANUAL_CANCELLATION`

A manual cancellation request is required

***

`NOT_SUPPORTED`

The order cancellation is not supported

***

`ORDER_NOT_FOUND`

The order was not found

***

`UNAUTHORIZED`

The dev does not have permission to cancel order

***

`ORDER_ALREADY_CANCELLED`

The order has already been cancelled

***

`CANCELLATION_IN_PROGRESS`

The order cancellation is already in progress

***

## Related types

***

[`CancelOrderResponse`](/api-reference/cancelorderresponse)


---

*Powered by [holocron.so](https://holocron.so)*
