> For the complete documentation index, see [llms.txt](https://docs.niza.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.niza.io/authenticated-endpoints/orders/cancel-order.md).

# Cancel Order

## Cancel a open order

<mark style="color:red;">`DELETE`</mark> `/orders/:order_id`

Cancels an open order

**Headers**

| Name       | Value                 |
| ---------- | --------------------- |
| X-API-Key  | `API Key`             |
| X-API-Sign | `Generated Signature` |

Path Params

| Parameter | Value            |
| --------- | ---------------- |
| order\_id | Numeric Order ID |

No request body

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "message": "Request processed successfully.",
    "code": 200
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
