# 获取商品的移动应用跳转scheme码
# 接口说明
通过该接口可以获取微信小店的商品在移动应用中跳转scheme码
# 注意事项
对应的移动应用需要绑定在open平台
# 接口调用请求说明
POST https://api.weixin.qq.com/channels/ec/product/scheme/get?access_token=ACCESS_TOKEN
# 请求参数说明
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
product_id | string(uint64) | 是 | 商品ID |
from_appid | string | 是 | 来源appid |
expire | number | 是 | 过期时间,单位秒 |
ext_info | string | 否 | 附加信息 |
# 请求参数示例
{
"product_id": "324545",
"from_appid": "APPID",
"expire": 100
}
# 返回参数说明
参数 | 类型 | 描述 |
---|---|---|
errcode | number | 错误码 |
errmsg | string | 错误信息 |
openlink | string | 商品跳转scheme码 |
# 返回参数示例
{
"errcode": 0,
"errmsg": "ok",
"openlink": "weixin://dl/business/?st=123"
}
# 错误码
错误码 | 错误描述 |
---|---|
公共错误码 | - |
10020050 | 无权限调用该api |
10020051 | 参数有误 |
10020052 | 商品不存在 |
10020065 | 商品未上架 |
10020256 | 无效的appid,appid需要是移动应用且需要在open平台绑定 |