商家对包裹货值进行投保,预估算包裹保费费率
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
trade_order_id | Number | 可选 | 400345345345 | 交易单ID | |
insurance_coverage | Number | 可选 | 4500 | 保额,单位:美金(分) | |
solution_code | String | 可选 | CAINIAO_STANDARD | 解决方案Code |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | GlspResponse | 返回体 | |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressLogisticsValueaddedInsuranceEstimateRequest req = new AliexpressLogisticsValueaddedInsuranceEstimateRequest(); req.setTradeOrderId(400345345345L); req.setInsuranceCoverage(4500L); req.setSolutionCode( "CAINIAO_STANDARD" ); AliexpressLogisticsValueaddedInsuranceEstimateResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | < aliexpress_logistics_valueadded_insurance_estimate_response > < result > < result >{ "isValid":true, "premium":{ "cent":1233, "curreny":"CNY" } }</ result > < error_info_details > < json >java.lang.RunException</ json > </ error_info_details > < error_info > < retry >false</ retry > < internal_error_msg >保额校验失败</ internal_error_msg > < internal_error_code >P-16-2010-3212</ internal_error_code > < error_msg >INSURANCE_CHECK_ERROR</ error_msg > < error_code >P-16-2010-3212</ error_code > </ error_info > < retry >false</ retry > < is_success >true</ is_success > </ result > </ aliexpress_logistics_valueadded_insurance_estimate_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|