# order_not_cancellable

> The order can't be cancelled

- Status: 400 Bad Request
- Returned by: /api/public
- Operations: [cancelOrder](https://developers.rivr.io/reference/api-public/cancelOrder.md)
- Retry (`retryWhen`): `never`
- Did anything happen? (`outcome`): `none` (It did not happen)
- Cancelling and refunding in /api/public
- Page in the portal: https://developers.rivr.io/errors/order_not_cancellable
- Try it: `GET https://developers.rivr.io/errors/simulate/order_not_cancellable` answers with the code's exact wire form; `?succeedAfter=N&attempt=K` gives a 200 once `attempt` passes `N`

## What it means

The order's status doesn't allow it to be cancelled. `message` says which status it is.

## What your system does

Fetch the order with `GET /api/public/orders/{orderId}` and show what applies.

## Is it worth retrying?

No, not without changing the call.

`retryWhen`: `never`. Don't send it again. The answer is final for this request: read the current state, the order for example, and act on that.

## Did anything happen?

`outcome`: `none`. **It did not happen.** This call did not do what you asked for and changed nothing else that you can see or that concerns money. Where the code has an `outcomeNote`, it takes precedence.

## Example: /api/public

```http
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "propertyName": "Status",
  "message": "The order is in status None and can therefore not be cancelled",
  "errorCode": "order_not_cancellable",
  "code": "order_not_cancellable",
  "type": "https://developers.rivr.io/errors/order_not_cancellable"
}
```

The `title`, `detail`, `message` and `error_description` texts are exactly as the API writes them today.
