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

# Cancel order

> Submits a cancellation request for a specific order.

<Note>Requests go to the live environment — all actions are real.</Note>

## Authorization

<ParamField header="X-Api-Key" type="string" required>
  Your seller API key. Provided by your nocnoc account manager.
</ParamField>

## Path parameters

<ParamField path="order_id" type="string" required>
  The ID of the order to cancel.
</ParamField>

## Returns

A confirmation that the cancellation request was submitted.

## Example request

```bash theme={null}
curl -X POST https://live.nocnocstore.com/api/v2/orders/ORD-123456/cancellation \
  -H "X-Api-Key: YOUR_SELLER_KEY"
```

<ResponseExample>
  ```json 201 theme={null}
  {}
  ```

  ```json 400 theme={null}
  {
    "code": 400,
    "message": "An order issue already exists for order: order_id and type: cancellation_request and status: open"
  }
  ```

  ```json 401 theme={null}
  {
    "code": 401,
    "message": "Unauthorized"
  }
  ```

  ```json 404 theme={null}
  {
    "code": 404,
    "message": "Order not found"
  }
  ```

  ```json 409 theme={null}
  {
    "message": "Invalid Request"
  }
  ```
</ResponseExample>
