# Pull Store Weixin Mini Program Category
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: getwxastorecatellist
This interface is used to obtain the first and second class information of the store Weixin Mini Program.Returned data contains category hierarchy and qualification requirements
# 1. How to call
# HTTPS calls
GET https://api.weixin.qq.com/wxa/get_merchant_category?access_token=ACCESS_TOKEN
# Cloud Calls
- This interface does not support cloud calls
# Third party invocation
This interface supports Third Party Platform generation business call.
This interface belongs to the permission set id: 8-10,13,37
When a service provider is authorized by one of the permissions set, 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 Name | type | Required to fill in | Introductions |
---|---|---|---|
access_token | string | yes | Interface invocation credentials, using access_token , authorizer_access_token |
# Request BodyRequest Payload
nothing
# 3. Return Parameters
# Response Payload
Parameter Name | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error Description |
data | object | data |
# Res.dataObject Payload
data
Parameter Name | type | Introductions |
---|---|---|
all_category_info | object | Category information |
# Res.data.all_category_infoObject Payload
Category information
Parameter Name | type | Introductions |
---|---|---|
categories | objarray | List of categories |
# Res.data.all_category_info.categories(Array)Object Payload
List of categories
Parameter Name | type | Introductions |
---|---|---|
id | number | Category id |
level | number | Level of category, Level 1 or Level 2 |
sensitive_type | number | 0 or 1, 0 means no special treatment 1 means to create the purpose of the store Weixin Mini Program, you need to add relevant documents |
# 4. Note
There are no special considerations for this interface
# 5. Code examples
Example Requests
{}
Return an example
{
"errcode": 0,
"errmsg": "ok",
"data": {
"all_category_info": {
"categories": [
{
"id": 0,
"name": "root",
"level": 0,
"children": [
269,
278
]
},
{
"id": 278,
"name": "购物",
"level": 1,
"father": 0,
"children": [
279,
280
]
},
{
"id": 280,
"name": "便利店",
"level": 2,
"father": 278,
"children": [],
"qualify": {
"exter_list": [
{
"inner_list": [
{
"name": "若涉及食品,请提供《食品经营许可证》或《卫生许可证》"
}
]
}
]
},
"scene": 3,
"sensitive_type": 1
}
]
}
}
}
# 6. Error code
The following is a list of error codes for this interface, other error codes can refer to General error codes
Error code | Error Description | Solutions |
---|---|---|
-1 | system error | The system is busy, so the developer is asked to try again in a few minutes. |
40001 | invalid credential access_token isinvalid or not latest | AppSecret error while getting access_token, or access_token is invalid.Developers should check that AppSecret is correct, or that they are calling interfaces for the appropriate Official Account |
# 7. Scope of application
Weixin Mini Program | Official Account | Service Account |
---|---|---|
✔ | ✔ | ✔ |
- ✔: The account can call this interface
- Other account types that are not expressly stated may not be called on this interface without special instructions;