跳转到内容
返回官网

获取前台展示的店铺内卖家自定义商品类目

获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家)

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/taobao/sellercats/list/get

基本参数

参数名类型说明示例
appidString合作伙伴AppIduwkahf@jfs92
timestampString当前时间戳
tb_seller_nickString淘宝卖家店铺登录账号,非店铺名称kingdo
signString接口签名如何计算生成见示例代码

二、请求示例代码

Java

@Test
public void TaoBaoSellerCatsListGet() throws Exception {
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("tb_seller_nick", Config.TBSellerNick);
data.put("sign", Utils.Sign(data,Config.AppSecret));
doHttpRequest(Config.TaoBaoSellerCatsListGetUrl ,data);
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": [
{
"cid": 1751362841,
"parent_cid": 0,
"name": "aa",
"pic_url": "",
"sort_order": 1,
"type": "manual_type"
},
{
"cid": 1756131335,
"parent_cid": 1751362841,
"name": "学习教程",
"pic_url": "",
"sort_order": 0,
"type": "manual_type"
},
{
"cid": 1756137247,
"parent_cid": 1751362841,
"name": "测试类目-子6111",
"pic_url": "",
"sort_order": 0,
"type": "manual_type"
},
{
"cid": 410284344,
"parent_cid": 0,
"name": "教程系列",
"pic_url": "",
"sort_order": 2,
"type": "manual_type"
}
],
"trace_id": ""
}

说明: code为0表示成功, 如果失败,msg会包含失败原因。  返回的字段说明

名称类型示例描述
cidNumber12345卖家自定义类目编号
parent_cidNumber12父类目编号,值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目
nameString自定义类型名称卖家自定义类目名称
pic_urlStringxva1sdfxxx.jpg链接图片地址
sort_orderNumber1该类目在页面上的排序位置
typeStringmanual_type店铺类目类型:可选值:manual_type:手动分类,new_type:新品上价, tree_type:二三级类目树 ,property_type:属性叶子类目树, brand_type:品牌推广