TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceBatchRepayResultNotifyRequest req = new AlibabaFinanceBatchRepayResultNotifyRequest();
AlibabaFinanceBatchRepayResultNotifyRequest.ExternalBatchRepayNotifyRequest obj1 = new AlibabaFinanceBatchRepayResultNotifyRequest.ExternalBatchRepayNotifyRequest();
obj1.setRepayPrincipal("1");
obj1.setRepaidTime(StringUtils.parseDateTime("2024-11-18 12:22:31"));
obj1.setRequestId("123");
obj1.setRepayAmount("123");
obj1.setExtendInfo("{}");
obj1.setFailReasonMessage("123");
obj1.setRepayPenalty("123");
obj1.setRepayApplyNo("FI123123");
obj1.setInstituionRepaymentNo("123213");
obj1.setRepayChannel("MANUAL");
obj1.setFailReasonCode("XX");
obj1.setCustomerId("123");
List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTO> list3 = new ArrayList<AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTO>();
AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTO obj4 = new AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTO();
list3.add(obj4);
obj4.setRepayPrincipal("123");
obj4.setRepayAmount("123");
obj4.setLoanApplyNo("FI123123");
obj4.setRepayInterest("123");
obj4.setInstallmentNo(1L);
obj4.setRepayPenalty("1");
obj1.setRepayInstallmentList(list3);
obj1.setRepayInterest("123");
obj1.setRepayInitiator("ALI");
obj1.setRepayStatus("SUCCESS");
List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCard> list6 = new ArrayList<AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCard>();
AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCard obj7 = new AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCard();
list6.add(obj7);
obj7.setBankCardNo("XXX");
obj1.setRepayBankCardList(list6);
req.setExternalBatchRepayNotifyRequest(obj1);
AlibabaFinanceBatchRepayResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceBatchRepayResultNotifyRequest req = new AlibabaFinanceBatchRepayResultNotifyRequest();
AlibabaFinanceBatchRepayResultNotifyRequest.ExternalBatchRepayNotifyRequestDomain obj1 = new AlibabaFinanceBatchRepayResultNotifyRequest.ExternalBatchRepayNotifyRequestDomain();
obj1.RepayPrincipal = "1";
obj1.RepaidTime = DateTime.Parse(2024-11-18 12:22:31");
obj1.RequestId = "123";
obj1.RepayAmount = "123";
obj1.ExtendInfo = "{}";
obj1.FailReasonMessage = "123";
obj1.RepayPenalty = "123";
obj1.RepayApplyNo = "FI123123";
obj1.InstituionRepaymentNo = "123213";
obj1.RepayChannel = "MANUAL";
obj1.FailReasonCode = "XX";
obj1.CustomerId = "123";
List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTODomain> list3 = new List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTODomain>();
AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTODomain obj4 = new AlibabaFinanceBatchRepayResultNotifyRequest.RepayInstallmentDetailDTODomain();
list3.Add(obj4);
obj4.RepayPrincipal = "123";
obj4.RepayAmount = "123";
obj4.LoanApplyNo = "FI123123";
obj4.RepayInterest = "123";
obj4.InstallmentNo = 1L;
obj4.RepayPenalty = "1";
obj1.RepayInstallmentList= list3;
obj1.RepayInterest = "123";
obj1.RepayInitiator = "ALI";
obj1.RepayStatus = "SUCCESS";
List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCardDomain> list6 = new List<AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCardDomain>();
AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCardDomain obj7 = new AlibabaFinanceBatchRepayResultNotifyRequest.RepayBankCardDomain();
list6.Add(obj7);
obj7.BankCardNo = "XXX";
obj1.RepayBankCardList= list6;
req.ExternalBatchRepayNotifyRequest_ = obj1;
AlibabaFinanceBatchRepayResultNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceBatchRepayResultNotifyRequest;
$external_batch_repay_notify_request = new ExternalBatchRepayNotifyRequest;
$external_batch_repay_notify_request->repay_principal="1";
$external_batch_repay_notify_request->repaid_time="2024-11-18 12:22:31";
$external_batch_repay_notify_request->request_id="123";
$external_batch_repay_notify_request->repay_amount="123";
$external_batch_repay_notify_request->extend_info="{}";
$external_batch_repay_notify_request->fail_reason_message="123";
$external_batch_repay_notify_request->repay_penalty="123";
$external_batch_repay_notify_request->repay_apply_no="FI123123";
$external_batch_repay_notify_request->instituion_repayment_no="123213";
$external_batch_repay_notify_request->repay_channel="MANUAL";
$external_batch_repay_notify_request->fail_reason_code="XX";
$external_batch_repay_notify_request->customer_id="123";
$repay_installment_list = new RepayInstallmentDetailDTO;
$repay_installment_list->repay_principal="123";
$repay_installment_list->repay_amount="123";
$repay_installment_list->loan_apply_no="FI123123";
$repay_installment_list->repay_interest="123";
$repay_installment_list->installment_no="1";
$repay_installment_list->repay_penalty="1";
$external_batch_repay_notify_request->repay_installment_list = $repay_installment_list;
$external_batch_repay_notify_request->repay_interest="123";
$external_batch_repay_notify_request->repay_initiator="ALI";
$external_batch_repay_notify_request->repay_status="SUCCESS";
$repay_bank_card_list = new RepayBankCard;
$repay_bank_card_list->bank_card_no="XXX";
$external_batch_repay_notify_request->repay_bank_card_list = $repay_bank_card_list;
$req->setExternalBatchRepayNotifyRequest(json_encode($external_batch_repay_notify_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.batch.repay.result.notify' \
-d 'partner_id=apidoc' \
-d 'sign=586C9BCAD0E106B39D09CEE802903D89' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+06%3A22%3A33' \
-d 'v=2.0' \
-d 'external_batch_repay_notify_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceBatchRepayResultNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.external_batch_repay_notify_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.batch.repay.result.notify");
add_param(pRequest,"external_batch_repay_notify_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('alibaba.finance.batch.repay.result.notify', {
'external_batch_repay_notify_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})