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

# 查找可用的海关企业名称

> 在指定日期范围内查找含有贸易记录的精确名称字符串。

在指定日期范围内查找含有贸易记录的精确名称字符串。这不是法律主体识别服务。

## 接口概览

| | |
| - | - |
| 方法 | `POST` |
| 路径 | `/api/v2/customs/company-candidates` |
| 返回 | 企业名称候选及贸易数与可查询标识 |
| 幂等性 | 支持 |

`company_role` 和 `catalog` 可选，但应同时提供。两者都省略时，接口会检查 `importer/imports` 与 `exporter/exports` 两条常用查询组合；只提供其中一个时，另一个按常用组合补全。

## 请求

### 参数

**company\_name** `string` *required*

希望在海关数据集中查找的企业名称。

**company\_role** `string`

`importer` 或 `exporter`。

**catalog** `string`

`imports` 或 `exports`。

**compare\_catalogs** `boolean`

与 `company_role` 配合使用；设为 `true` 时同时检查两个目录。明确只查询所填 `catalog` 时设为 `false`。

**start\_date** `date` *required*

`YYYY-MM-DD`。

**end\_date** `date` *required*

`YYYY-MM-DD`，查询跨度最多一年。

**page** `integer` (default: 1)

默认 1。

**page\_size** `integer` (default: 20)

1-20，默认 20。

**country\_codes** `string`

一个或多个 ISO 3166-1 alpha-3 国家/地区代码，以逗号分隔，例如 `USA,IDN`。

### 请求示例

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/customs/company-candidates" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Content-Type: application/json" \
  -H "Prefer: wait=20" \
  -d '{
    "company_name": "Banbros Commercial Inc.",
    "start_date": "2025-08-01",
    "end_date": "2026-07-31",
    "page": 1,
    "page_size": 20,
    "company_role": "exporter",
    "catalog": "imports",
    "compare_catalogs": false,
    "country_codes": "IDN"
  }'
```

## 响应示例

```json 200 theme={null}
{
  "query": "Banbros Commercial Inc.",
  "date_range": {
    "start": "2025-08-01",
    "end": "2026-07-31"
  },
  "routing_evidence": {
    "mode": "explicit",
    "company_role": "exporter",
    "catalogs_checked": ["imports"]
  },
  "identity_notice": "Trade counts prove exact-name queryability only, not authoritative legal identity.",
  "candidates": [
    {
      "name": "BANBROS COMMERCIAL INC",
      "source": "company_list",
      "countries": ["Indonesia"],
      "company_ids": ["provider-company-id"],
      "trade_counts": {
        "start_date": "2025-08-01",
        "end_date": "2026-07-31",
        "company_role": "exporter",
        "catalog": "imports",
        "imports_as_exporter": 18,
        "total": 18,
        "queryable": true
      },
      "identity_status": "unverified"
    }
  ]
}
```

> [!NOTE]
>
> 该接口当前不计费；任务返回 `billing.status: not_billable` 和 `charged_credits: 0`。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.