跳转到内容
返回官网

修改商品基本信息

商家根据商品ID修改商品基本信息,包括属性、特殊属性、商品标题等信息

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/jd/ware/write/updateware

公共参数

参数名称参数类型是否必须示例值参数描述
appidString合作伙伴AppId
timestampString1657525936当前Unix时间戳,秒
seller_nickString38173182京东的账号,对应蜂巢授权返回jdseller字段
signString

业务参数

名称类型必须示例值描述
warecom.jd.pop.ware.ic.api.domain.Ware商品对象
- wareIdNumber1975652301商品ID(修改时必填)
- titleString惠普(HP) 1200A/1005/136W黑白激光打印机 复印扫描一体机办公家用无线手机打印商品名称 限制45个字符内
- brandIdNumber8740已经授权过的品牌ID(通过商家授权类目接口获取)
- templateIdNumber600333248关联版式,来源关联版式ID
- transportIdNumber6756566运费模板ID,来源商家运费模板系统
- wareStatusNumber1商品状态 1:从未上柜 2:自主下架 4:系统下架 8:在售
- outerIdStringXXYI700006商品外部ID,商家自己维护并确保唯一,来源于商家定义
- itemNumStringFB81718-1001商品货号
- barCodeString6922266461712商品的条形码.UPC码,SN码,PLU码统称为条形码,来源国家编码中心
- wareLocationNumber1商品产地 id [(1-中国大陆)(2-中国香港)(3-中国澳门)(4-中国台湾)]
- deliveryNumber1商品发货地
- promiseIdNumber63539778配送时效,来源商家配送时效模版列表
adWordscom.jd.pop.ware.ic.api.domain.AdWords商品广告词对象 (单品页显示的优先级低于促销广告词)
- urlStringhttps://pro.jd.com/mall/active/2hhx1pM32H1MWmKNnHAAL13AwSfy/index.html广告词链接地址
- urlWordsString点击抢购广告词链接文案
- wordsString【TOPSPORTS-滔搏官方】12.21-12.29晚20点领券1件立享7折
- wrapString包装规格(已废弃字段)包装规格(已废弃)
- packListingString外包装采用防拆,彩盒内标配…商品包装清单
- lengthNumber300商品长度,单位mm
- widthNumber300商品宽度,单位mm
- heightNumber300商品高度,单位mm
- weightNumber3商品重量,单位kg
propsjava.util.Set<com.jd.pop.ware.ic.api.domain.Prop>属性列表(已废弃 请使用multiCateProps),最多100个
- - - attrIdString234234属性ID 通过接口 jingdong.category.read.findAttrsByCategoryIdUnlimitCate 按照类目ID获取
- - - attrValuesString4354354属性值ID数组 jingdong.category.read.findValuesByAttrIdUnlimit 获取
featuresjava.util.Set<com.jd.pop.ware.ic.api.domain.Feature>商品维度的特殊属性 目前两个特殊属性 IBS、FBP、FCS、SCF
- - - featureKeyString不要写 featureKey特殊属性key,JOS平台问题需要在使用时将字段写为 key
- - - featureValueString不要写 featureValue特殊属性value,JOS平台问题需要在使用时将字段写为 value
shopCategorysjava.util.Set商品店内分类(商家接口获取到的最末级的分类)最多20个
- - - (Number)15378915商品店内分类
mobileDescString移动版的商品介绍详细信息描述移动版的商品介绍
zhuangBaIdString641bdf1fe4b0cb7ab840752d商品描述装吧实例ID,来源装吧系统。
introductionUseFlagString1商品描述使用标识 ,0:使用默认的商品描述,1:使用装吧商详
mobileZhuangBaIdString641bdf1fe4b0cb7ab840752d移动版装吧实例ID,来源装吧系统。
mobileDescUseFlagString1移动版商品描述使用标识,0:使用默认的移动商详;1:使用装吧移动版商详
introductionStringPC版的商品介绍详细信息描述PC版的商品介绍
afterSalesString售后服务详细信息文字描述售后服务
jdPriceNumber66.6商品维度的京东价,仅做存贮,售卖不使用此价格
marketPriceNumber86.6商品的市场价
designConceptString商品设计理念文字描述商品设计理念,适用范围是toplife类目
fitCaseHtmlAppString装修案例移动版html文字描述装修案例移动版描述,装修类目才可填写
fitCaseHtmlPcString装修案例PC版描述文字描述装修案例PC版描述,装修类目才可填写
multiCatePropsjava.util.Set<com.jd.pop.ware.ic.api.domain.Prop>类目属性列表,类目属性中有必填项时,此字段必填
- - - attrIdString222435属性ID 通过接口 jingdong.category.read.findAttrsByCategoryIdUnlimitCate 按照类目ID获取
- - - attrValuesString2224453属性值ID数组 jingdong.category.read.findValuesByAttrIdUnlimit 获取
- - - expandsString扩展信息扩展字段
- - - unitsStringG单位字段 inputType=7 是属性值单位 例如:属性值 8G units中的值为 G
specialServicesjava.util.List特色服务,装修类目才可填写,装修类必填,最大为5,每个值最长为8个字符
- - - (String)特色服务文字秒速特色服务
spuIdNumber16644912标品Id

二、请求示例代码

Java

请求示例代码

@Test
public void JDWareWriteUpdateWare() throws Exception {
String prodStr = "{\"wareId\":\"10026023213016\",\"outerId\":\"123456XYZ\",\"venderId\":624092}";
String sellerNick = Config.JDSellerNick ;
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("seller_nick", sellerNick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("content", prodStr);
data.put("sign", Utils.Sign(data, Config.AppSecret));
doHttpRequest(Config.JDWareWriteUpdateWare, data);
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": "success"
}
}

说明: code为0表示成功,非0为失败,message会包含失败原因。