> For the complete documentation index, see [llms.txt](https://docs.cn.omnibridge.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cn.omnibridge.pro/intent/solver-jie-ru/solver-qu-xiao-ding-dan-jie-kou.md). Agents can also search and read this documentation through its [MCP server](https://docs.cn.omnibridge.pro/~gitbook/mcp).

# Solver取消订单接口

**1. 接口调用：**

```
https://{host}/gt/swap/intent/cancel
```

**2. 请求参数示例**

| 参数         | 是否必须 | 说明                                                                                                                                                                          |
| ---------- | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| intentId   | 是    | solver的订单号                                                                                                                                                                  |
| solverCode | 是    | Solver编号                                                                                                                                                                    |
| timestamp  | 是    | 时间戳（毫秒）                                                                                                                                                                     |
| sign       | 是    | 请求签名。将请求参数（含默认值，排除 `sign`、null、空字符串及纯空白字符串）按参数名的字典序升序排列，拼接为 `key1=value1&key2=value2`，不做 URL 编码。使用分配的 `solverSecret` 作为密钥，对拼接字符串按 UTF-8 编码计算 HMAC-SHA256，结果转为 64 位大写十六进制字符串 |

**3.请求参数示例**

```ada
{
    "intentId":"10001",
    "timestamp":1785822731000,
    "solverCode":"test",
    "sign": "xxxxxxxxxxxxxxxx"
}
```

**4.返回结果示例**

```
{
    "resCode":"800",
    "resMsg":"成功",
    "data":""
}
```
