跳转到内容
返回官网

类目商品发布规则查询接口

通过叶子类目id获取该类目的发布规则,目前返回标品、商品服务、属性等规则。

一、请求参数

请求URL:

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

参数名类型必须说明
appidString必填合作伙伴AppId
timestampString必填当前时间戳
tb_seller_nickString必填拼多多账号, 非店铺名称
signString必填如何计算生成见示例代码
cat_idLONG必填类目id
goods_idLONG必填商品id,编辑的时候需要传被编辑的商品id,发布商品时如果已有商品id也需要传。如果没有,则传0

二、请求示例代码

Java

@Test
public void PddGoodsCatRuleGetRequest() 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);
data.put("cat_id", "18056");
// data.put("goods_id", "0");
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
// 参数签名
data.put("sign", Utils.Sign(data,Config.AppSecret));
doHttpRequest(Config.PddGoodsCatRuleGetRequestUrl,data);
}

三、返回结果

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

返回结果及字段说明见: https://open.pinduoduo.com/application/document/api?id=pdd.goods.cat.rule.get