该合作企业伙伴(商家)批量操作下单前可以看到的预览信息,通过展示下单时的预览信息及营销内容提升寄件转化率。 本接口会展示下单预估价格及各种明细费用,本次预估总价以total_actual_price为准
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_owner_identity_id | String | 必须 | 12345 | 实际下单人身份ID | |
order_owner_mobile | String | 可选 | 13355556666 | 实际下单人手机号 | |
param_list | GuoGuoPackageInfo [] | 必须 |
|
包裹信息,最多传30个 | |
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TdOpenServiceResult | {} | 返回对象 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); CainiaoPickupBusinessPlatformPreorderviewGetRequest req = new CainiaoPickupBusinessPlatformPreorderviewGetRequest(); req.setOrderOwnerIdentityId("12345"); req.setOrderOwnerMobile("13355556666"); List<CainiaoPickupBusinessPlatformPreorderviewGetRequest.GuoGuoPackageInfo> list2 = new ArrayList<CainiaoPickupBusinessPlatformPreorderviewGetRequest.GuoGuoPackageInfo>(); CainiaoPickupBusinessPlatformPreorderviewGetRequest.GuoGuoPackageInfo obj3 = new CainiaoPickupBusinessPlatformPreorderviewGetRequest.GuoGuoPackageInfo(); list2.add(obj3); obj3.setItemId("3000000083"); obj3.setItemTitle("测试寄件"); obj3.setPackageId("taobao_order_123"); CainiaoPickupBusinessPlatformPreorderviewGetRequest.BusinessCustomer obj5 = new CainiaoPickupBusinessPlatformPreorderviewGetRequest.BusinessCustomer(); obj5.setAreaId("330100"); obj5.setFullAddressDetail("浙江省杭州市西湖区文一西路西溪首座小邮局"); obj5.setName("张三"); obj5.setMobile("13377778888"); list4.setReceiver(obj5); CainiaoPickupBusinessPlatformPreorderviewGetRequest.BusinessCustomer obj7 = new CainiaoPickupBusinessPlatformPreorderviewGetRequest.BusinessCustomer(); obj7.setAreaId("330100"); obj7.setFullAddressDetail("浙江省杭州市西湖区文一西路西溪首座小邮局"); obj7.setName("张三"); obj7.setMobile("13377778888"); list6.setSender(obj7); obj3.setWeight(1000L); req.setParamList(list2); CainiaoPickupBusinessPlatformPreorderviewGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<cainiao_pickup_business_platform_preorderview_get_response> <result> <data> <batch_discount_fee>100</batch_discount_fee> <coupon_discount_type>NONE</coupon_discount_type> <coupon_price>1000</coupon_price> <estimation_weight_desc>描述信息</estimation_weight_desc> <order_ads_desc> <display_info>本订单优惠100元</display_info> <high_lights> <string>优惠100元</string> </high_lights> <href_desc>点击查看XXX</href_desc> <link_url>http://xxx</link_url> <select_type>Default</select_type> </order_ads_desc> <order_benefit_desc_list> <order_benefit_item> <key>CompensationForLate</key> <name>晚揽必赔</name> <desc>千元内免保价</desc> <ori_price>10元/票</ori_price> <current_price>1元/票、赠送</current_price> <show_condition>AlwaysShow</show_condition> <use_condition>NoCondition</use_condition> <select_type>Default</select_type> <tooltip>提示</tooltip> </order_benefit_item> </order_benefit_desc_list> <order_preview_desc> <display_info>本订单优惠100元</display_info> <high_lights> <string>优惠100元</string> </high_lights> <href_desc>点击查看XXX</href_desc> <link_url>http://xxx</link_url> </order_preview_desc> <pre_order_info_list> <guo_guo_pre_order_info> <can_service>false</can_service> <coupon_price>200</coupon_price> <estimate_actual_price>1000</estimate_actual_price> <estimate_delivery_info> <courier_info> <courier_type>GUOGUO</courier_type> <cp_code>cainiaoguoguo</cp_code> <cp_name>菜鸟裹裹</cp_name> <name>张三</name> <phone_number>13388889999</phone_number> </courier_info> <cp_code>shunfeng</cp_code> <cp_name>顺丰</cp_name> <estimate_got_end_time>2020-04-30 12:00:00</estimate_got_end_time> <estimate_got_start_time>2020-04-30 12:00:00</estimate_got_start_time> <got_time>2020-04-30 12:00:00</got_time> </estimate_delivery_info> <estimate_origin_price>1200</estimate_origin_price> <item_id>3000000083</item_id> <item_title>测试寄件</item_title> <no_service_reason>当前区域无服务</no_service_reason> <package_id>67893874673892</package_id> <package_info> <amount>1000</amount> <goods_name>大衣</goods_name> <goods_type>衣服</goods_type> <package_id>123</package_id> <package_weight>100</package_weight> <remark>备注</remark> </package_info> <receiver> <area_id>330100</area_id> <city_id>21</city_id> <district_id>12</district_id> <full_address_detail>浙江省杭州市西湖区文一西路西溪首座小邮局</full_address_detail> <name>张三</name> </receiver> <sender> <area_id>330100</area_id> <city_id>21</city_id> <district_id>12</district_id> <full_address_detail>浙江省杭州市西湖区文一西路西溪首座小邮局</full_address_detail> <name>李四</name> </sender> <weight>1000</weight> </guo_guo_pre_order_info> </pre_order_info_list> <promotion_infos> <promotioninfos> <promotion_copy>下单立减</promotion_copy> <promotion_price>350</promotion_price> <promotion_type>0</promotion_type> </promotioninfos> </promotion_infos> <sender_address_desc>浙江省杭州市西湖区文一西路西溪首座小邮局</sender_address_desc> <total_actual_price>2000</total_actual_price> <total_origin_price>3000</total_origin_price> <external_order_fees> <external_order_fee> <fee_desc>一单加价</fee_desc> <fee_price>100</fee_price> <fee_status>Removed</fee_status> <fee_status_reason>VIP专享:免收权益</fee_status_reason> <suggest_display_info> <tooltip>提示</tooltip> <link_type>资源地址的类型</link_type> <link_url>http://xxx</link_url> <href_desc>点击查看xxx</href_desc> <high_lights> <string>优惠100元</string> </high_lights> <display_info>本订单优惠100元</display_info> </suggest_display_info> <suggest_display_info_for_mobile> <display_info>本订单优惠100元</display_info> <high_lights> <string>优惠100元</string> </high_lights> <href_desc>点击查看xxx</href_desc> <link_url>http://xxx</link_url> <link_type>资源地址的类型</link_type> <tooltip>提示</tooltip> </suggest_display_info_for_mobile> </external_order_fee> </external_order_fees> <benefit_name>次卡</benefit_name> <benefit_desc>您有1张寄件卡,剩余12次,寄件揽收后符合条件可使用!</benefit_desc> <price_tag>裹裹价</price_tag> </data> <retry>false</retry> <status_code>SYS_ERROIR</status_code> <status_message>系统错误</status_message> <success>true</success> </result> </cainiao_pickup_business_platform_preorderview_get_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|