# On behalf of the development of Mini Program domain name configuration instructions

  • In order to meet the business model of developing Mini programs on behalf of different service providers, two ways are now supported to configure server domain names and business domain names for Mini programs developed on behalf of the company.

Basic explaination:

  • "Generation Development Mini Program": refers to the "development permission set" of the Mini Program (that is, the permission set id is 18) authorized to a third-party service provider for generation development.
  • Such Mini programs cannot configure the server domain name and business domain name on the WeChat Official Platform, and can only be configured by third-party service providers through the interface. Service providers can choose different APIs to configure according to the actual business situation.

List of interfaces:

Interface Code Interface Name Interface address
Interface A Configure the Mini Program server domain name modify_domain
Interface B Configure Mini Program business domain name setwebviewdomain
Interface C Quick Configuration Mini Program Server Domain Name modify_domain_directly
Interface D Get Business Domain Validation File get_webviewdomain_confirmfile
Interface E Quick Configuration Mini Program Business Domain Name setwebviewdomain_directly
Interface F Setting up a Third-Party Platform Server Domain Name modify_wxa_server_domain
Interface G Get third-party platform business domain name validation file get_domain_confirmfile
Interface H Set up a third-party platform business domain name modify_wxa_jump_domain
Interface I Get a list of server domain names in effect after publication get_effective_domain
Interface J Get List of Active Business Domain Names get_effective_webviewdomain

# Dxplaination of Mode 1

  • To configure the Mini Program domain name in this way, it is necessary to first add the domain name to the third-party platform.
  • If a Mini Program has configured the domain name a.com before authorizing the development of the service provider, and after authorizing the service provider, the service provider has not configured a.com to a third-party platform, then a.com will be deleted when the Mini Program is released.
  • The service provider adds b.com to the third-party platform and configures it to the Mini Program through the interface. If the service provider removes b.com from the third-party platform before submitting the release, the Mini Program will also delete b.com when it is released, resulting in the failure of the online version to visit b.com. This requires the attention of developers.
  • More details of the rules can be found in the corresponding interface documentation

# Common scene

  • For businesses to provide template Mini Program development service providers recommend this model. The service provider only needs to configure the service provider's domain name to a third-party platform, and the domain name can be added to countless merchant Mini Programs through the interface.

# Involving Interfaces

Interface Code Interface Name Interface address
Interface A Configure the Mini Program server domain name modify_domain
Interface B Configure Mini Program business domain name setwebviewdomain
Interface F Setting up a Third-Party Platform Server Domain Name modify_wxa_server_domain
Interface G Get third-party platform business domain name validation file get_domain_confirmfile
Interface H Set up a third-party platform business domain name modify_wxa_jump_domain

# Dxplaination of Mode 2

  • In this way, the domain name of the Mini Program is configured, without first adding the domain name to the third-party platform, and the domain name can be directly configured for the authorization Mini Program through the interface below. However, if the domain name is not added to the third-party platform, it is regarded as a "non-service provider" domain name, and a domain name can only be added to 100 main Mini Programs.Mini Programs Server Domain Name DxplainationandMini Programs Business Domain Name Dxplaination
  • More details of the rules can be found in the corresponding interface documentation

# Common scene

  • Provide personalized Mini Program development service providers recommend this model, because each Mini Program can be configured with a different domain name, that is, businesses can freely choose the domain name they need to configure.

# Involving Interfaces

Interface Code Interface Name Interface address
Interface C Quick Setup Mini Program Server Domain Name modify_domain_directly
Interface D Get Business Domain Validation File get_webviewdomain_confirmfile
Interface E Quick Configuration Mini Program Business Domain Name setwebviewdomain_directly

# Other additions

  • Mini Program domain name can be configured through the public platform, can be configured through the above two ways, in order to facilitate the developer to know the domain name of different configurations of the final effective domain name results, developers can be obtained through the following two interfaces.
  • Try not to mix different ways to configure the domain name of the same Mini Program
  • It is recommended that before the Mini Program is released, the domain name that takes effect after the launch is obtained through the following interface to confirm that there is no problem and then release it online, so as to avoid the inconsistency between the domain name that takes effect after the launch and the expected and affect the online business.
Interface Code Interface Name Interface address
Interface I Get a list of server domain names in effect after publication get_effective_domain
Interface J Get List of Active Business Domain Names get_effective_webviewdomain