# Get all the categories that have been set

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getSettingCategories

# Functional description

Use this interface to get all the categories that the Mini Program has set. If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Calling mode

# HTTPS call


GET https://api.weixin.qq.com/cgi-bin/wxopen/getcategory?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: 30, 61

  • 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

# Return parameters

attribute typeIntroductions
errcode number Return code
errmsg string Error message
categories array List of category information that has been set
attribute type Introductions
first number First class category ID
first_name string First class name
second number Secondary category ID
second_name string Secondary category name
audit_status number Audit Status (1 Under review 2 Audit not passed 3 Approved)
audit_reason string Reasons for Failure to Audit
limit number The number of times a category can be added in a change cycle
quota number The number of times a category can be added during this change cycle
category_limit number Maximum number of categories that can be set

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


GET https://api.weixin.qq.com/cgi-bin/wxopen/getcategory?access_token=ACCESS_TOKEN 

# Return Data Example


{
  "errcode": 0,
  "errmsg": "ok",
  "categories": [
    {
      "first": 8,
      "first_name": "education,"
      "second": 39,
      second_name": "emigration abroad,"
      "audit_status": 1,
      "audit_reason": ""
    }
  ],
  "limit": 5,
  "quota": 4,
  "category_limit": 20
} 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again