文档中心 > API类目 > 淘宝小程序API

taobao.miniapp.ext.delivery.sell.channel.config.sync (写入商家配置信息)

写入商家配置信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
seller_channel_config SellerChannelConfigDTO 必须 入参
  • └ miniapp_id
  • Number
  • 必须
  • 300000000234234
  • 节点小程序id
  • └ ext_properties
  • String
  • 可选
  • {}
  • 扩展属性
  • └ channel
  • String
  • 必须
  • 1
  • 渠道id:1-微信;2-抖音;3-今日头条;4-快手;5-百度;6-其他
  • └ config_status
  • Number
  • 可选
  • 0
  • 0表示未配置,1表示已配置

响应参数

名称 类型 示例值 描述
successful Boolean true true or false
error_type Number 1 错误码
model Boolean true 操作结果
error_msg String error 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappExtDeliverySellChannelConfigSyncRequest req = new MiniappExtDeliverySellChannelConfigSyncRequest();
MiniappExtDeliverySellChannelConfigSyncRequest.SellerChannelConfigDTO obj1 = new MiniappExtDeliverySellChannelConfigSyncRequest.SellerChannelConfigDTO();
obj1.setMiniappId(300000000234234L);
obj1.setExtProperties("{}");
obj1.setChannel("1");
obj1.setConfigStatus(0L);
req.setSellerChannelConfig(obj1);
MiniappExtDeliverySellChannelConfigSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_ext_delivery_sell_channel_config_sync_response>
    <successful>true</successful>
    <error_type>1</error_type>
    <model>true</model>
    <error_msg>error</error_msg>
</miniapp_ext_delivery_sell_channel_config_sync_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部