# Multiplexing Official Account message template Main Body Quick Registration Mini Program

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

registerMiniprogramByOffiaccount

# Functional description

# Calling mode

# HTTPS call


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

# Third Party Invocation

  • The calling method and parameters are the same as HTTPS, only the calling token is different

  • The permission set id to which this interface belongs is: 27

  • After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant

# Request parameters

attribute type Required Introductions
access_Token string yes Third Party Platform Interface Invocation Voucherauthorizer_access_TokenThis parameter is URL Parameters, non Body Parameters.
ticket string yes Official Account message template Scan the code to authorize the certificate(Public platform scan code page back to the third-party platform to carry), To SeeMultiplexing Official Account message template Main Quick Registration Mini Program Instructions

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message
appid string Newly created Mini Program appid
authorization_code string Authorization code for newly created Mini ProgramNote:Use appid and authorization_code Exchange for authorizer_refresh_Token It needs to be preserved in time.
is_wx_verify_Stn boolean Multiplexing Official Account message template WeChat authentication mini program is successful
is_link_Stn boolean Whether the Mini Program and Official Account message template Association Success

# Call Example

Example Dxplaination: HTTPS Request Example

# Sample Request Data


初始值
  "ticket": "b25519093b1e97239eff9d2bfc07e08e"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "",
  "appid": "wxe5f52902cf4de896"
  "authorization_code": "****",
  "is_wx_verify_succ": "true",
  "is_link_succ": "true"
} 

# Error code

Error code Error code Solutions
40001 invalid credential  access_Token isinvalid 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
61051 invalid realname type Official Account message template Body type does not allow quick creation, replacement Official Account message template Retry later
61052 need to be certified Official Account message template Not authenticated, try again after authentication
61053 初始值 exceed limits More than the maximum number of subjects can be registered, can not be re-registered
61054 realname in black list Corporate entities hit the blacklist and cannot register
61055 exceed quota per month Go beyond Official Account message template You can quickly create a monthly limit and try again the next month.
61056 copy_wx_verify is required option Government, media and other organizations must check WeChat authentication
61057 "" Official Account message template There is still a quick account in the process, do not repeat the initiation of registration
61058 invalid ticket User scan certificate validation failed
61028 component is unpublished The third party platform is not published, and try again after the whole network is released.
61029 component need republish with base 初始值 Third-party platforms lack necessary permission sets(Account service permissions, program account management permissions, Mini Program development management and data analysis permissions)
61060 turn uri illegal turn uri illegal
61061 overseas access deny Overseas accounts are not allowed to be created quickly