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

# ReturnOrderErrorCode

> An enumeration value representing the current status of the order.

## Valid values

***

`ORDER_SHIPPING_IN_PROGRESS`

The order cannot be returned as it is currently being shipped

***

`RETURN_WINDOW_EXPIRED`

The window for returning the order has expired

***

`NOT_SUPPORTED`

The order return is not supported

***

`ORDER_NOT_FOUND`

The order was not found

***

`UNAUTHORIZED`

The dev does not have permission to cancel order

***

`ALREADY_RETURNED`

The item has already been returned

***

`ALREADY_DENIED`

The item requested to be returned has already been denied

***

`RETURN_IN_PROGRESS`

The item already has a return in progress

***

`INVALID_QUANTITY`

The order return is already in progress

***

`LINE_ITEM_NOT_IN_ORDER`

The return request contains a line item with an id that was not part of the order

***

`RETURN_CREATION_FAILED`

The return request failed to be created

***

## Related types

***

[`ReturnOrderResponse`](/api-reference/returnorderresponse)
