# Check whether the open platform account is the same as the main body of the Mini Program
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
GetBindOpenAccountEntity
# Functional description
this API It is used to query whether the open platform account bound by official account or Mini Program is associated with the current official account./Mini Program with the main body. If you encounter problems during use, you can post in the open platform service provider area.
# Calling mode
# HTTPS call
GET https://api.weixin.qq.com/cgi-bin/open/sameentity?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 of this interface is: 3, 30
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
# Return parameters
attribute | type | Introductions |
---|---|---|
same_entity | boolean | Whether the same subjectTrue represents the same subjectFalse indicates different subjects |
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
GET https://api.weixin.qq.com/cgi-bin/open/sameentity?access_token=ACCESS_TOKEN
# Return Data Example
{
"same_entity": false,
"errcode": 0,
"errmsg": "ok"
}
# 初始值
Error code | Error code | Solutions |
---|---|---|
-1 | system error | The system is busy, please wait for the developer to try again |