上架商品

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

请求URL:

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

公共参数

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

业务参数

参数名称 参数类型 是否必须 示例值 参数描述
product_id - 3658097271523938018 商品id

2. 请求示例代码(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("sign", Sign(data,Config.AppSecret));
        // 调用服务API
        String resp = doHttpRequest(Config.DDProductLaunchProduct, data);
        System.out.println(resp);
    }

3. 返回结果如下:


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

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

文档更新时间: 2024-05-21 16:59   作者:JSL