跳转到内容
返回官网

添加分销店铺(买家)

添加分销店铺(买家)。

一、请求参数

请求URL:

POST https://open.fw199.com/gateway/1688/fenxiao/buyer/outshop/add

基础参数

参数名类型必须示例值说明
appidStringtrue32432143214214合作伙伴AppId
timestampStringtrue1633618722当前时间戳
seller_nickStringtrueb2b-16249611221688账号
signStringtrue999de41d862efaa6f1084ead3b3ba480如何计算生成见示例代码

业务参数

名称类型是否必须描述示例值
outShopCodeString下游分销店铺编号345677,举例:淘宝平台,传用户授权工具的下游user id(注意:别传任何字符、标点符号)
channelString下游渠道代码淘宝-thyny,天猫-tm,淘特-taote,阿里巴巴C2M-c2m,京东-jingdong,拼多多-pinduoduo,微信-weixin,跨境-kuajing,快手-kuaishou,有赞-youzan,抖音-douyin,寺库-siku,美团团好货-meituan,小红书-xiaohongshu,当当-dangdang,苏宁-suning,大V店-davdian,行云-xingyun,蜜芽-miya,菠萝派商城-boluo,快团团-kuaituantuan,其他-other
shopNameString下游渠道店铺名称举例:淘宝平台,传“超级工厂店”(即店铺名称,注意:别传任何字符、标点符号)
avatarString下游店铺的头像base64编码,请保证大小在2M内SFFGGHGJJJJHJJGFFGG
authStartTimeLong必传,暂不强制校验。下游appkey可铺货的开始时间(毫秒字符串)-
authEndTimeLong必传,暂不强制校验。下游appkey 可铺货的截止时间时间(毫秒字符串)-
outShopCompanyString当识别到用户为1个或多个1688采购账号,请回传用户的公司名称可自定义(例如:1688采购ID 或 1688关联认证公司 或 自定义名称),注意:信息要求严肃性-

二、请求示例代码

Java

@Test
public void One688FenXiaoBuyerShopAdd() throws Exception {
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("seller_nick", Config.AlibabaFenXiaoSellerNick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("outShopCode", "661153176");
data.put("channel", "thyny");
data.put("sign", Utils.Sign(data, Config.AppSecret));
// 调用服务API
String response = doHttpRequest(Config.One688FenXiaoBuyerShopAddUrl, data);
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": {
"data": "true",
"errorCode": "0",
"success": true
},
"trace_id": ""
}

说明: code为0表示成功,非0为失败,message会包含失败原因。 业务上是否成功,以data内的success为准 。