家装类订单使用该接口发货
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tid | Number | 必须 | 123456789 | 交易号 | |||||||||||||||||||||||||
sender_id | Number | 可选 | 12313254452 | 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 | |||||||||||||||||||||||||
lg_tp_dto | TPDTO | 必须 | 物流公司信息 | ||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
ins_tp_dto | TPDTO | 可选 | 安装公司信息,需要安装时,才填写 | ||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
jz_receiver_to | JzReceiverTO | 可选 | 家装收货人信息,如果为空,则取默认收货信息 | ||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
ins_receiver_to | JzReceiverTO | 可选 | 安装收货人信息,如果为空,则取默认收货人信息 | ||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
jz_top_args | JzTopArgs | 可选 | 发货参数 | ||||||||||||||||||||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result_error_code | String | B10 | 错误码 |
result_error_msg | String | 订单不存在 | 错误信息描述 |
result_success | Boolean | 是否成功 | 是否成功 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); WlbOrderJzConsignRequest req = new WlbOrderJzConsignRequest(); req.setTid(123456789L); req.setSenderId(12313254452L); WlbOrderJzConsignRequest.TPDTO obj1 = new WlbOrderJzConsignRequest.TPDTO(); obj1.setCode( "XBWL" ); obj1.setName( "新华物流" ); req.setLgTpDto(obj1); WlbOrderJzConsignRequest.TPDTO obj2 = new WlbOrderJzConsignRequest.TPDTO(); obj2.setCode( "XBWL" ); obj2.setName( "新华物流" ); req.setInsTpDto(obj2); WlbOrderJzConsignRequest.JzReceiverTO obj3 = new WlbOrderJzConsignRequest.JzReceiverTO(); obj3.setAddress( "18号" ); obj3.setCity( "杭州" ); obj3.setContactName( "张三" ); obj3.setCountry( "中国" ); obj3.setDistrict( "西湖区" ); obj3.setMobilePhone( "1234567890123" ); obj3.setProvince( "浙江省" ); obj3.setStreet( "万塘路" ); obj3.setTelePhone( "0571-88888888" ); obj3.setZipCode( "310013" ); req.setJzReceiverTo(obj3); WlbOrderJzConsignRequest.JzReceiverTO obj4 = new WlbOrderJzConsignRequest.JzReceiverTO(); obj4.setMobilePhone( "1234567890123" ); obj4.setTelePhone( "0571-88888888" ); obj4.setStreet( "万塘路" ); obj4.setProvince( "浙江省" ); obj4.setDistrict( "西湖区" ); obj4.setCountry( "中国" ); obj4.setContactName( "张三" ); obj4.setCity( "杭州" ); obj4.setAddress( "18号" ); obj4.setZipCode( "310013" ); req.setInsReceiverTo(obj4); WlbOrderJzConsignRequest.JzTopArgs obj5 = new WlbOrderJzConsignRequest.JzTopArgs(); obj5.setMailNo( "12321323" ); obj5.setPackageNumber( "2" ); obj5.setPackageRemark( "易碎物品" ); obj5.setPackageVolume( "12" ); obj5.setPackageWeight( "2" ); obj5.setZyCompany( "新华物流" ); obj5.setZyConsignTime( "2015-08-02 17:25:16" ); obj5.setZyPhoneNumber( "1236547890123" ); req.setJzTopArgs(obj5); WlbOrderJzConsignResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < wlb_order_jz_consign_response > < result_error_code >B10</ result_error_code > < result_error_msg >订单不存在</ result_error_msg > < result_success >是否成功</ result_success > </ wlb_order_jz_consign_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 > |
错误码 | 错误描述 | 解决方案 |
---|