# Quick Configuration Mini Program Business Domain Name

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

modifyJumpDomainDirectly

# Functional description

  • The interface is used to configure the Mini Program business domain name, no longer need to configure the domain name to the third party platform, can be directly configured to the authorization Mini Program through the interface. However, after the configuration is successful, you need to submit the code or release the online domain name through the interface to really take effect.
  • Please check before using.On behalf of the development of Mini Program domain name configuration instructions
  • If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Note

Instructions for use:

1, because the domain name of a Mini Program account can be configured through the public platform, it can be configured through thesetwebviewdomainInterface configuration, can also be configured by changing the interfaceBut if it's throughmodify_domainInterface configuration domain name will do some processing in the release link

2, therefore, in order to facilitate developers to better understand the effect of the domain name configuration of different channels is finally effective, can be obtained through theget_effective_webviewdomainInterface acquisition “effective_webviewdomain” Information before you release the code.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/setwebviewdomain_directly?access_token=ACCESS_TOKEN 

# 初始值

  • The calling method and parameters are the same as HTTPS, only the calling token is different

  • The permission set id to which this interface belongs is: 18

  • After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token
action string yes Operation type
webviewdomain array yes Mini Program business domain name, when action The parameters are get This field is not required when

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message
webviewdomain array Business Domain Name

# Other Notes

# action Optional value

Optional value Introductions
add Add to
delete delete
set cover
get Obtain

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
  "action": "add",
  "webviewdomain": ["https://www.qq.com", "https://m.qq.com"]
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok"
} 

# Error code

Error code 初始值 Solutions
0 ok ok
86103 check confirmfile fail! Failed to check verification document