# Open Platform Account

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

bindOpenAccount

# Functional description

  • this API For an open platform account that has not yet been bound Official Account message template Or Mini Program bound to the specified open platform account. Both must be subject to the same. If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Note

1, for unauthenticated open account, only applies to open account created through the interface, and only applies to binding with the main account, and can only bind up to 5

2, for uncertified open account, but through the WeChat open platform interface registered, can not be bound through the interface.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/cgi-bin/open/bind?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 sets to which this interface belongs are: 24, 25, 60

  • 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 Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token
open_appid string yes Open platform account Appid, created by the development platform account interfacehttps://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/account/create.htmlReturn
appid string no Not required, if not, take to generate authorizer_access_Of the Official Account message template or Mini Program appid。 If filled, you need to fill and generate authorizer_access_Of the Official Account message template or Mini Program Appid consistent appid, otherwise there will be 40013 error.

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message

# Call Example

Example Dxplaination: HTTPS calls

# Sample Request Data


{
  "appid": "auth_appid_value",
  "open_appid": "open_appid_value"
} 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok"
} 

# 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 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
40013 invalid appid Illegal AppID , ask the developer to check AppID The correctness of the, avoid unusual characters, pay attention to the case
0 ok ok
89000 account has bound open account has bound Open the Official Account message template/Mini Program has bound open platform account
89001 not same contractor not same contractor,Authorizer Different from open platform accounts.
89004 number of sub-accounts bound to this open-account exceeds the limit The Open Platform account. Official Account message template/The Mini Program has reached its limit (100 (a)
89036 open is not created by api or not verified The open account was not created through the api or the open account is not authenticated