wdk.logistic.network.warehouse.delivery.relation.query (仓站(网格仓自提点)关系查询)

盒马集市,仓站(网格仓自提点)关系查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_warehouse_delivery_relation_page_query_request WarehouseDeliveryRelationPageQueryRequest 必须 参数
  • └ from_org_resource_code
  • String
  • 可选
  • YX0001
  • 网格仓外部编码 和fromResourceCode 2选1
  • └ from_org_resource_code_list
  • String []
  • 可选
  • ["YX001"]
  • 网格仓外部编码列表
  • └ from_resource_code
  • String
  • 可选
  • HM001
  • 网格仓资源编码 和fromOrgResourceCode 2选1
  • └ from_resource_code_list
  • String []
  • 可选
  • ["HM001"]
  • 网格仓资源编码列表
  • └ from_resource_type
  • String
  • 可选
  • WAREHOUSE
  • 仓资源类型
  • └ network_code
  • String
  • 可选
  • HMYX
  • 网络编码
  • └ page_index
  • Number
  • 可选
  • 1
  • 页码
  • └ page_size
  • Number
  • 可选
  • 50
  • 分页大小,最大300
  • └ show_total
  • Number
  • 可选
  • 1
  • 是否返回汇总数
  • └ to_org_resource_code
  • String
  • 可选
  • GW001
  • 自提点编码 和toResourceCode 2选1
  • └ to_resource_code
  • String
  • 可选
  • GW001
  • 自提点编码 和toOrgResourceCode 2选1
  • └ to_resource_code_list
  • String []
  • 可选
  • []
  • 自提点列表
  • └ to_resource_type
  • String
  • 可选
  • DELIVERY
  • 自提点资源类型
  • └ start_gmt_modified
  • Date
  • 可选
  • 2021-02-21 00:00:00
  • 开始时间
  • └ end_gmt_modified
  • Date
  • 可选
  • 2020-02-21 00:00:00
  • 结束时间

响应参数

名称 类型 示例值 描述
result LogisticsResult {} 参数
  • └ code
  • String
  • 错误码
  • 错误码
  • data
  • Pagination
  • {}
  • 返回数据
  • results
  • WarehouseDeliveryRelationDto []
  • []
  • 数据列表
  • └ data_version
  • Number
  • 1234
  • 数据版本号
  • └ from_org_resource_code
  • String
  • WG001
  • 网格仓外部编码
  • └ from_org_source
  • String
  • INFRASTRUCTURE
  • from资源来源
  • └ from_resource_code
  • String
  • WG001
  • 网格仓编码
  • └ from_resource_name
  • String
  • 网格仓1
  • 网格仓名称
  • └ from_resource_type
  • String
  • WAREHOUSE
  • from资源类型
  • └ id
  • Number
  • 1
  • ID
  • └ merchant_code
  • String
  • HM
  • 商家
  • └ network_code
  • String
  • HMYX
  • 网络编码
  • └ relation_type
  • String
  • LOGISTICS
  • 关系类型
  • └ to_org_resource_code
  • String
  • PS001
  • 自提点外部编码
  • └ to_org_source
  • String
  • INFRASTRUCTURE
  • 资源来源
  • └ to_resource_code
  • String
  • hmp001
  • 自提点编码
  • └ to_resource_name
  • String
  • xxx自提点
  • 自提点名称
  • └ to_resource_type
  • String
  • DELIVERY
  • to资源类型
  • └ total
  • Number
  • 120
  • 总数
  • └ message
  • String
  • 异常消息
  • 异常消息
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkLogisticNetworkWarehouseDeliveryRelationQueryRequest req = new WdkLogisticNetworkWarehouseDeliveryRelationQueryRequest();
WdkLogisticNetworkWarehouseDeliveryRelationQueryRequest.WarehouseDeliveryRelationPageQueryRequest obj1 = new WdkLogisticNetworkWarehouseDeliveryRelationQueryRequest.WarehouseDeliveryRelationPageQueryRequest();
obj1.setFromOrgResourceCode("YX0001");
obj1.setFromOrgResourceCodeList(""YX001"");
obj1.setFromResourceCode("HM001");
obj1.setFromResourceCodeList(""HM001"");
obj1.setFromResourceType("WAREHOUSE");
obj1.setNetworkCode("HMYX");
obj1.setPageIndex(1L);
obj1.setPageSize(50L);
obj1.setShowTotal(1L);
obj1.setToOrgResourceCode("GW001");
obj1.setToResourceCode("GW001");
obj1.setToResourceCodeList("");
obj1.setToResourceType("DELIVERY");
obj1.setStartGmtModified(StringUtils.parseDateTime("2021-02-21 00:00:00"));
obj1.setEndGmtModified(StringUtils.parseDateTime("2020-02-21 00:00:00"));
req.setParamWarehouseDeliveryRelationPageQueryRequest(obj1);
WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_logistic_network_warehouse_delivery_relation_query_response>
    <result>
        <code>错误码</code>
        <data>
            <results>
                <warehouse_delivery_relation_dto>
                    <data_version>1234</data_version>
                    <from_org_resource_code>WG001</from_org_resource_code>
                    <from_org_source>INFRASTRUCTURE</from_org_source>
                    <from_resource_code>WG001</from_resource_code>
                    <from_resource_name>网格仓1</from_resource_name>
                    <from_resource_type>WAREHOUSE</from_resource_type>
                    <id>1</id>
                    <merchant_code>HM</merchant_code>
                    <network_code>HMYX</network_code>
                    <relation_type>LOGISTICS</relation_type>
                    <to_org_resource_code>PS001</to_org_resource_code>
                    <to_org_source>INFRASTRUCTURE</to_org_source>
                    <to_resource_code>hmp001</to_resource_code>
                    <to_resource_name>xxx自提点</to_resource_name>
                    <to_resource_type>DELIVERY</to_resource_type>
                </warehouse_delivery_relation_dto>
            </results>
            <total>120</total>
        </data>
        <message>异常消息</message>
        <success>true</success>
    </result>
</wdk_logistic_network_warehouse_delivery_relation_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

返回
顶部