# 添加团长商品到橱窗

# 接口说明

可通过该接口添加团长商品到橱窗

# 接口调用请求说明

POST https://api.weixin.qq.com/channels/ec/league/headsupplier/window/add?access_token=ACCESS_TOKEN

# 请求参数说明

参数 类型 是否必填 描述
appid string 团长appid
finder_id string 视频号finder_id,未填openfinderid时必填,后续废弃
openfinderid string 视频号openfinderid
product_id number(uint64) 团长商品ID
is_hide_for_window bool 是否需要在个人橱窗页隐藏 (默认为false)
product_link string 联盟商品链接,团长类商品必填
plan_type number(uint32) 计划类型(用于兼容之前默认添加团长商品的逻辑),1-普通计划;只填product_id时默认为添加当前操作机构商品,填product_id+plan_type字段时为普通计划商品

# 请求参数示例

{
    "appid": "app1234",
    "finder_id": "sph1234",
    "openfinderid": "xxxxx",
    "product_id": 1234
}

# 返回参数说明

参数 类型 描述
errcode number 错误码
errmsg string 错误信息

# 返回参数示例

{
    "errcode": 0,
    "errmsg": "ok"
}

# 错误码

错误码 错误描述
公共错误码 -
10024000 参数错误
10024001 不合法的finder_id
10024003 不合法的appid
10024009 不合法的product_id
10024010 橱窗操作失败
10024011 未获得橱窗授权
10024021 橱窗上架商品失败
10024023 解析商品链接失败,请检查商品链接是否正确