获取实物商品列表
拥有此API的权限集 |
---|
商品管理-查询 |
请求方式及url
- 请求方式:
POST
- 请求头:
Content-Type:application/json
- 接口地址:
https://api.xiaoe-tech.com/xe.goods.category.list/1.0.0
- 频率限制:
10秒3000次
在线调试工具
请求
响应
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 专属token |
parent_id | 是 | string | 0-获取一级类目 |
请求示例
{
"access_token":"xe_xxxxx",
"parent_id":"11645"
}
返回参数
参数名 | 类型 | 说明 | 备注 |
---|---|---|---|
code | int | 状态码 | 0为请求成功,其它为请求失败 |
msg | string | 请求状态描述信息 | 无 |
data | array | 商品类目信息 | 无 |
data
商品类目列表
参数名 | 类型 | 说明 | 备注 |
---|---|---|---|
data[].children | array | 子级类目列表 | 无 |
data[].created_at | string | 创建时间 | 无 |
data[].has_children | int | 是否有子级类目 | 1-是 0-否 |
data[].id | string | 类目id | 无 |
data[].is_enable | string | 是否可用 | 1-是 0-否 |
data[].parent_id | int | 父级类目id | 无 |
data[].rank | string | 类目排名 | 无 |
data[].title | string | 类目名称 | 无 |
data[].updated_at | string | 更新时间 | 无 |
返回示例
{
"code": 0,
"msg": "success",
"data": [
{
"id": 3388,
"title": "美妆饰品",
"parent_id": 0,
"is_enable": "1",
"has_children": 1,
"created_at": "2020-07-06 12:06:52",
"updated_at": "2020-08-12 23:10:49",
"rank": 0,
"children": [
{
"id": 3389,
"title": "眼镜/酒具/替烟品",
"parent_id": 3388,
"is_enable": "1",
"has_children": 1,
"created_at": "2020-07-06 12:06:42",
"updated_at": "2000-01-01 00:00:00",
"rank": 9999
}
]
},
{
"id": 5212,
"title": "母婴用品",
"parent_id": 0,
"is_enable": "1",
"has_children": 1,
"created_at": "2020-07-06 12:05:27",
"updated_at": "2020-08-12 23:10:49",
"rank": 2,
"children": [
{
"id": 5252,
"title": "童鞋/婴儿鞋/亲子鞋",
"parent_id": 5212,
"is_enable": "1",
"has_children": 1,
"created_at": "2020-07-06 12:05:27",
"updated_at": "2000-01-01 00:00:00",
"rank": 9999
}
]
}
]
}