查询商品类目id的属性列表

1、调用【/product/add/v2】创建商品和【/product/edit/v2】更新商品时,请求参数【product_format_new】字段需传入。

请求URL:

POST https://kf.fw199.com/gateway/dd/product/getcatepropertyv2

公共参数

参数名称 参数类型 是否必须 示例值 参数描述
appid String 合作伙伴AppId
timestamp String 1657525936 当前Unix时间戳,秒
seller_nick String 38173182 抖店的账号,对应蜂巢授权返回doudianseller字段
sign String

业务参数

参数名称 参数类型 是否必须 示例值 参数描述
category_leaf_id Number 1342353245 叶子类目id 1、传category_leaf_id,则不需要传first_cid、second_cid、third_cid这三个字段 2、如果没传category_leaf_id,走之前的逻辑,需要传first_cid、second_cid、third_cid这三个字段

2. 请求示例代码(Java)

请求示例代码

    @Test
    public void  DDProductGetcatePropertyv2() throws Exception {
        Map<String, Object> data = new HashMap<String, Object>();
        data.put("appid",  Config.AppId);
        Long timestamp = System.currentTimeMillis() / 1000;
        data.put("timestamp", timestamp.toString());
        data.put("seller_nick", Config.DDSellerNick);
        data.put("category_leaf_id","20220" );
        data.put("sign", Sign(data,Config.AppSecret));
        // 调用服务API
        String resp = doHttpRequest(Config.DDProductGetCatePropertyV2, data);
        System.out.println(resp);
    }

3. 返回结果如下:


{
  "code": 0,
  "data": {
    "data": [
      {
        "propertyPicRule": {
          "available": false,
          "required": false
        },
        "featureTypeList": [
          49,
          14,
          46
        ],
        "measureTemplates": [],
        "hasSubProperty": false,
        "cid": 1000008133,
        "propertyName": "品牌",
        "options": [],
        "required": 0,
        "status": 0,
        "type": "select",
        "categoryId": 1000008133,
        "multiSelectMax": 5,
        "propertyType": 0,
        "propertyId": 1687,
        "sequence": 0,
        "relationId": 0,
        "diyType": 0,
        "importantType": 1
      },
      {
        "propertyPicRule": {
          "available": false,
          "required": false
        },
        "featureTypeList": [
          103
        ],
        "measureTemplates": [],
        "hasSubProperty": false,
        "cid": 1000008133,
        "propertyName": "产地",
        "options": [
          {
            "name": "葡萄牙",
            "value": "219",
            "valueId": 219,
            "sequence": 150
          },
          {
            "name": "仿兔绒",
            "value": "559816",
            "valueId": 559816,
            "sequence": 5400
          },
          {
            "name": "TR色纺",
            "value": "614412",
            "valueId": 614412,
            "sequence": 5401
          }
        ],
        "required": 0,
        "status": 0,
        "type": "multi_select",
        "categoryId": 1000008133,
        "multiSelectMax": 5,
        "propertyType": 0,
        "propertyId": 784,
        "sequence": 439,
        "relationId": 0,
        "diyType": 1,
        "importantType": 0
      }
    ],
    "tplType": 2
  },
  "message": "success"
}

说明: code为0表示成功,非0为失败,message会包含失败原因。返回字段说明见文档
https://op.jinritemai.com/docs/api-docs/14/1373

文档更新时间: 2026-08-12 17:27   作者:JSL