文档中心 > API类目 > 闲鱼电商SAAS

alibaba.idle.logistics.auth.companies.query (同城三方服务物流公司查询)

同城三方服务物流公司查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result Result 返回
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ err_code
  • String
  • error
  • 错误编码
  • module
  • LogisticsRespResult
  • 数据
  • company_list
  • LogisticsDTO []
  • 全部列表
  • └ code
  • String
  • STO
  • 快递公司代码
  • └ name
  • String
  • 申通
  • 快递公司名称
  • └ id
  • Number
  • 100
  • 快递公司id
  • hot_company_list
  • LogisticsDTO []
  • 热门列表
  • └ code
  • String
  • STO
  • 快递公司代码
  • └ name
  • String
  • 申通
  • 快递公司名称
  • └ id
  • Number
  • 100
  • 快递公司id
  • └ total
  • Number
  • 186
  • 总数
  • └ err_msg
  • String
  • 入参不合法
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleLogisticsAuthCompaniesQueryRequest req = new AlibabaIdleLogisticsAuthCompaniesQueryRequest();
AlibabaIdleLogisticsAuthCompaniesQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_logistics_auth_companies_query_response>
    <result>
        <success>true</success>
        <err_code>error</err_code>
        <module>
            <company_list>
                <logistics_d_t_o>
                    <code>STO</code>
                    <name>申通</name>
                    <id>100</id>
                </logistics_d_t_o>
            </company_list>
            <hot_company_list>
                <logistics_d_t_o>
                    <code>STO</code>
                    <name>申通</name>
                    <id>100</id>
                </logistics_d_t_o>
            </hot_company_list>
            <total>186</total>
        </module>
        <err_msg>入参不合法</err_msg>
    </result>
</alibaba_idle_logistics_auth_companies_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

返回
顶部