# Set up a third-party platform business domain name

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

modifyThirdpartyJumpDomain

# Functional description

  • This interface is used to configure the business domain name of the third party platform Mini Program.

  • When configuring a business domain name, place the validation file in the domain name root directory, such as wx.qq.com, and make sure the file is reachable. Can be accessed throughGet the third party Mini Program business domain name validation fileInterface to get the inspection file.

  • For Mini programs authorized to be developed by third parties, their business domain name can only be the Mini Program business domain name configured in the third-party platform account. That is, calling the interfaceSetting up Mini Program Business Domain NameThis interface can be adjusted before the third party platform Mini Program business domain name configuration.

  • If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/cgi-bin/component/modify_wxa_jump_domain?access_token=ACCESS_TOKEN 

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. usecomponent_access_Token
action string yes Type of operation. Optional values. See below
wxa_jump_h5_domain string no You can add up to 200 small business domain names toSeparated. Note: domain names do not need to have http:// Such as the content of the agreement, nor can you append a detailed URI Address, strictly in accordance with similar www.qq.com The writing.
is_modify_published_together boolean no Whether to also modify the "Value of the whole network distribution version." (false: change only "beta"True: at the same time change "beta" and "full network release version") omitted, the default is false.

# Return parameters

attribute type Introductions
errcode number Return code
errmsg string Error message
published_wxa_jump_h5_domain string Currently in force "Whole network release version" third-party platform "Mini Program business domain name." If the modification fails, the field is not returned. This field is also not returned if there is no published third-party platform.
testing_wxa_jump_h5_domain string Currently in force "Beta" third-party platform "Mini Program business domain name." If the modification fails, the field does not return
invalid_wxa_jump_h5_domain string Domain names that have not been verified. If there is no unverified domain name, this field is not returned.

# Call Example

Example Dxplaination: POST Example of Data 1:

# Sample Request Data


{
  "action": "get"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok",
  "published_wxa_jump_h5_domain": "www.qq.comwx.qq.com",
  "testing_wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

Example Dxplaination: POST Example of Data 2:

# Sample Request Data


{
  "action": "set",
  "is_modify_published_together": false,
  "wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok",
  "published_wxa_jump_h5_domain": "www.qq.comwx.qq.com",
  "testing_wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

Example Dxplaination: POST Example of Data 3:

# Sample Request Data


{
  "action": "add",
  "is_modify_published_together": true,
  "wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok",
  "published_wxa_jump_h5_domain": "www.qq.comwx.qq.com",
  "testing_wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

Example Dxplaination: POST Example of Data 4:

# Sample Request Data


{
  "action": "delete",
  "is_modify_published_together": false,
  "wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok",
  "published_wxa_jump_h5_domain": "www.qq.comwx.qq.com",
  "testing_wxa_jump_h5_domain": "www.qq.comwx.qq.com"
} 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again
61028 Third-party platform not released Third-party platform not released
65316 初始值 count reach limit Third-party platform business domain name configuration has reached 200 Third-party platform Mini Program business domain name up to 200, can not be added, can only delete the old unused domain name and add.
9410016 Invalid domain name exists. See errmsg for specific reasons (there may be multiple reasons).
40052 invalid 初始值 name The action value is wrong