# Register a Mini Store account
# Interface call request specification
Http request method: POST
https://api.weixin.qq.com/product/register/register_shop?component_access_token=xxxxxxxxx
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
wx_name | string | yes | |
id_card_name | string | yes | ID card name |
id_card_number | string | yes | ID card number |
channel_id | string | no | Channel No. See here for details |
api_openstore_type | number | yes | 1 - the whole store packaging (opening a Mini Store), 2 - open components (opening Mini Program, and has a complete embedded e-commerce function) |
auth_page_url | string | no | Authorization page url,See here for details |
# Request Parameter Sample
{
"wx_name": "xxx",
"id_card_name": "Zhang San,"
"id_card_number": "121321412",
"channel_id":"abcdxxx",
"api_openstore_type": 1
}
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |
# Return Package Example
{
"errcode": 0,
"errmsg":"ok"
}
# Return code
Return code | Type of error |
---|---|
-1 | System exception |
-2 | Token is too long |
1005 | Real name authentication failed, please check the ID card, WeChat ID and name match |