获取1688分销商品详情

获取获取分销商品详情接口,即上游厂家的商品详情信息,包括此商品是否可代发。

1.请求参数:

请求URL:

POST https://kf.fw199.com/gateway/1688/fenxiao/item/detail

基础参数

参数名 类型 必须 示例值 说明
appid String true 32432143214214 合作伙伴AppId
timestamp String true 1633618722 当前时间戳
seller_nick String true b2b-1624961122 1688账号
sign String true 999de41d862efaa6f1084ead3b3ba480 如何计算生成见示例代码

业务参数

名称 类型 是否必须 描述 示例值
offerId Long 1688商品ID 573741401425
openOfferId String 1688加密商品ID,跟offerId必选其一 ipyyvQsdS1fd/NACddd1Hg==

2. 请求示例代码(Java)

    @Test
    public void GetProductInfo() throws Exception {
        //业务参数
        Map<String, String> data = new HashMap<String, String>();
        data.put("appid", Config.AppId);
        data.put("seller_nick",  Config.AlibabaFenXiaoSellerNick);
        Long timestamp = System.currentTimeMillis() / 1000;
        data.put("timestamp", timestamp.toString());
        data.put("offerId", "903403705045");
        data.put("sign", Utils.Sign(data, Config.AppSecret));
        // 调用服务API
        String response = doHttpRequest(Config.One688FenXiaoGetProduct, data);
    }
    }

3. 返回结果如下:

