跳转到内容
返回官网

获取商品详情

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

一、请求参数

请求URL:

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

基础参数

参数名类型必须示例值说明
appidStringtrue32432143214214合作伙伴AppId
timestampStringtrue1633618722当前时间戳
seller_nickString可选b2b-16249611221688账号
signStringtrue999de41d862efaa6f1084ead3b3ba480如何计算生成见示例代码

业务参数

名称类型是否必须描述示例值
offerIdLong1688商品ID573741401425
openOfferIdString1688加密商品ID,跟offerId必选其一ipyyvQsdS1fd/NACddd1Hg==

二、请求示例代码

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", "923983820738");
data.put("sign", Utils.Sign(data, Config.AppSecret));
// 调用服务API
String response = doHttpRequest(Config.One688FenXiaoGetProduct, data);
}
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": {
"productInfo": {
"productID": 923983820738,
"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": 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": "2024年夏季",
"isCustom": false
},
{
"attributeID": 117130178,
"attributeName": "主面料成分",
"value": "锦纶",
"isCustom": false
},
{
"attributeID": 151844178,
"attributeName": "主面料成分2",
"value": "锦纶",
"isCustom": false
},
{
"attributeID": 1398,
"attributeName": "货号",
"value": "碎花百褶连衣裙",
"isCustom": false
},
{
"attributeID": 2176,
"attributeName": "品牌",
"value": "其他",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "随机花色(拍10件1捆)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "蓝底 白色花 01",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "咖底 黄色花 02",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "绿底 红色花 03",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "深蓝底 红色花 04",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "白底 红色花 05",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "灰底 咖色花 06",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "白底 粉色花 07",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "白底 蓝色花 08",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "浅绿底 粉色花 09",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "湖蓝底 红色花 10",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "藏青底 太阳花 11",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "藏青色 12",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "黑色 13",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 01",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 02",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 03",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 04",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 05",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 06",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 07",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 08",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 09",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 10",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "三层蛋糕裙 11",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(红底黄花01)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(黑底红花02)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(蓝底粉花03)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(黄底红花04)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(粉底红花05)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(黑底粉花06)",
"isCustom": false
},
{
"attributeID": 3216,
"attributeName": "颜色",
"value": "纽扣两节裙(黄底樱桃07)",
"isCustom": fa
…(示例过长,已截断)

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