跳转到内容
返回官网

商品明细

获取商品明细

支持应用:OMS

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/pdd/goods/detail/get

参数名类型必须说明
appidString必填合作伙伴AppId
timestampString必填当前时间戳
tb_seller_nickString必填拼多多账号, 非店铺名称
signString必填如何计算生成见示例代码
goods_idLONG必填32342143

二、请求示例代码

Java

@Test
public void PddGoodsDetailGet() throws Exception {
String seller_nick = Config.PddSellerNick; // 拼多多卖家账号
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("seller_nick", seller_nick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("goods_id", "160210883299");
// 参数签名
data.put("sign", Utils.Sign(data, Config.AppSecret));
doHttpRequest(Config.PddGoodsDetailGetUrl, data);
}

三、返回结果

返回结果如下

{
"code": 0,
"message": "ok",
"data": {
"bad_fruit_claim": 0,
"buy_limit": 999999,
"carousel_gallery_list": ["https://t16img.yangkeduo.com/garner-api/583314e6541c02a1bdf468c1aa66f0f6.jpeg"],
"cat_id": 18056,
"cost_template_id": 197590968702499,
"country_id": 0,
"customer_num": 2,
"customs": "",
"delivery_one_day": 0,
"delivery_type": null,
"detail_gallery_list": ["https://t16img.yangkeduo.com/garner-api/c983f38fa4e71e1330b8f32c8aff5b71.jpeg"],
"end_production_date": null,
"fabric_content_id": null,
"fabric_id": null,
"goods_desc": "杯架A测试商品请不要拍",
"goods_id": 160210883299,
"goods_name": "A4白纸一张十圆不支持退货,不要乱拍!",
"goods_pattern": 3,
"goods_property_list": [{
"punit": "",
"ref_pid": 310,
"template_pid": 137041,
"vid": 67,
"vvalue": "太力"
}, {
"punit": "",
"ref_pid": 317,
"template_pid": 137039,
"vid": 12854,
"vvalue": "塑料"
}],
"goods_trade_attr": null,
"goods_travel_attr": null,
"goods_type": 1,
"hd_thumb_url": "http://t00img.yangkeduo.com/goods/images/2020-08-01/7c64ec4a8ef337bc373b96162ace562f.jpeg",
"image_url": "",
"invoice_status": 0,
"is_customs": 0,
"is_folt": 1,
"is_group_pre_sale": null,
"is_pre_sale": 0,
"is_refundable": 1,
"is_sku_pre_sale": 0,
"lack_of_weight_claim": 0,
"mai_jia_zi_ti": null,
"market_price": 4000,
"order_limit": 999999,
"origin_country_id": 0,
"out_source_goods_id": null,
"out_source_type": null,
"outer_goods_id": "g100",
"oversea_goods": null,
"oversea_type": 0,
"paper_length": null,
"paper_net_weight": null,
"paper_plies_num": null,
"paper_width": null,
"pre_sale_time": 0,
"production_license": null,
"production_standard_number": null,
"quan_guo_lian_bao": 0,
"request_id": "16338768845354782",
"second_hand": 0,
"shang_men_an_zhuang": null,
"shelf_life": null,
"shipment_limit_second": 172800,
"size_spec_id": null,
"sku_list": [{
"is_onsale": 1,
"length": null,
"limit_quantity": 999999,
"multi_price": 1000,
"out_sku_sn": "s50cm",
"out_source_sku_id": null,
"oversea_sku": {
"measurement_code": null,
"measurement_unit": null,
"specifications": null,
"taxation": null
},
"price": 1500,
"quantity": 81,
"reserve_quantity": 0,
"sku_id": 648106686604,
"sku_pre_sale_time": null,
"sku_property_list": null,
"spec": [{
"parent_id": 1216,
"parent_name": "尺寸",
"spec_id": 72930,
"spec_name": "50cm"
}],
"thumb_url": "https://t16img.yangkeduo.com/garner-api/70ec7360c13688309252f88a9ce49965.jpeg",
"weight": 0
}, {
"is_onsale": 1,
"length": null,
"limit_quantity": 999999,
"multi_price": 1900,
"out_sku_sn": "s100cm",
"out_source_sku_id": null,
"oversea_sku": {
"measurement_code": null,
"measurement_unit": null,
"specifications": null,
"taxation": null
},
"price": 3300,
"quantity": 111111,
"reserve_quantity": 0,
"sku_id": 648106686605,
"sku_pre_sale_time": null,
"sku_property_list": null,
"spec": [{
"parent_id": 1216,
"parent_name": "尺寸",
"spec_id": 42,
"spec_name": "100cm"
}],
"thumb_url": "https://t16img.yangkeduo.com/garner-api/385531de9957fb1f3de0ce48956ee432.jpeg",
"weight": 0
}],
"sku_type": null,
"song_huo_an_zhuang": null,
"song_huo_ru_hu": null,
"start_production_date": null,
"status": 1,
"thumb_url": "http://t00img.yangkeduo.com/goods/images/2020-08-01/e153908d8b9fd170578848f81d504645.jpeg",
"tiny_name": "",
"video_gallery": [],
"warehouse": "",
"warm_tips": "",
"zhi_huan_bu_xiu": 0
},
"trace_id": ""
}

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

四、返回参数说明

参数接口参数类型例子说明
bad_fruit_claimINTEGER坏果包赔
buy_limitLONG限购次数
carousel_gallery_listSTRING[]商品轮播图列表
cat_idLONG叶子类目ID
cost_template_idLONG运费模版id
country_idINTEGER地区/国家id
customer_numLONG团购人数
customsSTRING海关名称
delivery_one_dayINTEGER是否当日发货,0 否,1 是
detail_gallery_listSTRING[]商品详情图
goods_descSTRING商品描述
goods_idLONG商品id
goods_nameSTRING商品名称
goods_property_listOBJECT[]商品属性列表
punitSTRING属性单位
ref_pidLONG引用属性id
template_pidLONG模板属性Id
vidLONG基础属性值Id
vvalueSTRING基础属性值
goods_trade_attrOBJECT日历商品交易相关信息
advances_daysINTEGER提前预定天数,默认为0表示当天可预定
booking_notesOBJECT预订须知
urlSTRING预定须知图片地址
life_spanINTEGER卡券有效期,日历日期后多少天可用。默认值为0表示仅限日历日当天使用
goods_travel_attrOBJECT日历商品出行信息
need_touristBOOLEAN出行人是否必填(默认是)
typeINTEGER日历商品类型1:旅行类,2:住宿类,3:票务类
goods_typeINTEGER商品类型:1-国内普通商品,2-进口,3-国外海淘,4-直邮 ,5-流量,6-话费,7,优惠券;8-QQ充值,9-加油卡 暂时支持1-普通商品的上架
image_urlSTRING商品主图
invoice_statusINTEGER是否支持正品发票;0-不支持、1-支持
is_customsINTEGER是否需要上报海关 0:否 1:是
is_foltINTEGER是否支持假一赔十,0-不支持,1-支持
is_pre_saleINTEGER是否预售,1-预售商品,0-非预售商品
is_refundableINTEGER是否7天无理由退换货,1-支持,0-不支持
lack_of_weight_claimINTEGER缺重包退
mai_jia_zi_tiSTRING买家自提模版id
market_priceLONG参考价格,单位为分
order_limitLONG单次限量
outer_goods_idSTRING商家编码(商品维度),同其他接口中的outer_goods_id 、out_goods_id、out_goods_sn、outer_goods_sn 都为商家编码(goods维度)。
out_source_goods_idSTRING第三方商品Id
out_source_typeINTEGER第三方商品来源
oversea_goodsOBJECToversea_goods
bonded_warehouse_keySTRING保税仓唯一标识
consumption_tax_rateINTEGER消费税率
customs_brokerSTRING清关服务商
hs_codeSTRING海关编号
value_added_tax_rateINTEGER增值税率
oversea_typeINTEGERoversea_type
pre_sale_timeLONG预售时间
quan_guo_lian_baoINTEGER0:不支持全国联保;1:支持全国联保
second_handINTEGER是否二手 1:是 0:否
shang_men_an_zhuangSTRING上门安装模版id
shipment_limit_secondLONG承诺发货时间( 秒)
size_spec_idLONG尺码表id
skuTypeINTEGER库存方式(0:普通型,1:日历型)
sku_listOBJECT[]sku列表
is_onsaleINTEGER上下架状态 1:上架 0 :下架
lengthLONGsku送装参数:长度
limit_quantityLONGsku购买限制
multi_priceLONG商品团购价格 单位分
out_sku_snSTRING商家编码(sku维度),同其他接口中的outer_id 、out_id、out_sku_sn、outer_sku_sn、out_sku_id、outer_sku_id 都为商家编码(sku维度)。
out_source_sku_idSTRING第三方sku Id
oversea_skuOBJECToversea_sku
measurement_codeSTRING计量单位编码,从接口pdd.gooods.sku.measurement.list获取desc
specificationsSTRING规格
taxationINTEGER税费
priceLONG商品单买价格 单位分
quantityLONG库存
reserve_quantityLONG预扣库存
sku_idLONGsku编码
specOBJECT[]商品规格列表
parent_idLONG自定义规格所属的规格ID
parent_nameSTRING商品规格ID对应的规格名称
spec_idLONG自定义规格ID
spec_nameSTRING自定义规格名称
thumb_urlSTRINGsku预览图
weightLONG重量,单位为g
sku_property_listOBJECT[]sku属性
punitSTRING属性单位
ref_pidLONG属性id
valueSTRING属性值
vidLONG属性值id
sku_pre_sale_timeINTEGERsku预售时间,单位秒
song_huo_an_zhuangSTRING送货入户并安装模版id
song_huo_ru_huSTRING送货入户模版id
statusINTEGER商品状态 1:上架,2:下架,3:售罄 4:已删除
tiny_nameSTRING短标题,示例:新包装,保证产品的口感和新鲜度。单颗独立小包装,双重营养,1斤家庭分享装,更实惠新疆一级骏枣夹核桃仁。
video_galleryOBJECT[]商品视频
file_idLONG商品视频id
video_urlSTRING商品视频url
warehouseSTRING保税仓
warm_tipsSTRING水果类目温馨提示
zhi_huan_bu_xiuINTEGER只换不修的天数,目前只支持0和365
delivery_typeINTEGER发货方式。0:无物流发货;1:有物流发货。
is_group_pre_saleINTEGER是否成团预售。0:不是;1:是。
is_sku_pre_saleINTEGER是否sku预售,0:否,1:是