TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest req = new AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest();
AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest.LogisticsAddRequest obj1 = new AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest.LogisticsAddRequest();
obj1.setLogisticsTime(StringUtils.parseDateTime("2021-12-09 15:17:11"));
obj1.setInstitution("GUO_TAI");
obj1.setProductCode("ICBU_FREE_RETURN");
obj1.setCurrentStatus("SHIPPING");
obj1.setLogisticsCompany("SF");
obj1.setWayBillNo("52424342");
obj1.setClaimReportNo("01960100011063821091000000147002");
obj1.setLogisticsInfo("已揽件");
obj1.setTenant("B2B_FOREIGN_TRADE");
obj1.setIdentifier("C100010");
req.setLogisticsAddRequest(obj1);
AlibabaFinanceInsuranceClaimreportLogisticsNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest req = new AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest();
AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest.LogisticsAddRequestDomain obj1 = new AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest.LogisticsAddRequestDomain();
obj1.LogisticsTime = DateTime.Parse(2021-12-09 15:17:11");
obj1.Institution = "GUO_TAI";
obj1.ProductCode = "ICBU_FREE_RETURN";
obj1.CurrentStatus = "SHIPPING";
obj1.LogisticsCompany = "SF";
obj1.WayBillNo = "52424342";
obj1.ClaimReportNo = "01960100011063821091000000147002";
obj1.LogisticsInfo = "已揽件";
obj1.Tenant = "B2B_FOREIGN_TRADE";
obj1.Identifier = "C100010";
req.LogisticsAddRequest_ = obj1;
AlibabaFinanceInsuranceClaimreportLogisticsNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest;
$logisticsAddRequest = new LogisticsAddRequest;
$logisticsAddRequest->logistics_time="2021-12-09 15:17:11";
$logisticsAddRequest->institution="GUO_TAI";
$logisticsAddRequest->product_code="ICBU_FREE_RETURN";
$logisticsAddRequest->current_status="SHIPPING";
$logisticsAddRequest->logistics_company="SF";
$logisticsAddRequest->way_bill_no="52424342";
$logisticsAddRequest->claim_report_no="01960100011063821091000000147002";
$logisticsAddRequest->logistics_info="已揽件";
$logisticsAddRequest->tenant="B2B_FOREIGN_TRADE";
$logisticsAddRequest->identifier="C100010";
$req->setLogisticsAddRequest(json_encode($logisticsAddRequest));
$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=alibaba.finance.insurance.claimreport.logistics.notify' \
-d 'partner_id=apidoc' \
-d 'sign=FE4C7668AF0C2FD2A81FC640C099DEFB' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-22+16%3A57%3A20' \
-d 'v=2.0' \
-d 'logisticsAddRequest=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceInsuranceClaimreportLogisticsNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.logisticsAddRequest="数据结构示例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,"alibaba.finance.insurance.claimreport.logistics.notify");
add_param(pRequest,"logisticsAddRequest","数据结构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('alibaba.finance.insurance.claimreport.logistics.notify', {
'logisticsAddRequest':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})