# Get Mini Program Violation Penalty Records

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getIllegalRecords

# Functional description

Call This API Can obtain the violation penalty record of the Mini Program. If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Note

初始值

# Calling mode

# HTTPS call


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

  • 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
start_time number no The start time of the query period, or end if not filled_Records in the 90 days prior to time
end_time number no The end time of the query period, if not filled, it means start_Records for 90 days after time

# Return parameters

attribute typeIntroductions
errcode number Return code
errmsg string Error message
records array List of Violation Penalty Records
attribute type Introductions
illegal_record_id string Violation Penalty Record ID
create_time number Violation Penalty Time
illegal_reason string Reasons for violation
illegal_content string Content violation
rule_url string RulesLink
rule_name string Name of the rule violated

# Other Notes

  • If start_time和end_Time is not specified, the record is queried within the 90 days closest to the current time.

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
    "start_time": 1600051606,
    "end_time": 1600053000
} 

# Return Data Example


{
    "errcode": 0,
    "errmsg": "ok",
    "records": [
        {
            "illegal_record_id": "2_11100",
            "create_time": 1600051800,
            "illegal_reason": "the content is suspected of fraud."
            "illegal_content": "illegal content,"
            "rule_url": "https://developers.weixin.qq.com/miniprogram/product/#_6-2 - Pornographic and vulgar content " ,
            "rule_name": "WeChat Mini Program Platform Operation Specification,"
        },
        {
            "illegal_record_id": "3_11102",
            "create_time": 1600051802,
            "illegal_reason": "Contents vulgar,"
            "illegal_content": "illegal content,"
            "rule_url": "https://developers.weixin.qq.com/miniprogram/product/#_5-11 - Fraud " ,
            "rule_name": "WeChat Mini Program Platform Operation Specification,"
        }
    ]
} 

# 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