WeChat business homepage management


Set business homepage


1475895894599323.jpg##
FieldIs it required?Description
shop_idYesStore ID
template_id is the template ID, 0-default template, 1-custom url
structNoTemplate structure, you can leave it blank when template_id is 0
urlNoCustom 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

##

POST data

Data example:

设置默认模板时:
{
  "shop_id": 429620,
  "template_id": 0
}
设置自定义url模板:
{
  "shop_id": 429620,
  "template_id": 1,
  "struct": {
    "url": "http://wifi.weixin.qq.com/"
  }
}

Field descriptionMing:

Query merchant homepage

Query the information on the merchant homepage through the store ID.

Interface call description

协议:https
http请求方式: POST
请求URL:https://api.weixin.qq.com/bizwifi/homepage/get?access_token=ACCESS_TOKEN
POST数据格式:JSON

Request parameter description

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
##

POST data

Data example:

{
   "shop_id": 429620
}

Field description:

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
FieldRequiredDescription
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:

FieldDescription
shop_idStore ID
template_idTemplate type
urlBusiness homepage link


#Set WeChat homepage welcome message


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

##

POST data

Data example:

{
  "shop_id": 429620,
  "bar_type": 1
}

Field description:

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
FieldRequiredDescription
shop_id isStore 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

##

POST data

Data example:

{
  "shop_id": 429620,
  "finishpage_url": "http://www.qq.com"
}

Field description:

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
FieldRequiredDescription
shop_id isStore ID
finishpage_url is the completion page URL.

Return data description

Correctly returned JSON data example:

{
  "errcode": 0
}