¥开放平台免费API必须用户授权
用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货
公共参数
请求地址:
HTTP地址
http://gw.api.taobao.com/router/rest
公共请求参数:
公共响应参数:
响应参数
点击获取key和secret
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpLogisticsOfflineSendRequest req = new AlibabaAscpLogisticsOfflineSendRequest();
req.setSenderId(123456L);
req.setFeature("identCode=tid:aaa,bbb;machineCode=tid2:aaa;retailStoreId=12345;retailStoreType=STORE;instantMobilePhoneNumber=12345678910");
req.setTid("123");
req.setSubTid("1,2,3");
List<AlibabaAscpLogisticsOfflineSendRequest.TopConsignPkgRequest> list2 = new ArrayList<AlibabaAscpLogisticsOfflineSendRequest.TopConsignPkgRequest>();
AlibabaAscpLogisticsOfflineSendRequest.TopConsignPkgRequest obj3 = new AlibabaAscpLogisticsOfflineSendRequest.TopConsignPkgRequest();
list2.add(obj3);
obj3.setOutSid("123455");
obj3.setCompanyCode("POST");
List<AlibabaAscpLogisticsOfflineSendRequest.TopConsignGoodsRequest> list6 = new ArrayList<AlibabaAscpLogisticsOfflineSendRequest.TopConsignGoodsRequest>();
AlibabaAscpLogisticsOfflineSendRequest.TopConsignGoodsRequest obj7 = new AlibabaAscpLogisticsOfflineSendRequest.TopConsignGoodsRequest();
list6.add(obj7);
obj7.setSubTid("11111");
obj7.setCompItemId("100001");
obj7.setCompSkuId("100002");
obj7.setItemType(0L);
obj7.setNum(1L);
list4.setGoods(list6);
req.setConsignPkgs(list2);
req.setCancelId(123456L);
AlibabaAscpLogisticsOfflineSendRequest.ConsignStatusRequest obj8 = new AlibabaAscpLogisticsOfflineSendRequest.ConsignStatusRequest();
obj8.setSubTid("123");
obj8.setIsPartConsign(true);
req.setConsignStatus(obj8);
req.setConsignType(1L);
AlibabaAscpLogisticsOfflineSendResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());