TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianAelocalreturnClaimSyncRequest req = new AlipayBaoxianAelocalreturnClaimSyncRequest();
AlipayBaoxianAelocalreturnClaimSyncRequest.InsTopAeLocalReturnClaimSyncRequest obj1 = new AlipayBaoxianAelocalreturnClaimSyncRequest.InsTopAeLocalReturnClaimSyncRequest();
obj1.setSpNo("20198");
obj1.setInstPolicyNo("20260512xx");
obj1.setClaimAmount("100");
obj1.setSyncType("CLAIM_RESOLVE");
obj1.setInstClaimNo("20260512xx");
obj1.setClaimRejectReason("拒赔原因");
AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalAccidentInfoDTO obj2 = new AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalAccidentInfoDTO();
obj2.setClaimReason("理赔原因");
AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalInsurantInfoDTO obj3 = new AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalInsurantInfoDTO();
obj3.setId("24124");
obj3.setName("测试");
obj3.setMobile("131xxx");
obj3.setCertificateType("23");
obj3.setCertificateNo("证件号码");
obj2.setInsurantInfo(obj3);
obj1.setAccidentInfo(obj2);
AlipayBaoxianAelocalreturnClaimSyncRequest.InsAeLocalReturnBillDTO obj4 = new AlipayBaoxianAelocalreturnClaimSyncRequest.InsAeLocalReturnBillDTO();
obj4.setPayerAccount("2088xx");
obj4.setPayerAccountName("测试账号");
obj4.setPayerAccountOrg("支付宝");
obj4.setPayeeAccountName("测试");
obj4.setPayeeAccount("2088xx");
obj4.setPayeeAccountOrg("测试机构");
obj4.setFundFlowNo("20260508xx");
obj4.setFee("100");
obj4.setFeeCurrency("CNY");
obj1.setBillDto(obj4);
obj1.setExtendInfo("扩展信息");
obj1.setAccidentTime("1778573856");
obj1.setClaimSuccessTime("1778573856");
obj1.setClaimRejectTime("1778573856");
obj1.setProdNo("xx");
obj1.setBizOrderNo("xx");
req.setAeLocalReturnClaimSyncRequest(obj1);
AlipayBaoxianAelocalreturnClaimSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlipayBaoxianAelocalreturnClaimSyncRequest req = new AlipayBaoxianAelocalreturnClaimSyncRequest();
AlipayBaoxianAelocalreturnClaimSyncRequest.InsTopAeLocalReturnClaimSyncRequestDomain obj1 = new AlipayBaoxianAelocalreturnClaimSyncRequest.InsTopAeLocalReturnClaimSyncRequestDomain();
obj1.SpNo = "20198";
obj1.InstPolicyNo = "20260512xx";
obj1.ClaimAmount = "100";
obj1.SyncType = "CLAIM_RESOLVE";
obj1.InstClaimNo = "20260512xx";
obj1.ClaimRejectReason = "拒赔原因";
AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalAccidentInfoDTODomain obj2 = new AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalAccidentInfoDTODomain();
obj2.ClaimReason = "理赔原因";
AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalInsurantInfoDTODomain obj3 = new AlipayBaoxianAelocalreturnClaimSyncRequest.AeLocalInsurantInfoDTODomain();
obj3.Id = "24124";
obj3.Name = "测试";
obj3.Mobile = "131xxx";
obj3.CertificateType = "23";
obj3.CertificateNo = "证件号码";
obj2.InsurantInfo= obj3;
obj1.AccidentInfo= obj2;
AlipayBaoxianAelocalreturnClaimSyncRequest.InsAeLocalReturnBillDTODomain obj4 = new AlipayBaoxianAelocalreturnClaimSyncRequest.InsAeLocalReturnBillDTODomain();
obj4.PayerAccount = "2088xx";
obj4.PayerAccountName = "测试账号";
obj4.PayerAccountOrg = "支付宝";
obj4.PayeeAccountName = "测试";
obj4.PayeeAccount = "2088xx";
obj4.PayeeAccountOrg = "测试机构";
obj4.FundFlowNo = "20260508xx";
obj4.Fee = "100";
obj4.FeeCurrency = "CNY";
obj1.BillDto= obj4;
obj1.ExtendInfo = "扩展信息";
obj1.AccidentTime = "1778573856";
obj1.ClaimSuccessTime = "1778573856";
obj1.ClaimRejectTime = "1778573856";
obj1.ProdNo = "xx";
obj1.BizOrderNo = "xx";
req.AeLocalReturnClaimSyncRequest_ = obj1;
AlipayBaoxianAelocalreturnClaimSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlipayBaoxianAelocalreturnClaimSyncRequest;
$ae_local_return_claim_sync_request = new InsTopAeLocalReturnClaimSyncRequest;
$ae_local_return_claim_sync_request->sp_no="20198";
$ae_local_return_claim_sync_request->inst_policy_no="20260512xx";
$ae_local_return_claim_sync_request->claim_amount="100";
$ae_local_return_claim_sync_request->sync_type="CLAIM_RESOLVE";
$ae_local_return_claim_sync_request->inst_claim_no="20260512xx";
$ae_local_return_claim_sync_request->claim_reject_reason="拒赔原因";
$accident_info = new AeLocalAccidentInfoDTO;
$accident_info->claim_reason="理赔原因";
$insurant_info = new AeLocalInsurantInfoDTO;
$insurant_info->id="24124";
$insurant_info->name="测试";
$insurant_info->mobile="131xxx";
$insurant_info->certificate_type="23";
$insurant_info->certificate_no="证件号码";
$accident_info->insurant_info = $insurant_info;
$ae_local_return_claim_sync_request->accident_info = $accident_info;
$bill_dto = new InsAeLocalReturnBillDTO;
$bill_dto->payer_account="2088xx";
$bill_dto->payer_account_name="测试账号";
$bill_dto->payer_account_org="支付宝";
$bill_dto->payee_account_name="测试";
$bill_dto->payee_account="2088xx";
$bill_dto->payee_account_org="测试机构";
$bill_dto->fund_flow_no="20260508xx";
$bill_dto->fee="100";
$bill_dto->fee_currency="CNY";
$ae_local_return_claim_sync_request->bill_dto = $bill_dto;
$ae_local_return_claim_sync_request->extend_info="扩展信息";
$ae_local_return_claim_sync_request->accident_time="1778573856";
$ae_local_return_claim_sync_request->claim_success_time="1778573856";
$ae_local_return_claim_sync_request->claim_reject_time="1778573856";
$ae_local_return_claim_sync_request->prod_no="xx";
$ae_local_return_claim_sync_request->biz_order_no="xx";
$req->setAeLocalReturnClaimSyncRequest(json_encode($ae_local_return_claim_sync_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=alipay.baoxian.aelocalreturn.claim.sync' \
-d 'partner_id=apidoc' \
-d 'sign=D0D81EF673C4782EFC3EB2505A4D594C' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-09-24+00%3A29%3A18' \
-d 'v=2.0' \
-d 'ae_local_return_claim_sync_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlipayBaoxianAelocalreturnClaimSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ae_local_return_claim_sync_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,"alipay.baoxian.aelocalreturn.claim.sync");
add_param(pRequest,"ae_local_return_claim_sync_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alipay.baoxian.aelocalreturn.claim.sync', {
'ae_local_return_claim_sync_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})