TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsExpressDeliveryCutNotifyRequest req = new LogisticsExpressDeliveryCutNotifyRequest();
LogisticsExpressDeliveryCutNotifyRequest.NotifyCutOffDeliveryProcessStatusRequest obj1 = new LogisticsExpressDeliveryCutNotifyRequest.NotifyCutOffDeliveryProcessStatusRequest();
obj1.setMailNo("12345");
obj1.setOuterOrderId("12345");
obj1.setInterceptStatus("OK");
obj1.setTmsCpCode("STO");
obj1.setInterceptStatusMessage("test");
obj1.setServiceType("41");
obj1.setInterceptNode("1");
obj1.setInterceptSource("1");
obj1.setOperateTime("2023-12-16 10:05:00");
obj1.setSupplierId("123456");
obj1.setDeliveryCode("STO");
obj1.setInterceptStatusCode("PACKAGE_STATUS_INVALID");
req.setNotifyCutOffDeliveryProcessStatusRequest(obj1);
LogisticsExpressDeliveryCutNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LogisticsExpressDeliveryCutNotifyRequest req = new LogisticsExpressDeliveryCutNotifyRequest();
LogisticsExpressDeliveryCutNotifyRequest.NotifyCutOffDeliveryProcessStatusRequestDomain obj1 = new LogisticsExpressDeliveryCutNotifyRequest.NotifyCutOffDeliveryProcessStatusRequestDomain();
obj1.MailNo = "12345";
obj1.OuterOrderId = "12345";
obj1.InterceptStatus = "OK";
obj1.TmsCpCode = "STO";
obj1.InterceptStatusMessage = "test";
obj1.ServiceType = "41";
obj1.InterceptNode = "1";
obj1.InterceptSource = "1";
obj1.OperateTime = "2023-12-16 10:05:00";
obj1.SupplierId = "123456";
obj1.DeliveryCode = "STO";
obj1.InterceptStatusCode = "PACKAGE_STATUS_INVALID";
req.NotifyCutOffDeliveryProcessStatusRequest_ = obj1;
LogisticsExpressDeliveryCutNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LogisticsExpressDeliveryCutNotifyRequest;
$notify_cut_off_delivery_process_status_request = new NotifyCutOffDeliveryProcessStatusRequest;
$notify_cut_off_delivery_process_status_request->mail_no="12345";
$notify_cut_off_delivery_process_status_request->outer_order_id="12345";
$notify_cut_off_delivery_process_status_request->intercept_status="OK";
$notify_cut_off_delivery_process_status_request->tms_cp_code="STO";
$notify_cut_off_delivery_process_status_request->intercept_status_message="test";
$notify_cut_off_delivery_process_status_request->service_type="41";
$notify_cut_off_delivery_process_status_request->intercept_node="1";
$notify_cut_off_delivery_process_status_request->intercept_source="1";
$notify_cut_off_delivery_process_status_request->operate_time="2023-12-16 10:05:00";
$notify_cut_off_delivery_process_status_request->supplier_id="123456";
$notify_cut_off_delivery_process_status_request->delivery_code="STO";
$notify_cut_off_delivery_process_status_request->intercept_status_code="PACKAGE_STATUS_INVALID";
$req->setNotifyCutOffDeliveryProcessStatusRequest(json_encode($notify_cut_off_delivery_process_status_request));
$resp = $c->execute($req);
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=taobao.logistics.express.delivery.cut.notify' \
-d 'partner_id=apidoc' \
-d 'sign=C8BD22C478C3CC0EC5E144BB6B3A3683' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-21+16%3A41%3A58' \
-d 'v=2.0' \
-d 'notify_cut_off_delivery_process_status_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LogisticsExpressDeliveryCutNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.notify_cut_off_delivery_process_status_request="数据结构示例JSON格式"
try:
resp= req.getResponse()
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,"taobao.logistics.express.delivery.cut.notify");
add_param(pRequest,"notify_cut_off_delivery_process_status_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
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('taobao.logistics.express.delivery.cut.notify', {
'notify_cut_off_delivery_process_status_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})