获取商品提交的商品详情
商品编辑或者提交之后,可以通过此接口查询提交后的编辑信息
1.请求参数:
请求URL:
POST https://kf.fw199.com/gateway/pdd/goods/commit/detail/get
参数名 | 类型 | 必须 | 说明 |
---|---|---|---|
appid | String | 必填 | 合作伙伴AppId |
timestamp | String | 必填 | 当前时间戳 |
tb_seller_nick | String | 必填 | 拼多多账号, 非店铺名称 |
sign | String | 必填 | 如何计算生成见示例代码 |
goods_commit_id | LONG | 必填 | 提交申请的序列id |
goods_id | LONG | 必填 | 商品id |
2. 请求示例代码(Java)
@Test
public void PddGoodsCommitDetailGetRequest() 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_commit_id", "72948403362");
data.put("goods_id", "286996055566");
// 参数签名
data.put("sign", Utils.Sign(data, Config.AppSecret));
doHttpRequest(Config.PddGoodsCommitDetailGetRequestUrl, data);
}
3. 返回结果
返回结果如下 。
{
"code": 0,
"message": "ok",
"data": {
"bad_fruit_claim": null,
"buy_limit": 999999,
"carousel_gallery_list": ["https://img.pddpic.com/open-gw/2021-10-11/ffc9a1e35840c3cf7f7af66f56c004c1.jpeg"],
"cat_id": 17438,
"commit_message": "请重新上传第1张轮播图,注意图片应等宽高且宽高须超过480px.",
"cost_template_id": 163280639235619,
"country_id": 0,
"customer_num": 2,
"customs": "",
"deleted": 0,
"delivery_one_day": null,
"delivery_type": null,
"detail_gallery_list": ["https://img.pddpic.com/open-gw/2021-10-11/ffc9a1e35840c3cf7f7af66f56c004c1.jpeg"],
"elec_goods_attributes": null,
"end_production_date": null,
"fabric_content_id": null,
"fabric_id": null,
"goods_commit_id": 72948403362,
"goods_desc": "新包装,保证产品的口感和新鲜度。单颗独立小包装,双重营养,1斤家庭分享装,更实惠新疆一级骏枣夹核桃仁",
"goods_id": 286996055566,
"goods_name": "这是通过API发布的商品不要拍!",
"goods_pattern": 3,
"goods_property_list": [],
"goods_status": 3,
"goods_trade_attr": null,
"goods_travel_attr": null,
"goods_type": 1,
"hd_thumb_url": "",
"image_url": "",
"invoice_status": 0,
"is_customs": 0,
"is_folt": 1,
"is_group_pre_sale": 0,
"is_pre_sale": 0,
"is_refundable": 1,
"is_sku_pre_sale": null,
"lack_of_weight_claim": null,
"mai_jia_zi_ti": null,
"market_price": 2000,
"order_limit": 999999,
"origin_country_id": 0,
"out_source_goods_id": null,
"out_source_type": null,
"outer_goods_id": "",
"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": "16339477467080061",
"second_hand": 0,
"shang_men_an_zhuang": null,
"shelf_life": null,
"shipment_limit_second": 86400,
"size_spec_id": null,
"sku_list": [{
"is_onsale": 1,
"length": null,
"limit_quantity": 999999,
"multi_price": 1100,
"out_sku_sn": "",
"out_source_sku_id": null,
"oversea_sku": null,
"price": 1200,
"quantity": 20,
"reserve_quantity": 0,
"sku_id": 960627692438,
"sku_pre_sale_time": 0,
"sku_property_list": null,
"spec": [{
"parent_id": 1216,
"parent_name": "尺寸",
"spec_id": 765,
"spec_name": "小号"
}],
"thumb_url": "https://t16img.yangkeduo.com/garner-api/385531de9957fb1f3de0ce48956ee432.jpeg",
"weight": 0
}, {
"is_onsale": 1,
"length": null,
"limit_quantity": 999999,
"multi_price": 1200,
"out_sku_sn": "",
"out_source_sku_id": null,
"oversea_sku": null,
"price": 1300,
"quantity": 20,
"reserve_quantity": 0,
"sku_id": 960627692439,
"sku_pre_sale_time": 0,
"sku_property_list": null,
"spec": [{
"parent_id": 1216,
"parent_name": "尺寸",
"spec_id": 767,
"spec_name": "大号"
}],
"thumb_url": "https://t16img.yangkeduo.com/garner-api/70ec7360c13688309252f88a9ce49965.jpeg",
"weight": 0
}],
"sku_type": null,
"song_huo_an_zhuang": null,
"song_huo_ru_hu": null,
"start_production_date": null,
"thumb_url": "",
"tiny_name": "",
"video_gallery": [{
"file_id": null,
"video_url": null
}, {
"file_id": null,
"video_url": null
}],
"warehouse": "",
"warm_tips": "",
"zhi_huan_bu_xiu": 0
},
"trace_id": ""
}
说明: code为0表示成功,非0为失败,message会包含失败原因。 返回参数说明见拼多多文档
文档更新时间: 2023-03-14 17:02 作者:admin