{
  "code": 0,
  "message": "ok",
  "data": {
    "productInfo": {
      "productID": 903403705045,
      "productType": "wholesale",
      "categoryID": 1031910,
      "categoryName": "连衣裙",
      "productAttribute": [
        {
          "attributeID": 100031521,
          "attributeName": "面料名称",
          "value": "涤纶",
          "isCustom": false
        },
        {
          "attributeID": 2900,
          "attributeName": "图案",
          "value": "纯色",
          "isCustom": false
        },
        {
          "attributeID": 1085,
          "attributeName": "工艺",
          "value": "无",
          "isCustom": false
        },
        {
          "attributeID": 346,
          "attributeName": "产地",
          "value": "杭州",
          "isCustom": false
        },
        {
          "attributeID": 1811,
          "attributeName": "款式",
          "value": "基本款",
          "isCustom": false
        },
        {
          "attributeID": 2576403,
          "attributeName": "组合形式",
          "value": "单件",
          "isCustom": false
        },
        {
          "attributeID": 20680,
          "attributeName": "裙长",
          "value": "中长裙",
          "isCustom": false
        },
        {
          "attributeID": 34321,
          "attributeName": "裙型",
          "value": "大摆型",
          "isCustom": false
        },
        {
          "attributeID": 20602,
          "attributeName": "领型",
          "value": "圆领",
          "isCustom": false
        },
        {
          "attributeID": 2917380,
          "attributeName": "袖型",
          "value": "常规袖",
          "isCustom": false
        },
        {
          "attributeID": 7001,
          "attributeName": "袖长",
          "value": "长袖",
          "isCustom": false
        },
        {
          "attributeID": 20677,
          "attributeName": "腰型",
          "value": "高腰",
          "isCustom": false
        },
        {
          "attributeID": 8614,
          "attributeName": "流行元素",
          "value": "拼接",
          "isCustom": false
        },
        {
          "attributeID": 20666,
          "attributeName": "上市年份/季节",
          "value": "2023年秋季",
          "isCustom": false
        },
        {
          "attributeID": 117130178,
          "attributeName": "主面料成分",
          "value": "聚酯纤维(涤纶)",
          "isCustom": false
        },
        {
          "attributeID": 151844178,
          "attributeName": "主面料成分2",
          "value": "聚酯纤维(涤纶)",
          "isCustom": false
        },
        {
          "attributeID": 1398,
          "attributeName": "货号",
          "value": "BX981",
          "isCustom": false
        },
        {
          "attributeID": 3216,
          "attributeName": "颜色",
          "value": "图片色BX981",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "S",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "M",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "L",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "XL",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "XXL",
          "isCustom": false
        },
        {
          "attributeID": 450,
          "attributeName": "尺码",
          "value": "XXXL",
          "isCustom": false
        },
        {
          "attributeID": 2489638,
          "attributeName": "风格类型",
          "value": "气质通勤",
          "isCustom": false
        },
        {
          "attributeID": 149092418,
          "attributeName": "主面料成分含量",
          "value": "90%(含)-95%(不含)",
          "isCustom": false
        },
        {
          "attributeID": 401,
          "attributeName": "风格",
          "value": "英伦风",
          "isCustom": false
        },
        {
          "attributeID": 7169,
          "attributeName": "裙类别",
          "value": "连衣裙",
          "isCustom": false
        },
        {
          "attributeID": 221796513,
          "attributeName": "是否跨境货源",
          "value": "否",
          "isCustom": false
        }
      ],
      "status": "published",
      "subject": "2秋季连衣裙女长袖2025新款显瘦韩版女士秋款长裙子气质11",
      "description":"这是商品描述内容,html格式",
      "language": "CHINESE",
      "periodOfValidity": 3650,
      "biz_type": null,
      "pictureAuth": false,
      "supplierUserId": "1623492085",
      "quality_level": null,
      "supplierLoginId": "alitestforisv01",
      "referencePrice": "175.5~182.0",
      "createTime": "20250327233716000+0800",
      "lastUpdateTime": "20250411222322000+0800",
      "expireTime": "20350409222322000+0800",
      "modifyTime": "20250507191229000+0800",
      "approvedTime": "20250411222322000+0800",
      "sellerLoginId": "alitestforisv01",
      "sellerId": 1623492085,
      "productImage": {
        "images": [
          "https://cbu01.alicdn.com/img/ibank/O1CN01K8PdMY1RGyqB391Jw_!!1623492085-0-cib.jpg",
          "https://cbu01.alicdn.com/img/ibank/O1CN01LEm4Ck1RGyqFENBKJ_!!1623492085-0-cib.jpg",
          "https://cbu01.alicdn.com/img/ibank/O1CN01icFjKa1RGyqELPlbH_!!1623492085-0-cib.jpg",
          "https://cbu01.alicdn.com/img/ibank/O1CN01fo5W1O1RGyqDaCT65_!!1623492085-0-cib.jpg",
          "https://cbu01.alicdn.com/img/ibank/O1CN01zW9Kew1RGyqBn89qC_!!1623492085-0-cib.jpg"
        ]
      },
      "productSkuInfos": [
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 32.0,
          "skuId": 5927837466359,
          "specId": "0ab199ae344fc4ffdcaeb3ed638042b7",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "S",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        },
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 2.0,
          "skuId": 5927837466360,
          "specId": "7cf4c671dc552add6176e50ca69920aa",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "M",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        },
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 0.0,
          "skuId": 5927837466361,
          "specId": "295272c4656fcbeedbb4a986811b477f",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "L",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        },
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 0.0,
          "skuId": 5927837466362,
          "specId": "275d039dbe35b1348987ed00421ad6ca",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "XL",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        },
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 971.0,
          "skuId": 5927837466363,
          "specId": "f6a2d21cfd5b784ac2452844fd4d569b",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "XXL",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        },
        {
          "cargoNumber": "ali-576607787279",
          "amountOnSale": 979.0,
          "skuId": 5927837466364,
          "specId": "36d5e7ffc1ebdadb2a4f901b7ed84400",
          "consignPrice": 182.0,
          "attributes": [
            {
              "attributeID": 3216,
              "attributeValue": "图片色BX981",
              "attributeName": "颜色"
            },
            {
              "attributeID": 450,
              "attributeValue": "XXXL",
              "attributeName": "尺码"
            }
          ],
          "multipleConsignPrice": 182.0
        }
      ],
      "productSaleInfo": {
        "supportOnlineTrade": true,
        "mixWholeSale": false,
        "priceAuth": false,
        "amountOnSale": 1984.0,
        "unit": "件",
        "minOrderQuantity": 2,
        "quoteType": 2,
        "priceRanges": [
          { "startQuantity": 2, "price": 182.0 },
          { "startQuantity": 15, "price": 175.5 }
        ]
      },
      "productShippingInfo": {
        "freightTemplateID": 24051013,
        "unitWeight": 0.5,
        "sendGoodsAddressId": 336567443,
        "sendGoodsAddressText": "浙江省 杭州市",
        "freightTemplate": [
          {
            "addressCodeText": "广东省 广州市 白云区",
            "fromAreaCode": "440111",
            "id": 24051013,
            "expressSubTemplate": {
              "subTemplateDTO": {
                "chargeType": 1,
                "isSysTemplate": false,
                "serviceType": 0,
                "type": 0,
                "serviceChargeType": null
              },
              "rateList": [
                {
                  "is_sys_rate": null,
                  "toAreaCodeText": "",
                  "rateDTO": {
                    "firstUnit": 1,
                    "firstUnitFee": 0.0,
                    "nextUnit": 100,
                    "nextUnitFee": 0.0
                  }
                }
              ]
            }
          }
        ],
        "distributionFreePostage": false
      },
      "productExtendInfos": [
        { "key": "isSupportStepPay", "value": "false" },
        { "key": "isSupportMix", "value": "false" },
        { "key": "isAlipaySupported", "value": "true" },
        { "key": "isFactoryMemProcessingOffer", "value": "false" },
        { "key": "isOnePsale", "value": "true" },
        { "key": "buyerProtection", "value": "[\"ssbxsfh\",\"qtwlybt\"]" },
        { "key": "buyerProtectionDistribution", "value": "[\"qtwlybt\"]" },
        { "key": "isJxhyOffer", "value": "true" },
        { "key": "freepostage", "value": "false" }
      ],
      "sellStartTime": "19700101000000000+0800",
      "encryptLogisticsOrderSupportChannel": { "supportChannel": null },
      "productOfficialLogisticsModel": {
        "officialLogisticsInfoModel": {
          "length": 10.0,
          "width": 10.0,
          "height": 10.0,
          "weight": 500.0,
          "volume": 1000.0
        },
        "officialLogisticsSkuInfoModels": []
      }
    },
    "success": true
  },
  "trace_id": ""
}

说明: code为0表示成功,非0为失败,message会包含失败原因。 data中返回字段说明见文档

文档更新时间: 2025-05-08 12:08   作者:admin