# 获取关联的商家列表
接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南
接口英文名:get_ec_list
暂不提供新增、解除供货商与商家关联的API,相关操作需登录供货商后台手动操作。
# 1. 调用方式
# HTTPS 调用
POST https://api.weixin.qq.com/channels/ec/supplier/relation/get_ec_list?access_token=ACCESS_TOKEN
# 云调用
- 本接口不支持云调用
# 第三方调用
本接口支持第三方平台代供货商调用。
该接口所属的权限集 id 为:192
服务商获得其中之一权限集授权后,可通过使用 authorizer_access_token 代供货商进行调用,具体可查看 第三方调用 说明文档。
# 2. 请求参数
# 查询参数 Query String parameters
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 接口调用凭证,可使用 access_token(供货商)、authorizer_access_token(服务商) |
# 请求体 Request Payload
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
offset | number | 是 | - |
limit | number | 是 | - |
# 3. 返回参数
# 返回体 Response Payload
参数名 | 类型 | 说明 |
---|---|---|
list | objarray | - |
total_count | number | - |
errcode | number | - |
errmsg | string | - |
# Res.list(Array) Object Payload
参数名 | 类型 | 说明 | 枚举 |
---|---|---|---|
appid | string | 小店商家appid | - |
name | string | 商家店铺名称 | - |
status | number | 总状态 | 0初始状态 1已绑定 2已解绑 |
bind_audit_status | number | 绑定状态 | - |
update_time | number | 更新时间 | - |
head_img | string | 商家店铺头图 | - |
# 4. 注意事项
本接口无特殊注意事项
# 5. 代码示例
请求示例
{
"offset": 0,
"limit": 10
}
返回示例
{
"list": {
"appid": "wx8888888",
"name": "供货商test",
"status": 1,
"bind_audit_status": 1,
"update_time": 1754386966,
"head_img": "https://www.qq.com/1.png"
},
"total_count": 10,
"errcode": 0,
"errmsg": ""
}
# 6. 错误码
此接口没有特殊错误码,可参考 通用错误码
# 7. 适用范围
本接口暂未明确可调用账号类型,或在业务中根据调用传参自行确定是否可调用,请已实际调用情况为准。