**版本：202201**

# 查询供应商详情

**GET** `/openapi/2022-01/suppliers/:id`

通过供应商 ID 获取指定供应商的详细信息。

## 请求

**Path参数**

- `id` string (required)

  待查询的供应商 ID。

## 响应

**200 | 400 | 404**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `supplier` object

  - `id` string

    **示例：** `382453603865993516`
  - `title` string

    **示例：** `example supplier`
  - `url` string

    **示例：** `https://shoplazza.com`
  - `created_at` string

    **示例：** `2024-05-21T08:54:05Z`
  - `updated_at` string

    **示例：** `2024-05-21T08:54:05Z`

```json
{
  "supplier": {
    "id": "382453603865993516",
    "title": "example supplier",
    "url": "https://shoplazza.com",
    "created_at": "2024-05-21T08:54:05Z",
    "updated_at": "2024-05-21T08:54:05Z"
  }
}
```

```json
{
    "supplier": {
        "id": "382453603865993516",
        "title": "example supplier",
        "url": "https://shoplazza.com",
        "created_at": "2024-05-21T08:54:05Z",
        "updated_at": "2024-05-21T08:54:05Z"
    }
}
```

400

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "invalid id"
  ]
}
```

```json
{"errors":["invalid id"]}
```

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Supplier not found"
  ]
}
```

```json
{
  "errors": [
    "Supplier not found"
  ]
}
```
