# Query rid information

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getRidInfo

# Functional description

This interface is used to query calls Official Account message template/Mini Program/Third party platform interface error returns RID details, assist developers to locate the problem efficiently.

# Note

1, because the query rid information belongs to the developer's private behavior, so only support the same account query. For example, rid = 1111, is a Mini Program account A call to an interface error, then you need to use the Mini Program account A access_Token calls the current interface to query the details of rid = 1111, if the identity of the Mini Program account B is used to query, an error occurs, and the error code is xxx. Official Account message template, the interface of third-party platform account the same.

2, if it is a third-party service provider on behalf of the Official Account message template or Mini Program query Official Account message template or Mini Program API return rid, then use the same accountauthorizer_access_TokenJust call.

  1. The validity of rid is only 7 days, that is, only the rid of the last 7 days can be queried. If the rid queries for more than 7 days, there will be an error, the error code is 76001.

4、”/xxx/sns/xxx “This type of interface does not support the use of this interface, and a 76022 error will occur.

# Calling mode

# HTTPS call


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

# Third Party Invocation

  • The calling method and parameters are the same as HTTPS, only the calling token is different

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. useaccess_Tokenorauthorizer_access_Token
rid string yes The id returned by calling the interface

# Return parameters

attribute typeIntroductions
errcode 初始值 Return code
errmsg string Error message
request object Request details for this rid
attribute type Introductions
invoke_time number Timestamp of the originating request
cost_in_ms number Request millisecond time
request_url string The requested URL parameter
request_body string Request parameters for post request
response_body string Interface Request Return Parameter
client_ip string Client ip for interface request

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
"rid":"61725984-6126f6f9-040f19c4"
} 

# Return Data Example


{"errcode": 0,
  "errmsg":"ok",
  "request":{
      "invoke_time":1635156704,
      "cost_in_ms":30,
      "request_url":"access_token=50_Im7xxxx",
      "request_body":"",
      "response_body":"{"errcode":45009,"errmsg":"reach max api daily quota limit rid: 617682e0-09059ac5-34a8e2ea"}",
      "client_ip": "113.xx.70.51"
          
  }
      
  } 

# Error code

Error code Error code Solutions
0 ok ok
76001 rid not found Rid does not exist
76002 rid is error Rid is empty or formatted incorrectly
76003 could not query this rid,no permission The current account does not have the right to query the rid, the rid belongs to other account calls generated
76004 rid time is error RID expired, only supported for 7 days