> For the complete documentation index, see [llms.txt](https://docs.en.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.en.omnibridge.pro/intent/solver-integration/solver-order-cancellation-api.md).

# Solver Order Cancellation API

### 1. API Endpoint

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

**2. Request Parameters**

| Parameter  | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| intentId   | 是        | Solver order ID                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| solverCode | 是        | Solver code                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| timestamp  | 是        | Timestamp in milliseconds                                                                                                                                                                                                                                                                                                                                                                                                                             |
| sign       | 是        | Request signature. Sort the request parameters (including default values, excluding `sign`, null values, empty strings, and whitespace-only strings) by parameter name in ascending lexicographical order. Concatenate them as `key1=value1&key2=value2` without URL encoding. Using the assigned `solverSecret` as the key, compute HMAC-SHA256 over the UTF-8 encoded string and convert the result to a 64-character uppercase hexadecimal string. |

**3.Request Example**

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

**4.Response Example**

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