**版本：202506**

# 搜索折扣码

**GET** `/openapi/2025-06/discount_codes/lookup`

通过折扣码值查找特定折扣码。

## 请求

**Query参数**

- `code` string

  折扣码

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `discount_code` object

    折扣码

    - `id` string

      折扣 ID
    - `price_rule_id` string

      价格规则 ID
    - `code` string

      折扣码
    - `created_at` string

      创建时间，ISO-8601 格式
    - `updated_at` string

      最后更新时间，ISO-8601 格式
    - `use_with_other` int32

      是否可与其他折扣叠加
    - `usage_count` int32

      已使用次数

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "discount_code": {
      "id": "string",
      "price_rule_id": "string",
      "code": "string",
      "created_at": "string",
      "updated_at": "string",
      "use_with_other": 0,
      "usage_count": 0
    }
  }
}
```
