当前位置:首页 > 大杂烩 > 正文内容

微盟云商品一级分类编号大全,微盟云获取一级/二级类目接口

高老师8个月前 (01-26)大杂烩210

获取一级/二级类目

weimob_shop/goods/category/getList
v2.0
最近修改时间:2023-09-18 18:01:54
接口描述
用于查询商品的一级、二级类目。
注意事项

调用逻辑

▪  查询一级类目时无需传入父类目 ID。

▪  查询二级类目时需要传入父类目 ID。

▪  目前类目层级最多只支持二层。

▪  该接口调用的常见问题,请参见 商品对接问题


调用权限

▪  调用前,请确保您已在微盟云控制台申请了该 API。申请步骤请参见 申请能力
▪  ACCESS_TOKEN 是调用 API 的授权令牌。获取方法请参见 获取 token(自有型)或 获取 token(工具型)

接口信息
协议
请求方式
请求地址
https
POST
https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/category/getList?accesstoken=ACCESS_TOKEN
请求参数
参数
是否必填
类型
示例
描述
parentCategoryId
number
1000000
上级商品类目 ID。查询一级类目时无需传入父类目 ID,查询二级类目时需要传入父类目 ID。





basicInfo
object
{"vid":6000287446212}
基础信息
vid
number
6000287446212
待查询商品类目所在的组织 ID。

 获取方法 
可以通过 bos/organization/getList 接口返回参数中的 data.vid 字段获取该 ID。

已经直接将返回的json查询到,您可以直接使用我的json查看返回编号:

{
    "code": {
        "errcode": "0",
        "errmsg": "处理成功",
        "globalTicket": "3976-1706234138.050-saas-w1-548-18255696281",
        "monitorTrackId": "85a9eddc-d0b6-4267-a23a-a71bbd46ba3b"
    },
    "data": {
        "goodsCategoryInfoList": [
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "食品",
                "isLeaf": false,
                "categoryId": 1
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "美妆护肤",
                "isLeaf": false,
                "categoryId": 2
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": 1,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "服饰",
                "isLeaf": false,
                "categoryId": 3
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": 2,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "鞋类箱包",
                "isLeaf": false,
                "categoryId": 4
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": 3,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "母婴",
                "isLeaf": false,
                "categoryId": 5
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "居家日用",
                "isLeaf": false,
                "categoryId": 6
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "珠宝配饰",
                "isLeaf": false,
                "categoryId": 7
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "3C数码",
                "isLeaf": false,
                "categoryId": 8
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "家用电器",
                "isLeaf": false,
                "categoryId": 9
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "图书音像",
                "isLeaf": false,
                "categoryId": 10
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "医疗保健",
                "isLeaf": false,
                "categoryId": 11
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "古董收藏",
                "isLeaf": false,
                "categoryId": 12
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "休闲娱乐",
                "isLeaf": false,
                "categoryId": 13
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "餐饮美食",
                "isLeaf": false,
                "categoryId": 14
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "丽人",
                "isLeaf": false,
                "categoryId": 15
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "旅游酒店",
                "isLeaf": false,
                "categoryId": 16
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "汽车/交通",
                "isLeaf": false,
                "categoryId": 17
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "商务办公",
                "isLeaf": false,
                "categoryId": 18
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "便民生活",
                "isLeaf": false,
                "categoryId": 19
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "文化体育",
                "isLeaf": false,
                "categoryId": 20
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "学习培训",
                "isLeaf": false,
                "categoryId": 21
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "房地产",
                "isLeaf": false,
                "categoryId": 22
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "金融理财",
                "isLeaf": false,
                "categoryId": 23
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "网络游戏",
                "isLeaf": false,
                "categoryId": 24
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "话费通信",
                "isLeaf": false,
                "categoryId": 25
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "工农用品",
                "isLeaf": false,
                "categoryId": 26
            },
            {
                "mallCategoryCertificateMgrDTO": null,
                "categoryType": null,
                "categoryLevel": 1,
                "categoryPropertyList": null,
                "parentCategoryId": 0,
                "categoryName": "其他",
                "isLeaf": false,
                "categoryId": 27
            }
        ]
    }
}

我需要的是一级大类“服饰“,编号是:3,你需要其他的可以自己在JSON中查阅。



扫描二维码推送至手机访问。

版权声明:本文由高久峰个人博客发布,如需转载请注明出处。

本文链接:https://blog.20230611.cn/post/709.html

分享给朋友:

“微盟云商品一级分类编号大全,微盟云获取一级/二级类目接口” 的相关文章

c#中string和StringBuilder效率对比

c#中string和StringBuilder效率对比

    c#中string和StringBuilder直接看看执行速度。(2).String类型累计赋值Test               ...

Application的错误使用

Application的错误使用

Application 对象用于存储和访问来自任意页面的变量,类似 Session 对象。不同之处在于所有的用户分享一个 Application 对象,而 session 对象和用户的关系是一一对应的。很多的书籍中介绍的Application对象都喜欢以统计在线人数来介绍Application 对象...

Git推送文件到远程仓库

Git推送文件到远程仓库

1.远程仓库的协作模式开发者把自己最新的版本推到线上仓库,同时把线上仓库的最新代码,拉到自己本地即可2.注册git帐号国外: http://www.github.com国内: http://git.oschina.net2.在码云创建项目,不要初始化readmegit push https://gi...

c#关闭计算机的代码

c#关闭计算机的代码

    1.关机Process.Start("shutdown", "-s -t 0");    2. 注销  Proc...

C# md5加密,C# md5加密代码

C# md5加密,C# md5加密代码

public static string GetMD5(string str) {     //创建MD5对象     MD5 md5 = MD5.C...

c#中文简体转换繁体

c#中文简体转换繁体

private const string fantizi = "高久峰是個程序員"; private const string jiantizi = "高久峰是个程序员...