文档中心 > API类目 > 全球速卖通-物流管理

cainiao.global.solution.service.resource.query (查询解决方案服务资源列表)

返回直接解决方案的指定物流服务的可用资源列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
locale String 可选 ru_RU
  • 默认值:en_US
  • 多语言信息
    solution_service_res_param QuerySolutionServiceResParam 必须 查询参数
    • └ solution_code
    • String
    • 可选
    • CAINIAO_STANDARD
    • 解决方案code
    • service_param
    • ServiceParam
    • 必须
    • 服务参数
    • └ code
    • String
    • 必须
    • DOOR_PICKUP
    • DOOR_PICKUP:揽收仓资源、SELF_SEND:自送dropOff
    sender_param OpenSenderParam 可选 发件信息
    • └ seller_address_id
    • Number
    • 可选
    • 123
    • 商家后台维护的揽收地址ID

    响应参数

    名称 类型 示例值 描述
    result GlspResponse 请求结果
    • └ is_success
    • Boolean
    • true
    • 查询是否成功
    • error_info
    • ErrorInfo
    • 错误信息
    • └ error_code
    • String
    • P-088-0000-00-99-000
    • 异常码
    • └ error_msg
    • String
    • 系统异常
    • 错误描述
    • result
    • SolutionServiceResQueryResponse
    • 请求结果
    • solution_service_res_list
    • SolutionServiceResDto []
    • 物流服务资源列表
    • └ solution_code
    • String
    • CAINIAO_STANDARD
    • 解决方案编码
    • features
    • Features
    • 扩展字段
    • └ appointment_process
    • String
    • 打电话给揽收仓
    • 预约流程
    • └ need_appointment
    • Boolean
    • false
    • 是否需要预约
    • └ pickup_work_time
    • String
    • 8:00 - 12:00
    • 揽收时间
    • └ priority
    • String
    • 12
    • 优先级
    • └ contact_name
    • String
    • 张三
    • 联系人名称
    • └ contact_telephone
    • String
    • 123828942
    • 联系人电话
    • └ work_time_tips
    • String
    • 8:00 - 12:00
    • 工作时间
    • └ division
    • String
    • 123
    • 地址对应的divisionId
    • └ address
    • String
    • 浙江省杭州市
    • 地址
    • └ name
    • String
    • CSE莫斯科City揽收仓
    • 资源名称
    • └ code
    • String
    • TRAN_STORE_30228411
    • 资源编码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CainiaoGlobalSolutionServiceResourceQueryRequest req = new CainiaoGlobalSolutionServiceResourceQueryRequest();
    req.setLocale("ru_RU");
    CainiaoGlobalSolutionServiceResourceQueryRequest.QuerySolutionServiceResParam obj1 = new CainiaoGlobalSolutionServiceResourceQueryRequest.QuerySolutionServiceResParam();
    obj1.setSolutionCode("CAINIAO_STANDARD");
    CainiaoGlobalSolutionServiceResourceQueryRequest.ServiceParam obj2 = new CainiaoGlobalSolutionServiceResourceQueryRequest.ServiceParam();
    obj2.setCode("DOOR_PICKUP");
    obj1.setServiceParam(obj2);
    req.setSolutionServiceResParam(obj1);
    CainiaoGlobalSolutionServiceResourceQueryRequest.OpenSenderParam obj3 = new CainiaoGlobalSolutionServiceResourceQueryRequest.OpenSenderParam();
    obj3.setSellerAddressId(123L);
    req.setSenderParam(obj3);
    CainiaoGlobalSolutionServiceResourceQueryResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <cainiao_global_solution_service_resource_query_response>
        <result>
            <is_success>true</is_success>
            <error_info>
                <error_code>P-088-0000-00-99-000</error_code>
                <error_msg>系统异常</error_msg>
            </error_info>
            <result>
                <solution_service_res_list>
                    <solution_service_res_dto>
                        <solution_code>CAINIAO_STANDARD</solution_code>
                        <features>
                            <appointment_process>打电话给揽收仓</appointment_process>
                            <need_appointment>false</need_appointment>
                            <pickup_work_time>8:00 - 12:00</pickup_work_time>
                        </features>
                        <priority>12</priority>
                        <contact_name>张三</contact_name>
                        <contact_telephone>123828942</contact_telephone>
                        <work_time_tips>8:00 - 12:00</work_time_tips>
                        <division>123</division>
                        <address>浙江省杭州市</address>
                        <name>CSE莫斯科City揽收仓</name>
                        <code>TRAN_STORE_30228411</code>
                    </solution_service_res_dto>
                </solution_service_res_list>
            </result>
        </result>
    </cainiao_global_solution_service_resource_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

    返回
    顶部