# Reset the number of API calls

Debugging Tools

Interface should be called on the server side, not in the front end (Weixin Mini Program, web pages, APP, etc.) directly called, specific reference interface call guide

Interface name: clearQuota

This interface is used to empty Official Account / Service Account / Weixin Mini Program/ MiniGame / Weixin Store / Delivery Assistant / Weixin Channels Assistant / Alliance Shipping Agency / Mobile App / Website App / Weixin Mini Program Wait for the number of interface calls per day.

# 1. How to call

# HTTPS calls

POST https://api.weixin.qq.com/cgi-bin/clear_quota?access_token=ACCESS_TOKEN

# Cloud Calls

  • This interface does not support cloud calls

# Third party invocation

  • This interface supports Third Party Platform calling itself using component_access_token , and also supports calling on behalf of merchants.

  • Once the service provider has any set of permissions authorized, it can call on behalf of the merchant by using authorizer_access_token , which can be viewed in the third-party call documentation.

# 2. Request parameters

# Query parametersQuery String parameters

Parameter NametypeRequired to fill inIntroductions
access_tokenstringyesInterface invoke credentials, using access_token

# Request BodyRequest Payload

Parameter NametypeRequired to fill inIntroductions
appidstringyesAppID of the account to be emptied

# 3. Return Parameters

# Response Payload

Parameter NametypeIntroductions
errcodenumberError code
errmsgstringError message

# 4. Note

If you want to empty the Official Account interface quota, you need to use the access_token of the Official Account message template;If you want to empty the quota of Weixin Mini Program interface, you need to use the access_token](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html) of the [Mini Program;If you want to empty the quota of Third Party Platform interfaces, you need to use third party platform component_access_token .And so on.

  1. If it is a third-party service provider Official Account / Service Account / Weixin Mini Program / Weixin Store / Delivery Assistant / Weixin Channels AssistantTo clear the quota, use authorizer_access_token

(3) Each account has a total of 10 opportunities for zero operation per month, and once zero is effective, once the opportunity is used;Third party help Official Account / Service Account / Weixin Mini Program / Weixin Store / Delivery Assistant / Weixin Channels AssistantWhen delegated calls are made, they actually consume the quota of the WeChat account/service account/mini program/WeChat mini store/shopping assistant/WeChat Channels assistant itself.

  1. Due to differences in the methodology or statistical time of calculation of indicators, real-time call data may have an error, generally within 1%.

# 5. Code examples

Example Requests

{
  "appid": "wx448f04719cd48f69"
}

Return an example

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

# 6. Error code

The following is a list of error codes for this interface, other error codes can refer to General error codes

Error codeError DescriptionSolutions
0okok
40013invalid appidInvalid AppID, please check the correctness of the AppID, avoid abnormal characters, pay attention to the case
48006forbid to clear quota because of reaching the limitThe api disables the number of zeroing calls because the number of zeroing calls is capped

# 7. Scope of application

How this interface can be invoked under different account types:
Weixin Mini Program Official Account Service Account MiniGame Weixin Store Alliance Shipping Agency Delivery Assistant Third Party Platform Mobile App Website App Weixin Channels Assistant Multi-platform App