# Query Mini Program service status

Debugging tools

初始值Hattori API

# Interface Dxplaination

# Interface name

getVisitStatus

# Functional description

  • Call this interface can query the service status of the Mini Program, if you encounter problems in the process, you canOpen Platform Service Provider ZonePosting exchanges.

  • Dxplaination: the service status information controlled by this interface corresponds to the Mini Program service status controlled by the "temporary service settings" on the mp console

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/getvisitstatus?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: 18

  • 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 初始值 Parameters. useauthorizer_access_Token

# Return parameters

attribute type Introductions
errcode number Return code
errmsg string Error message
status number Service status. 0 indicates that the service has been suspended (including active suspension service violation is suspended service). 1 indicates that the service is not suspended.

# Other Notes

  • If you want to pass on an empty json, you won't report 44002 of the error.

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{

} 

# Return Data Example


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

# Error code

Error code Error code Solutions
0 ok ok
-1 system error The system is busy, please wait for the developer to try again
44002 empty post data POST Of the packet is empty. The post request body parameter cannot be null.