文档中心 > API类目 > 五道口API

alibaba.tc.compass.warehousenetwork.query (按仓维度来查询鸟潮网络)

按仓维度来查询鸟潮网络

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouse_merchant_code String 可选 DARUNFA 仓商家编码
warehouse_code String 可选 DRF1001 仓编码
service_type String 可选 WAVE_ARRIVE WAVE_ARRIVE-波次达。ONE_HOUR-小时达

响应参数

名称 类型 示例值 描述
result TopApiResult 返回结果
  • data
  • WarehouseNetworkResultDTO
  • 数据
  • └ service_type
  • String
  • WAVE_ARRIVE
  • 网络类型 WAVE_ARRIVE-波次达。ONE_HOUR-小时达
  • └ warehouse_merchant_code
  • String
  • DARUNFA
  • 仓商家
  • network_route_dto_list
  • NetworkRouteDTO []
  • 线路信息
  • └ route_id
  • String
  • route10001
  • 线路ID
  • nodes
  • LogisticsNodeFullInfo []
  • 节点信息
  • └ node_name
  • String
  • 北京仓1号库
  • 节点名称
  • └ merchant_code
  • String
  • NIAOCHAO
  • 节点商家编码
  • └ prov_name
  • String
  • 省份名称
  • 浙江省
  • └ address
  • String
  • 详细地址
  • 西集镇任郎路与供杜路交叉口西北200米
  • └ node_code
  • String
  • WPEK001
  • 节点编码
  • └ city_id
  • String
  • 城市id
  • 110100
  • └ poi
  • String
  • 111,111
  • 经纬度
  • └ node_type
  • Number
  • 3
  • /** * 仓 */ WAREHOUSE(1, "仓"), /** * 揽运站 */ COLLECT_DOCK(2, "揽运站"), /** * 配送站 */ DELIVERY_DOCK(3, "配送站"), /** * 近端履约中心 */ CFC(4, "近端履约中心"), ;
  • └ area_id
  • String
  • 110112
  • 区域ID
  • └ city_name
  • String
  • 杭州市
  • 城市名称
  • └ area_name
  • String
  • 余杭区
  • 区域名称
  • └ prov_id
  • String
  • 11
  • 省份id
  • └ warehouse_code
  • String
  • 11
  • 仓编码
  • └ success
  • Boolean
  • true
  • 请求成功或失败
  • └ error_code
  • String
  • PARAM_NOT_NULL
  • 错误码
  • └ error_msg
  • String
  • 必要参数为空
  • 错误详情

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcCompassWarehousenetworkQueryRequest req = new AlibabaTcCompassWarehousenetworkQueryRequest();
req.setWarehouseMerchantCode("DARUNFA");
req.setWarehouseCode("DRF1001");
req.setServiceType("WAVE_ARRIVE");
AlibabaTcCompassWarehousenetworkQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tc_compass_warehousenetwork_query_response>
    <result>
        <data>
            <service_type>WAVE_ARRIVE</service_type>
            <warehouse_merchant_code>DARUNFA</warehouse_merchant_code>
            <network_route_dto_list>
                <network_route_d_t_o>
                    <route_id>route10001</route_id>
                    <nodes>
                        <logistics_node_full_info>
                            <node_name>北京仓1号库</node_name>
                            <merchant_code>NIAOCHAO</merchant_code>
                            <prov_name>省份名称</prov_name>
                            <address>详细地址</address>
                            <node_code>WPEK001</node_code>
                            <city_id>城市id</city_id>
                            <poi>111,111</poi>
                            <node_type>3</node_type>
                            <area_id>110112</area_id>
                            <city_name>杭州市</city_name>
                            <area_name>余杭区</area_name>
                            <prov_id>11</prov_id>
                        </logistics_node_full_info>
                    </nodes>
                </network_route_d_t_o>
            </network_route_dto_list>
            <warehouse_code>11</warehouse_code>
        </data>
        <success>true</success>
        <error_code>PARAM_NOT_NULL</error_code>
        <error_msg>必要参数为空</error_msg>
    </result>
</alibaba_tc_compass_warehousenetwork_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

返回
顶部