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

# 锁卡/解锁

> 锁定或解锁 Visa 卡。

## 接口信息

| 项目            | 说明                                                  |
| ------------- | --------------------------------------------------- |
| 方法            | `POST`                                              |
| 路径            | `/mc-platformapi/v1/open/et/vs/card/lock`           |
| Content-Type  | `application/json`                                  |
| Authorization | 完整 JSON 请求体经 `SHA256withRSA` 签名后再 `BASE64` 编码得到的签名值 |

## 请求参数

| 字段          | 类型        | 必填 | 说明                        |
| ----------- | --------- | -- | ------------------------- |
| `app_id`    | `string`  | 是  | 应用 ID，在商户平台生成             |
| `timestamp` | `integer` | 是  | Unix 秒级时间戳，参与请求验签         |
| `card_no`   | `string`  | 是  | Visa 卡号                   |
| `lock_type` | `string`  | 是  | `lock` 表示锁卡，`unlock` 表示解锁 |

## 请求示例

```json theme={null}
{
  "app_id": "app_123456",
  "timestamp": 1784880000,
  "card_no": "493875******0990",
  "lock_type": "lock"
}
```

## 返回说明

成功时 `data` 为空字符串。

## 返回示例

```json theme={null}
{
  "code": 0,
  "msg": "success",
  "data": ""
}
```

## 规则说明

* 锁卡时卡片必须处于可锁定状态。
* 解锁时卡片必须处于可解锁状态。
* 锁卡后卡片仍可入金，但不允许出金消费。
* 管理后台锁定的卡片不能通过商户解锁接口恢复。
