注册小商店账号
接口调用请求说明
http请求方式:POST
https://api.weixin.qq.com/product/register/register_shop?component_access_token=xxxxxxxxx
请求参数说明
参数 | 类型 | 是否必填 | 说明 |
---|
wx_name | string | 是 | 微信号 |
id_card_name | string | 是 | 身份证姓名 |
id_card_number | string | 是 | 身份证号 |
channel_id | number | 否 | 渠道号 |
api_openstore_type | number | 是 | 1-整店打包(开通小商店),2-组件开放(开通小程序,并且已经完整的嵌入电商功能) |
请求参数示例
{
"wx_name": "xxx",
"id_card_name": "张三",
"id_card_number": "121321412",
"channel_id":"4",
"api_openstore_type": 1
}
回包参数说明
参数 | 类型 | 说明 |
---|
errcode | number | 错误码 |
errmsg | string | 错误信息 |
回包示例
{
"errcode": 0,
"errmsg":"ok"
}
返回码
返回码 | 错误类型 |
---|
-1 | 系统异常 |
-2 | token太长 |
1005 | 实名认证失败,请检查身份证、微信号和姓名是否匹配 |