WeChat business homepage management
Set business homepage
Field | Is it required? | Description |
---|---|---|
shop_id | Yes | Store ID |
template_id | is the | template ID, 0-default template, 1-custom url |
struct | No | Template structure, you can leave it blank when template_id is 0 |
url | No | Custom link, required when template_id is 1 |
After setting the merchant homepage, click on the welcome message on the WeChat chat homepage to enter the set merchant homepage. Default template and custom url template can be set.
Note: Only third-party platforms and certified official accounts can call this interface to set the merchant homepage.
Interface call description
协议:https http请求方式: POST 请求URL:https://api.weixin.qq.com/bizwifi/homepage/set?access_token=ACCESS_TOKEN POST数据格式:JSON
Request parameter description
Parameter | Is it required | Description |
---|---|---|
access_token | Yes | Call interface credentials |
POST data | is | JSON data |
Parameter | Is it required | Description |
---|---|---|
access_token | Yes | Call interface credentials |
POST data | is | JSON data |
Field | Required | Description |
---|---|---|
shop_id | is the store id | queried |
Return data description
Correctly returned JSON data example:
{ "errcode": 0, "data": { "shop_id": 429620, "template_id": 1, "url": " http://wifi.weixin.qq.com/" } }
Field description:
Field | Description |
---|---|
shop_id | Store ID |
template_id | Template type |
url | Business homepage link |
Set the welcome message on the WeChat homepage, you can choose "Welcome to XXX" or "Connected to XXXWiFi", XXX is the name of the public account or Store name.
Note: The interface for setting the welcome message on the WeChat homepage. Unapproved stores cannot set the welcome content containing the store name (bar_type is 1 or 3).
Interface call description
协议:https http请求方式: POST 请求URL:https://api.weixin.qq.com/bizwifi/bar/set?access_token=ACCESS_TOKEN POST数据格式:JSON
Request parameter description
Parameter | Is it required | Description |
---|---|---|
access_token | Yes | Call interface credentials |
POST data | is | JSON data |
Field | Required | Description |
---|---|---|
shop_id | is | Store ID |
bar_type | is the text content of the welcome message on the WeChat homepage of | : 0--Welcome to the official account name; 1--Welcome to the store name; 2--Connected to the official account name WiFi ;3--Connected to store name Wi-Fi. |
Set up the networking completion page
When the customer successfully connects to the Internet using WeChat to connect to Wi-Fi, click the "Finish" button in the upper right corner of the page. You will then enter the set networking completion page.
Note: This interface is only open to third-party public account platforms and certified public accounts. Non-certified public accounts cannot call the interface to set the networking success page.
Interface call description
协议:https http请求方式: POST 请求URL:https://api.weixin.qq.com/bizwifi/finishpage/set?access_token=ACCESS_TOKEN POST数据格式:JSON
Request parameter description
Parameter | Is it required | Description |
---|---|---|
access_token | Yes | Call interface credentials |
POST data | is | JSON data |
Field | Required | Description |
---|---|---|
shop_id | is | Store ID |
finishpage_url | is the | completion page URL. |
Return data description
Correctly returned JSON data example:
{ "errcode": 0 }