TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceXfdLoanNotifyRequest req = new AlibabaFinanceXfdLoanNotifyRequest();
AlibabaFinanceXfdLoanNotifyRequest.XfdLoanResultExternalRequest obj1 = new AlibabaFinanceXfdLoanNotifyRequest.XfdLoanResultExternalRequest();
obj1.setCustomerId("123");
obj1.setExtendInfo("{}");
obj1.setFailReasonCode("FAIL");
obj1.setFailReasonMessage("FAIL");
AlibabaFinanceXfdLoanNotifyRequest.XfdFundSupplier obj2 = new AlibabaFinanceXfdLoanNotifyRequest.XfdFundSupplier();
obj2.setCode("CMBC");
obj2.setName("民生银行");
obj1.setFundSupplier(obj2);
obj1.setInstitution("SPDB");
obj1.setInstitutionLoanApplyNo("123123");
obj1.setInstitutionLoanNo("12312313");
obj1.setLoanAmount("100");
obj1.setLoanApplyNo("FI123123");
AlibabaFinanceXfdLoanNotifyRequest.BankAccount obj3 = new AlibabaFinanceXfdLoanNotifyRequest.BankAccount();
obj3.setBankCardId("123123");
obj3.setBankCode("SPDB");
obj3.setBankName("浦发银行");
obj3.setShowCardNo("64039434343");
obj1.setLoanBankCard(obj3);
obj1.setLoanStatus("SUCCESS");
obj1.setLoanTime(StringUtils.parseDateTime("2024-01-01 00:00:00"));
obj1.setRequestId("12312");
req.setParamXfdLoanResultExternalRequest(obj1);
AlibabaFinanceXfdLoanNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceXfdLoanNotifyRequest req = new AlibabaFinanceXfdLoanNotifyRequest();
AlibabaFinanceXfdLoanNotifyRequest.XfdLoanResultExternalRequestDomain obj1 = new AlibabaFinanceXfdLoanNotifyRequest.XfdLoanResultExternalRequestDomain();
obj1.CustomerId = "123";
obj1.ExtendInfo = "{}";
obj1.FailReasonCode = "FAIL";
obj1.FailReasonMessage = "FAIL";
AlibabaFinanceXfdLoanNotifyRequest.XfdFundSupplierDomain obj2 = new AlibabaFinanceXfdLoanNotifyRequest.XfdFundSupplierDomain();
obj2.Code = "CMBC";
obj2.Name = "民生银行";
obj1.FundSupplier= obj2;
obj1.Institution = "SPDB";
obj1.InstitutionLoanApplyNo = "123123";
obj1.InstitutionLoanNo = "12312313";
obj1.LoanAmount = "100";
obj1.LoanApplyNo = "FI123123";
AlibabaFinanceXfdLoanNotifyRequest.BankAccountDomain obj3 = new AlibabaFinanceXfdLoanNotifyRequest.BankAccountDomain();
obj3.BankCardId = "123123";
obj3.BankCode = "SPDB";
obj3.BankName = "浦发银行";
obj3.ShowCardNo = "64039434343";
obj1.LoanBankCard= obj3;
obj1.LoanStatus = "SUCCESS";
obj1.LoanTime = DateTime.Parse(2024-01-01 00:00:00");
obj1.RequestId = "12312";
req.ParamXfdLoanResultExternalRequest_ = obj1;
AlibabaFinanceXfdLoanNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceXfdLoanNotifyRequest;
$param_xfd_loan_result_external_request = new XfdLoanResultExternalRequest;
$param_xfd_loan_result_external_request->customer_id="123";
$param_xfd_loan_result_external_request->extend_info="{}";
$param_xfd_loan_result_external_request->fail_reason_code="FAIL";
$param_xfd_loan_result_external_request->fail_reason_message="FAIL";
$fund_supplier = new XfdFundSupplier;
$fund_supplier->code="CMBC";
$fund_supplier->name="民生银行";
$param_xfd_loan_result_external_request->fund_supplier = $fund_supplier;
$param_xfd_loan_result_external_request->institution="SPDB";
$param_xfd_loan_result_external_request->institution_loan_apply_no="123123";
$param_xfd_loan_result_external_request->institution_loan_no="12312313";
$param_xfd_loan_result_external_request->loan_amount="100";
$param_xfd_loan_result_external_request->loan_apply_no="FI123123";
$loan_bank_card = new BankAccount;
$loan_bank_card->bank_card_id="123123";
$loan_bank_card->bank_code="SPDB";
$loan_bank_card->bank_name="浦发银行";
$loan_bank_card->show_card_no="64039434343";
$param_xfd_loan_result_external_request->loan_bank_card = $loan_bank_card;
$param_xfd_loan_result_external_request->loan_status="SUCCESS";
$param_xfd_loan_result_external_request->loan_time="2024-01-01 00:00:00";
$param_xfd_loan_result_external_request->request_id="12312";
$req->setParamXfdLoanResultExternalRequest(json_encode($param_xfd_loan_result_external_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=alibaba.finance.xfd.loan.notify' \
-d 'partner_id=apidoc' \
-d 'sign=56AB0485244FA0E0997A1AE26E321435' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-18+20%3A44%3A07' \
-d 'v=2.0' \
-d 'param_xfd_loan_result_external_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceXfdLoanNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_xfd_loan_result_external_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,"alibaba.finance.xfd.loan.notify");
add_param(pRequest,"param_xfd_loan_result_external_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('alibaba.finance.xfd.loan.notify', {
'param_xfd_loan_result_external_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})