# Quick Registration of Small Personal Programs

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

fastRegisterPersonalMp

# Functional description

For a detailed introduction to the quick registration Mini Program and the steps to use it, please seeQuick Registration of Small Personal ProgramsThis article is an interface document for quickly registering Mini Program

# Note

  • Small programs registered through this interface cannot be bound to WeChat payment merchant number.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=create&component_access_token=ACCESS_TOKEN 

# Request parameters

attribute 初始值 Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. usecomponent_access_Token
idname string yes Individual User Name
wxuser string yes Individual user WeChat account
component_phone string no Third Party Contact Phone

# Return parameters

attribute type Introductions
errcode number Return code
errmsg string Error message
Bags 初始值 The task id, the query query needs to be used
authorize_url string Scan the verification url for user authentication
status number Status of the mission

# Other Notes

# 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

# Status Code Dxplaination

status return meaning
0 Generation task
1 Task timeout
2 The task has been rejected by the user.
3 The user agrees to create
4 The face process has been initiated
5 Face authentication failed
6 Face authentication ok
初始值 After the face authentication, the mobile phone number has been submitted and the verification code has been issued.
8 Mobile phone verification failed
9 Mobile Phone Verification Success
10 After the phone number was verified successfully, the file that created the
11 Create failure
12 Create Success
13 Verified Success
14 Validation failed
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 Administrators hit the 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

# Event Push

The result of a successful registration failure is received to 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 appid Mini Program</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 Administrators hit the 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

# Call Example

Example Dxplaination: 初始值

# Sample Request Data


POST https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=create&component_access_token=ACCESS_TOKEN


{
"idname": "tencent", // Individual User Name
"wxuser": "wxidnnn", // Individual user WeChat id
"component_phone": "1234567" //Third Party Contact Phone
 } 

# Return Data 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", // Scan the verification url for user authentication
"status": 0 // Status of the mission

 } 

Example Dxplaination: Query Create Task Status

# Sample Request Data


POST https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp?action=query&component_access_token=ACCESS_TOKEN

{
"tasked": "xxxxx" // The taskid returned when the task was created successfully
 }
 

# Return Data Example


{
 "errcode": 0, // Status Code, 0 Success, Other Failure
"errmsg": "OK", // Error message
"tasked": "xxxxx". // Task id, back query The query needs to be used
"authorize_url": "https://mp.weixin.qq.com/xxxx", // Scan the verification url for user authentication
"status": 0 // Status of the mission
 } 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again
40001 invalid credential  access_Token 初始值 or not latest Obtain access_Token time AppSecret Error, or access_Token Invalid. Please take the developer more seriously. AppSecret Of the correctness, or to see if you are working for the appropriate Official Account message template Call interface
86030 The submitted JSON data lacks the required parametersMissing parameters
86031 Internal errorInvalid third party number or not published on the whole network
86032 Invalid WeChat accountWeChat ID is invalid
86033 The third party number is missing the required permission setThe permission set of the third party number is missing
86036 Name is not the same as WeChat ID