# Quickly Create Personal Mini Programs
- In order to help service providers to provide more convenient and efficient third-party services for individual merchants and developers, the platform launched the rapid creation of personal Mini Program interface. The interface only needs to collect the user name, WeChat ID, and through the identity verification URL issued by the platform, collect the user's identity information and face recognition information, mobile phone number information, you can complete the registration process.
- Through the rapid creation of a personal Mini Program interface, it can shorten the path for a personal Mini Program developer with development ability to authorize a third-party platform, and also help the third-party platform to expand the service scope of the merchant.
- If you encounter problems during use, you can go toWeChat Open Platform, click on the official customer service real-time consultation.
Note that Mini programs registered through this interface cannot be bound to the WeChat payment merchant number.
# Introduction to the overall process
# Steps to use
1, permission set preparation: third-party platforms need to have the following permission set. The following set of permissions will be granted to the third party platform after registering the Mini Program.
Permission set | Is required |
---|---|
Account Management Authority | Required |
Development Management and Data Analysis Authority | Required |
Open platform account management rights | Required |
Mini Program Basic Information Set Permissions | Required |
Plugin Administration Permissions | Required |
2, the third party to collect user name, user WeChat plus third-party customer service phone, to facilitate businesses and third parties to contact (it is recommended to fill in the third party customer service phone)
3, through the name & WeChat ID verification (the user name needs to be the same as the name of the WeChat bank card bound to the WeChat ID), the platform issues the user authentication url to the third party, and the third party can generate the QR code on its own service page. Users need to24 Within hoursScan the two-dimensional code to complete the collection of ID card information, face recognition information and mobile phone number
4, the information collection is completed, after verification, you can create a personal Mini Program. The third party platform server can receive information that creates appid Information (Receive through an authorization event URL Receiving information)
5, third party access to Mini programs appid Finally, the code can be called to develop the interface, complete the subsequent Mini Program code development.
# I. Creating a Personal Subject Mini Program Interface Details
# Request Address
POST https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=create&component_access_token=ACCESS_TOKEN
# Request Parameter Dxplaination
parameter | type | Default value | Required | Introductions |
---|---|---|---|---|
ACCESS_TOKEN | string | yes | Third Party Platform Token Component_access_Token | |
idname | string | yes | Individual User Name | |
wxuser | string | yes | Individual user WeChat account | |
component_phone | string | no | Third Party Contact Phone |
# Sample Request
{
"idname": "tencent", // Individual User Name
"wxuser": "wxidnnn", // Personal User WeChat ID
"component_phone": "1234567" //Third Party Contact Phone
}
# Return Example
{
"errcode": 0, // Status Code, 0 Success, Other Failure
"errmsg": "OK" // Error message
"tasked": "xxxxx". // The task id, the query query needs to be used
"authorize_url": "https://mp.weixin.qq.com/xxxx", // Verify url for user scan code authentication
"status": 0 // Status of the mission
}
# Error Code Dxplaination
Error code | meaning | Cue |
---|---|---|
0 | success | ok |
-1 | The system is busy, please wait for the developer to try again | system error |
86030 | The submitted json data lacks the required parameters | Missing parameters |
86031 | Internal error | Invalid third party number or not published on the whole network |
86032 | Invalid WeChat account | WeChat ID is invalid |
86033 | Lack of required permission set for third party number | The permission set of the third party number is missing |
86036 | Name is not the same as WeChat ID | Name is not the same as WeChat ID |
Other error codes | Please checkGlobal error code |
# II. Query Create Task Status Interface Details
# Request Address
POST https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=query&component_access_token=ACCESS_TOKEN
# Request Parameter Dxplaination
parameter | type | Default value | Required | Introductions |
---|---|---|---|---|
ACCESS_TOKEN | string | yes | Third Party Platform Token Component_access_Token | |
Bags | string | yes | Task id |
# Sample Request
{
"tasked": "xxxxx" // The taskid returned when the task was created successfully
}
# Return Example
{
"errcode": 0, // Status Code, 0 Success, Other Failure
"errmsg": "OK", // Error message
"tasked": "xxxxx". // The task id, the query query needs to be used
"authorize_url": "https://mp.weixin.qq.com/xxxx", // Verify url for user scan code authentication
"status": 0 // Status of the mission
}
# Error Code Dxplaination
Error code | meaning | Cue |
---|---|---|
0 | success | ok |
-1 | illegal action parameter | invalid action |
86030 | The submitted json data lacks the required parameters | Missing parameters |
1 | The task timed out or does not exist | no such task or expired |
Other error codes | Please checkGlobal error code |
# Status Code Dxplaination
status return | meaning |
---|---|
1 | Generation task |
2 | Task timeout |
3 | The task has been rejected by the user. |
4 | The user agrees to create |
5 | The face process has been initiated |
6 | Face authentication failed |
7 | Face authentication ok |
8 | After the face authentication, the mobile phone number has been submitted and the verification code has been issued. |
9 | Mobile phone verification failed |
10 | After the phone number was verified successfully, the file that created the |
11 | Create failure |
12 | Create Success |
1001 | The number of Mini programs created by the main body reaches the maximum limit |
1002 | Main violations hit the blacklist |
1003 | The number of administrator accounts reached the maximum limit |
1004 | Admins Hit Blacklist for Violation |
1005 | The number of mobile phone accounts reached the maximum limit. |
1006 | Admin mobile phone number violation hit the blacklist |
1007 | Administrator ID card number to create the maximum number of accounts |
1008 | Administrator ID card violation hit the blacklist |
# Third, Event Push
The result receives the authorization event URL Push relevant notifications.
# Example of Data
<xml>
<AppId><![CDATA[Third-party platform appid]]></AppId>
<CreateTime>1535442403</CreateTime>
<InfoType><![CDATA[notify_third_fasteregister]]></InfoType>
<appid>Create a Mini Program appid</appid>
<status>0</status>
<auth_code>XXXXX Third Party Authorization Code</auth_code>
<msg>OK</msg>
<info>
<wxuser><![CDATA[User WeChat account]]></wxuser>
<idname><![CDATA[Name of user]]></wxidnnn>
<component_phone><![CDATA[Third Party Contact Phone]]></component_phone>
</info>
</xml>
# Status Code Dxplaination
status return | meaning |
---|---|
1001 | The number of Mini programs created by the main body reaches the maximum limit |
1002 | Main violations hit the blacklist |
1003 | The number of administrator accounts reached the maximum limit |
1004 | Admins Hit Blacklist for Violation |
1005 | The number of mobile phone accounts reached the maximum limit. |
1006 | Admin mobile phone number violation hit the blacklist |
1007 | Administrator ID card number to create the maximum number of accounts |
1008 | Administrator ID card violation hit the blacklist |