# 供应商创建

**Webhook** suppliers/create

供应商创建时触发。

需要 `product` [访问权限](/zh-CN/docs/app/building-blocks/authentication/access-scopes)。最低支持版本：`202007`。

## 请求头

- `X-Shoplazza-Topic` string

  触发本次推送的事件，例如 orders/create

  **示例：** `orders/create`
- `X-Shoplazza-Hmac-Sha256` string

  请求体的 HMAC-SHA256 签名（base64 编码），使用应用的 Client Secret 生成，用于验证请求来自 Shoplazza
- `X-Shoplazza-Shop-Domain` string

  产生该事件的店铺域名

  **示例：** `example.myshoplaza.com`
- `X-Shoplazza-Api-Version` string

  序列化 payload 使用的 API 版本

  **示例：** `2025-06`
- `X-Shoplazza-Deduplication-ID` string

  本次推送的去重 ID，同一事件重发时保持不变，用于幂等去重

## 请求体

**数据结构 | 示例**

- `supplier` object

  - `contact` string

    联系人
  - `contact_information` string

    联系方式（邮箱 / 电话）
  - `created_at` string

    创建时间
  - `location_address` string

    仓库详细地址
  - `location_city` string

    仓库城市
  - `location_country` string

    仓库所在国家
  - `location_country_code` string

    仓库所在国家代码
  - `location_province` string

    仓库所在州省
  - `location_province_code` string

    仓库所在州省代码
  - `office_address` string

    办公室详细地址
  - `office_city` string

    办公室城市
  - `office_country` string

    办公室所在国家
  - `office_country_code` string

    办公室所在国家代码
  - `office_province` string

    办公室所在州省
  - `office_province_code` string

    办公室所在州省代码
  - `state` boolean

    供应商状态。false = 停用，true = 启用
  - `supplier_id` integer

    供应商 ID
  - `supplier_information` string

    资质信息
  - `supplier_no` string

    供应商编号
  - `title` string

    名称
  - `updated_at` string

    更新时间
  - `url` string

    URL

```json
{
  "supplier": {
    "contact": "string",
    "contact_information": "string",
    "created_at": "string",
    "location_address": "string",
    "location_city": "string",
    "location_country": "string",
    "location_country_code": "string",
    "location_province": "string",
    "location_province_code": "string",
    "office_address": "string",
    "office_city": "string",
    "office_country": "string",
    "office_country_code": "string",
    "office_province": "string",
    "office_province_code": "string",
    "state": true,
    "supplier_id": 0,
    "supplier_information": "string",
    "supplier_no": "string",
    "title": "string",
    "updated_at": "string",
    "url": "string"
  }
}
```
