wdk.logistic.network.resource.group.query (查询网格仓-区块-自提点关系)

查询网格仓-区块-自提点关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_resource_group_page_query_request ResourceGroupPageQueryRequest 必须 入参
  • └ area_code
  • String
  • 可选
  • a001
  • 区块编码
  • └ from_org_resource_code
  • String
  • 可选
  • g001
  • 网格仓外部编码
  • └ from_resource_code
  • String
  • 可选
  • HMG001
  • 网格仓编码
  • └ from_resource_type
  • String
  • 可选
  • WAREHOUSE
  • from资源类型
  • └ group_resource_code_list
  • String []
  • 可选
  • ["P001]
  • 自提点编码
  • └ network_code
  • String
  • 可选
  • HMYX
  • 网络名称
  • └ page_index
  • Number
  • 可选
  • 1
  • 页码,1开始
  • └ page_size
  • Number
  • 可选
  • 50
  • 页面大小,上限50

响应参数

名称 类型 示例值 描述
result LogisticsResult - 出参
  • └ code
  • String
  • 错误编码
  • 错误编码
  • data
  • Pagination
  • 数据
  • 数据
  • results
  • ResourceGroupDTO []
  • 数据列表
  • 数据列表
  • └ area_code
  • String
  • 区块编码
  • 区块编码
  • └ area_name
  • String
  • xx区块
  • 区块名称
  • └ from_org_resource_code
  • String
  • G001
  • 网格仓外部编码
  • └ from_org_source
  • String
  • infrastructure
  • from资源来源
  • └ from_resource_code
  • String
  • HMG001
  • 网格仓编码
  • └ from_resource_name
  • String
  • xx网格仓
  • from资源名称
  • └ from_resource_type
  • String
  • warehouse
  • from资源类型
  • └ is_test
  • Number
  • 0
  • 是否测试
  • └ merchant_code
  • String
  • HM
  • 商家
  • └ network_code
  • String
  • HMYX
  • 网络编码
  • └ pickup_point_address
  • String
  • xx路xx号
  • 自提点地址
  • └ to_org_resource_code
  • String
  • p001
  • 自提点外部编码
  • └ to_org_source
  • String
  • infrastructure
  • 自提点来源
  • └ to_resource_code
  • String
  • HMP001
  • 自提点编码
  • └ to_resource_name
  • String
  • xx自提点
  • to资源编码(自提点)
  • └ to_resource_type
  • String
  • delivery
  • to资源类型
  • └ total
  • Number
  • 1200
  • 总数
  • └ message
  • String
  • 失败消息
  • 失败消息
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkLogisticNetworkResourceGroupQueryRequest req = new WdkLogisticNetworkResourceGroupQueryRequest();
WdkLogisticNetworkResourceGroupQueryRequest.ResourceGroupPageQueryRequest obj1 = new WdkLogisticNetworkResourceGroupQueryRequest.ResourceGroupPageQueryRequest();
obj1.setAreaCode("a001");
obj1.setFromOrgResourceCode("g001");
obj1.setFromResourceCode("HMG001");
obj1.setFromResourceType("WAREHOUSE");
obj1.setGroupResourceCodeList(""P001");
obj1.setNetworkCode("HMYX");
obj1.setPageIndex(1L);
obj1.setPageSize(50L);
req.setParamResourceGroupPageQueryRequest(obj1);
WdkLogisticNetworkResourceGroupQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_logistic_network_resource_group_query_response>
    <result>
        <code>错误编码</code>
        <data>
            <results>
                <resource_group_d_t_o>
                    <area_code>区块编码</area_code>
                    <area_name>xx区块</area_name>
                    <from_org_resource_code>G001</from_org_resource_code>
                    <from_org_source>infrastructure</from_org_source>
                    <from_resource_code>HMG001</from_resource_code>
                    <from_resource_name>xx网格仓</from_resource_name>
                    <from_resource_type>warehouse</from_resource_type>
                    <is_test>0</is_test>
                    <merchant_code>HM</merchant_code>
                    <network_code>HMYX</network_code>
                    <pickup_point_address>xx路xx号</pickup_point_address>
                    <to_org_resource_code>p001</to_org_resource_code>
                    <to_org_source>infrastructure</to_org_source>
                    <to_resource_code>HMP001</to_resource_code>
                    <to_resource_name>xx自提点</to_resource_name>
                    <to_resource_type>delivery</to_resource_type>
                </resource_group_d_t_o>
            </results>
            <total>1200</total>
        </data>
        <message>失败消息</message>
        <success>true</success>
    </result>
</wdk_logistic_network_resource_group_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

返回
顶部