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

cainiao.global.solution.inquiry (解决方案询盘)

根据交易单号查询可用的解决方案

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
locale String 可选 ru_RU
  • 默认值:zh_CN
  • 多语言,zh_CN中文、en_US:英文、ru_RU俄语
    trade_order_param OpenTradeOrderParam 必须 交易单参数
    • └ trade_order_id
    • Number
    • 必须
    • 129342
    • 交易单ID
    package_params OpenPackageParam [] 可选
  • 最大列表长度:999
  • 包裹参数
    • └ length
    • Number
    • 可选
    • 1
    • 包裹长度,单位毫米
    • └ width
    • Number
    • 可选
    • 1
    • 包裹宽度,单位毫米
    • └ height
    • Number
    • 可选
    • 1
    • 包裹高度,单位毫米
    • └ weight
    • Number
    • 可选
    • 1
    • 包裹重量,单位克

    响应参数

    名称 类型 示例值 描述
    is_success Boolean true 是否成功
    error_info ErrorInfo 错误信息
    • └ error_code
    • String
    • P-015-1602-00-15-011
    • 错误码
    • └ error_msg
    • String
    • 交易单不存在
    • 错误信息
    result OpenSolutionInquiryResponse 请求结果
    • usable_solution_list
    • OpenSolutionDto []
    • 可用的解决方案列表
    • └ code
    • String
    • AE_RU_MP_PUDO_PH3
    • 解决方案code
    • └ name
    • String
    • 俄罗斯邮政
    • 解决方案名称
    • timing_list
    • OpenTimingDto []
    • 时效信息
    • └ display_text
    • String
    • 预计10-15个工作日送达
    • 展示文案
    • └ slowest_timing
    • Number
    • 15
    • 最慢时效
    • └ fast_timing
    • Number
    • 10
    • 最快时效
    • └ timing_type
    • String
    • ESTIMATE
    • 时效类型,ESTIMATE:预估时效,PROMISE:承诺时效
    • fee_list
    • OpenFeeDto []
    • 费用列表
    • fee_detail_list
    • OpenFeeDetailDto []
    • 费用详细列表
    • └ paid_fee
    • Number
    • 232
    • 已支付费用
    • └ paid_fee_currency
    • String
    • RUB
    • 已支付费用币种
    • └ fee
    • Number
    • 12
    • 应支付费用
    • └ fee_currency
    • String
    • RUB
    • 应支付费用币种
    • └ fee_detail_type
    • String
    • normal_delivery_fee
    • 详细费用类型,normal_delivery_fee:配送费,sms_service_fee
    • └ total_fee
    • Number
    • 12
    • 总费用
    • └ currency
    • String
    • CNY
    • 币种
    • └ fee_type
    • String
    • POST_ESTIMATED_COST
    • 费用类型,POST_ESTIMATED_COST:预估费用
    • └ recommend_index
    • Number
    • 100
    • 推荐指数

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CainiaoGlobalSolutionInquiryRequest req = new CainiaoGlobalSolutionInquiryRequest();
    req.setLocale("ru_RU");
    CainiaoGlobalSolutionInquiryRequest.OpenTradeOrderParam obj1 = new CainiaoGlobalSolutionInquiryRequest.OpenTradeOrderParam();
    obj1.setTradeOrderId(129342L);
    req.setTradeOrderParam(obj1);
    List<CainiaoGlobalSolutionInquiryRequest.OpenPackageParam> list3 = new ArrayList<CainiaoGlobalSolutionInquiryRequest.OpenPackageParam>();
    CainiaoGlobalSolutionInquiryRequest.OpenPackageParam obj4 = new CainiaoGlobalSolutionInquiryRequest.OpenPackageParam();
    list3.add(obj4);
    obj4.setLength(1L);
    obj4.setWidth(1L);
    obj4.setHeight(1L);
    obj4.setWeight(1L);
    req.setPackageParams(list3);
    CainiaoGlobalSolutionInquiryResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <cainiao_global_solution_inquiry_response>
        <is_success>true</is_success>
        <error_info>
            <error_code>P-015-1602-00-15-011</error_code>
            <error_msg>交易单不存在</error_msg>
        </error_info>
        <result>
            <usable_solution_list>
                <open_solution_dto>
                    <code>AE_RU_MP_PUDO_PH3</code>
                    <name>俄罗斯邮政</name>
                    <timing_list>
                        <open_timing_dto>
                            <display_text>预计10-15个工作日送达</display_text>
                            <slowest_timing>15</slowest_timing>
                            <fast_timing>10</fast_timing>
                            <timing_type>ESTIMATE</timing_type>
                        </open_timing_dto>
                    </timing_list>
                    <fee_list>
                        <open_fee_dto>
                            <fee_detail_list>
                                <open_fee_detail_dto>
                                    <paid_fee>232</paid_fee>
                                    <paid_fee_currency>RUB</paid_fee_currency>
                                    <fee>12</fee>
                                    <fee_currency>RUB</fee_currency>
                                    <fee_detail_type>normal_delivery_fee</fee_detail_type>
                                </open_fee_detail_dto>
                            </fee_detail_list>
                            <total_fee>12</total_fee>
                            <currency>CNY</currency>
                            <fee_type>POST_ESTIMATED_COST</fee_type>
                        </open_fee_dto>
                    </fee_list>
                    <recommend_index>100</recommend_index>
                </open_solution_dto>
            </usable_solution_list>
        </result>
    </cainiao_global_solution_inquiry_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

    返回
    顶部