# Reset third-party platforms with AppSecret API Number of calls
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
clearComponentQuotaByAppSecret
# Functional description
This interface is used to empty Official Account message template/Mini Program/Number of daily calls to interfaces such as third-party interfaces
# Note
- The interface is called by appsecret to solve accesss._Token is exhausted and cannot be calledto reset API Number of calls The situation of
2, each account monthly useto reset API Number of calls There are 10 zeroing opportunities with this interface, and one opportunity is used once the zeroing takes effect.
3, due to the difference in index calculation methods or statistical time, real-time call data may have errors, generally within 1%
4, the interface only supports POST calls
5, the interface can be replaced Official Account message template/The appid parameter needs to be an authorized account.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/cgi-bin/component/clear_quota/v2
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
appid | string | yes | Authorized user appid |
component_appid | string | yes | Third-party apps |
appsecret | string | yes | Third party appsecret |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: Reset number of third-party account API calls
# Sample Request Data
POST https://api.weixin.qq.com/cgi-bin/component/clear_quota/v2
{
"component_appid":"wxxxxxxxxxxxxxxxxxx",
"appsecret":"xxxxxxxxxxxx"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok"
}
Example Dxplaination: generation Official Account message template/Mini Programs reset the number of API calls
# Sample Request Data
POST https://api.weixin.qq.com/cgi-bin/component/clear_quota/v2
{
"appid":"wxxxxxxxxxxxxxxxxxx",
"component_appid":"wxxxxxxxxxxxxxxxxxx",
"appsecret":"xxxxxxxxxxxx"
}
# 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 |
40013 | invalid appid | Illegal AppID , ask the developer to check AppID The correctness of the, avoid unusual characters, pay attention to the case |
41004 | appsecret missing | lack secret parameter |
41002 | appid missing | lack appid parameter |
48006 | forbid to clear quota Because of reaching the limit | api The number of cleanup calls is prohibited because the maximum number of clearances is reached |
43007 | require bizuser authorize | Check authorization relationship |