跳转到内容
返回官网

上架商品

一、请求参数

上架店铺商品并提交审核,审核通过商品状态为售卖中,仅限抖店电商店铺使用。如需放入仓库中可调用【/product/setOffline】

请求URL:

POST https://kf.fw199.com/gateway/dd/product/launchproduct

公共参数

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

业务参数

参数名称参数类型是否必须示例值参数描述
product_id-3658097271523938018商品id
sysid-12345咨询客服

二、请求示例代码

Java

请求示例代码

@Test
public void DDProductLaunchproduct() throws Exception {
Map<String, Object> data = new HashMap<String, Object>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", Config.DDSellerNick);
data.put("product_id","3684948274437030273" );
data.put("sysid","xx" );
data.put("sign", Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.DDProductLaunchProduct, data);
System.out.println(resp);
}

三、返回结果

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

说明: code为0表示成功,非0为失败,message会包含失败原因。返回字段说明见文档 https://op.jinritemai.com/docs/api-docs/14/5980