创建揽收物流 商家去物流公司创建物流订单
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_id | Number | 必须 | 345456546 | 订单id | |
logistics | LogisticsDto | 必须 | 物流信息 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TopResult | 系统自动生成 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaIdleRentOrderLogisticsDeliverRequest req = new AlibabaIdleRentOrderLogisticsDeliverRequest(); req.setOrderId(345456546L); AlibabaIdleRentOrderLogisticsDeliverRequest.LogisticsDto obj1 = new AlibabaIdleRentOrderLogisticsDeliverRequest.LogisticsDto(); obj1.setLogisticsName( "顺丰快递" ); AlibabaIdleRentOrderLogisticsDeliverRequest.UserAddressDto obj2 = new AlibabaIdleRentOrderLogisticsDeliverRequest.UserAddressDto(); obj2.setArea( "余杭区" ); obj2.setAddress( "文一西路69号2号小邮局" ); obj2.setCity( "杭州" ); obj2.setName( "Jack" ); obj2.setProv( "浙江" ); obj2.setPhoneNo( "13781210985" ); obj1.setSenderAddress(obj2); obj1.setLogisticsId( "7384578345783" ); req.setLogistics(obj1); AlibabaIdleRentOrderLogisticsDeliverResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < alibaba_idle_rent_order_logistics_deliver_response > < result > < data >true</ data > < success >false</ success > < error_message >参数不合法</ error_message > < error_code >PARAMS_INVALID</ error_code > </ result > </ alibaba_idle_rent_order_logistics_deliver_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 > |
错误码 | 错误描述 | 解决方案 |
---|