**版本：202201**

# 取消订单

**POST** `/openapi/2022-01/orders/:id/cancel`

通过唯一 ID 取消指定订单，支持填写取消原因。

## 请求

**Path参数**

- `id` string (required)

  Order's ID

**application/json**

**请求体 | 示例**

**请求体**

- `reason` string

  Cancel reason

```json
{
  "reason": "string"
}
```

## 响应

**200 | 404**

200

**application/json**

无 Schema

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Unable to find resource"
  ]
}
```

```json
{
  "errors": [
    "Unable to find resource"
  ]
}
```
