TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsOrderModifyshipmentRequest req = new AliexpressLogisticsOrderModifyshipmentRequest();
List<AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDto> list2 = new ArrayList<AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDto>();
AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDto obj3 = new AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDto();
list2.add(obj3);
List<AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDto> list6 = new ArrayList<AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDto>();
AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDto obj7 = new AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDto();
list6.add(obj7);
obj7.setLogisticsNo("LV87654321CN");
obj7.setTrackingWebSite("http://ems.com");
obj7.setServiceName("EMS");
obj7.setActualCarrier("EMS");
obj7.setPackageType("包裹类型");
list4.setShipmentList(list6);
obj3.setSubTradeOrderIndex(1L);
obj3.setSendType("part");
req.setSubTradeOrderList(list2);
req.setOldLogisticsNo("LV87654321CN");
req.setTradeOrderId(888887777766L);
req.setOldServiceName("EMS");
AliexpressLogisticsOrderModifyshipmentResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressLogisticsOrderModifyshipmentRequest req = new AliexpressLogisticsOrderModifyshipmentRequest();
List<AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDtoDomain> list2 = new List<AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDtoDomain>();
AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDtoDomain obj3 = new AliexpressLogisticsOrderModifyshipmentRequest.AeopSellerShipmentSubTradeOrderDtoDomain();
list2.Add(obj3);
List<AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDtoDomain> list5 = new List<AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDtoDomain>();
AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDtoDomain obj6 = new AliexpressLogisticsOrderModifyshipmentRequest.AeopShipmentDtoDomain();
list5.Add(obj6);
obj6.LogisticsNo = "LV87654321CN";
obj6.TrackingWebSite = "http://ems.com";
obj6.ServiceName = "EMS";
obj6.ActualCarrier = "EMS";
obj6.PackageType = "包裹类型";
obj3.ShipmentList= list5;
obj3.SubTradeOrderIndex = 1L;
obj3.SendType = "part";
req.SubTradeOrderList_ = list2;
req.OldLogisticsNo = "LV87654321CN";
req.TradeOrderId = 888887777766L;
req.OldServiceName = "EMS";
AliexpressLogisticsOrderModifyshipmentResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressLogisticsOrderModifyshipmentRequest;
$sub_trade_order_list = new AeopSellerShipmentSubTradeOrderDto;
$shipment_list = new AeopShipmentDto;
$shipment_list->logistics_no="LV87654321CN";
$shipment_list->tracking_web_site="http://ems.com";
$shipment_list->service_name="EMS";
$shipment_list->actual_carrier="EMS";
$shipment_list->package_type="包裹类型";
$sub_trade_order_list->shipment_list = $shipment_list;
$sub_trade_order_list->sub_trade_order_index="1";
$sub_trade_order_list->send_type="part";
$req->setSubTradeOrderList(json_encode($sub_trade_order_list));
$req->setOldLogisticsNo("LV87654321CN");
$req->setTradeOrderId("888887777766");
$req->setOldServiceName("EMS");
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=aliexpress.logistics.order.modifyshipment' \
-d 'partner_id=apidoc' \
-d 'session=8ff31012-3ab3-4232-94f8-7864874cf30c' \
-d 'sign=EDF20BA4AD81639C77395CF25F213FAD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-02-04+14%3A51%3A59' \
-d 'v=2.0' \
-d 'old_logistics_no=LV87654321CN' \
-d 'old_service_name=EMS' \
-d 'sub_trade_order_list=null' \
-d 'trade_order_id=888887777766'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressLogisticsOrderModifyshipmentRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.sub_trade_order_list=""
req.old_logistics_no="LV87654321CN"
req.trade_order_id=888887777766
req.old_service_name="EMS"
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"aliexpress.logistics.order.modifyshipment");
add_param(pRequest,"sub_trade_order_list","数据结构JSON示例");
add_param(pRequest,"old_logistics_no","LV87654321CN");
add_param(pRequest,"trade_order_id","888887777766");
add_param(pRequest,"old_service_name","EMS");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('aliexpress.logistics.order.modifyshipment', {
'sub_trade_order_list':'数据结构JSON示例',
'old_logistics_no':'LV87654321CN',
'trade_order_id':'888887777766',
'old_service_name':'EMS'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})