上架商品
一、请求参数
上架店铺商品并提交审核,审核通过商品状态为售卖中,仅限抖店电商店铺使用。如需放入仓库中可调用【/product/setOffline】
请求URL:
公共参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| appid | String | 是 | 合作伙伴AppId | |
| timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
| seller_nick | String | 是 | 38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
| sign | String | 是 |
业务参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| 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