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

taobao.miniapp.ext.delivery.sell.channel.configs.query (查询商家配置的信息)

查询商家配置的信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req SellerChannelQueryRequest 必须 入参
  • └ channel
  • String
  • 可选
  • 1
  • 渠道id

响应参数

名称 类型 示例值 描述
result MiniappResult 返回结果
  • └ successful
  • Boolean
  • true
  • true or false
  • └ err_type
  • Number
  • 1
  • 错误码
  • model
  • SellerChannelConfigDTO []
  • body
  • └ miniapp_id
  • Number
  • 3000000087133195
  • 小程序id
  • └ ext_properties
  • String
  • {}
  • 扩展参数
  • └ add_status
  • Number
  • 0
  • 是否添加到私域工作。0表示未添加,1表示添加
  • └ config_status
  • Number
  • 1
  • 是否已配置,1表示已配置,0表示未配置
  • └ channel
  • String
  • 1
  • 渠道id
  • └ error_msg
  • String
  • error
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappExtDeliverySellChannelConfigsQueryRequest req = new MiniappExtDeliverySellChannelConfigsQueryRequest();
MiniappExtDeliverySellChannelConfigsQueryRequest.SellerChannelQueryRequest obj1 = new MiniappExtDeliverySellChannelConfigsQueryRequest.SellerChannelQueryRequest();
obj1.setChannel("1");
req.setReq(obj1);
MiniappExtDeliverySellChannelConfigsQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_ext_delivery_sell_channel_configs_query_response>
    <result>
        <successful>true</successful>
        <err_type>1</err_type>
        <model>
            <seller_channel_config_d_t_o>
                <miniapp_id>3000000087133195</miniapp_id>
                <ext_properties>{}</ext_properties>
                <add_status>0</add_status>
                <config_status>1</config_status>
                <channel>1</channel>
            </seller_channel_config_d_t_o>
        </model>
        <error_msg>error</error_msg>
    </result>
</miniapp_ext_delivery_sell_channel_configs_query_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

返回
顶部