# How to Realize Scan Service Number with Parameter QR Code Open Mini Program

In order to provide a better user experience for the majority of users in the "scan code to order" scenario, there is no longer a need to "scan the code to pay attention to the order"At the same time, in order to be compatible with existing two-dimensional codes offline, the WeChat Official Platform opens the ability to scan the service number with a reference link two-dimensional code to open the mini program.

# Ability to Introduce

  • The service number with parameter link QR code refers to the link with parameters generated by the developer through the officially open "generating service number with parameter QR code" interface, such as “http://WeChat.qq.com/q/xxx The service number with the reference link.

  • Scan the service number with reference two-dimensional code to open the Mini Program, through this ability, the offline merchants do not need to replace the offline with reference two-dimensional code, through the open interface to complete the configuration, you can achieve the user scan the service number with reference two-dimensional code to open the Mini Program, use the function of the Mini Program.

# Open range

  • Service Number: Certified service number

  • Small Programs: Small programs for enterprises, media, governments, and other organizational types do not support individual entities.

1、 One Mini Program supports configuration of up to 10 w service numbers with reference linksThat is, a single Mini Program, the total number of interface calls for "creating two-dimensional code rules" is 10w times.

2、 Interface is limited to 200 calls/Please note the frequency of use.

# Docking Instructions

1、 Get the service number with reference link, if it is a stock link, the developer needs to get it by himself, the platform does not store the service number with reference link that has been generatedIf this is a new link, the developer canGenerate QR code interface with parametersTo be generated.

2、 Check if authorization is complete. If step 1 is also created by the service provider, then the service number has already authorized the "account service permission set" (permission set id 3) to the service provider. The interface involved in "Scan Service Number with Reference QR Code to Open Mini Program" is also in the "Account Service Permission Set." If you have not already done so, refer to the documentation for the third-party license to do so.

3、 Call interfaceAdd QR Code RulesThe service number obtained in step 1 is configured as an input parameter to the prefix of the interfaceAfter the rule is added, you need to call the interfacePublish the QR code rules that have been setPublication is effective.

4、 If the rule is misconfigured, you can call the interfaceModify QR Code Rules, note that the rules that have been published do not support modification.

5、 If you want to undo a published rule, you can call the interfaceDelete the set QR code rule, to take effect without republication at this time.

# Other relevant capacity

  • Scan code focus components: This ability is used when the user scans the Mini Program code to open the Mini Program, the developer can configure the Mini Program in the Mini Program. Official Account message template Focus on components, convenient for users to quickly focus on Official Account message template。 Detailed rules can be viewedofficial-account

# Scan the code to focus on the component docking guide:

1、 Set the display Official Account message template Adjust the interface to open the scan code of the Mini Program to focus on components, interface details can be clicked to viewSet the display Official Account message template information

2、 Interface can be adjusted before settingGets the code that can be used to set the Official Account message template list

3、 After the setup is complete, you can call the interfaceGet the show's Official Account message template information

4、 The interface involved in the above steps belongs to the development management and data analysis permission set (permission set id is 18), and if the service provider needs to call the interface on behalf of the business, it should obtain the relevant authorization of the business Mini Program.