TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceRepayResultNotifyRequest req = new AlibabaFinanceRepayResultNotifyRequest();
AlibabaFinanceRepayResultNotifyRequest.ExternalRepayNotifyRequest obj1 = new AlibabaFinanceRepayResultNotifyRequest.ExternalRepayNotifyRequest();
obj1.setRepayPrincipal("12.22");
obj1.setRepaidTime(StringUtils.parseDateTime("2024-11-18 12:22:31"));
obj1.setRequestId("1121212121212");
obj1.setRepayAmount("12.13");
obj1.setExtendInfo("\"{}\"");
obj1.setFailReasonMessage("\"错误\"");
obj1.setRepayPenalty("22.32");
obj1.setRepayApplyNo("\"FI22323232X\"");
obj1.setInstituionRepaymentNo("\"FI22323232X\"");
obj1.setFailReasonCode("REJECT");
obj1.setCustomerId("223232");
obj1.setRepayInterest("2.13");
obj1.setRepayStatus("\"STATUS\"");
req.setParam(obj1);
AlibabaFinanceRepayResultNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceRepayResultNotifyRequest req = new AlibabaFinanceRepayResultNotifyRequest();
AlibabaFinanceRepayResultNotifyRequest.ExternalRepayNotifyRequestDomain obj1 = new AlibabaFinanceRepayResultNotifyRequest.ExternalRepayNotifyRequestDomain();
obj1.RepayPrincipal = "12.22";
obj1.RepaidTime = DateTime.Parse(2024-11-18 12:22:31");
obj1.RequestId = "1121212121212";
obj1.RepayAmount = "12.13";
obj1.ExtendInfo = "\"{}\"";
obj1.FailReasonMessage = "\"错误\"";
obj1.RepayPenalty = "22.32";
obj1.RepayApplyNo = "\"FI22323232X\"";
obj1.InstituionRepaymentNo = "\"FI22323232X\"";
obj1.FailReasonCode = "REJECT";
obj1.CustomerId = "223232";
obj1.RepayInterest = "2.13";
obj1.RepayStatus = "\"STATUS\"";
req.Param_ = obj1;
AlibabaFinanceRepayResultNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceRepayResultNotifyRequest;
$param = new ExternalRepayNotifyRequest;
$param->repay_principal="12.22";
$param->repaid_time="2024-11-18 12:22:31";
$param->request_id="1121212121212";
$param->repay_amount="12.13";
$param->extend_info="\"{}\"";
$param->fail_reason_message="\"错误\"";
$param->repay_penalty="22.32";
$param->repay_apply_no="\"FI22323232X\"";
$param->instituion_repayment_no="\"FI22323232X\"";
$param->fail_reason_code="REJECT";
$param->customer_id="223232";
$param->repay_interest="2.13";
$param->repay_status="\"STATUS\"";
$req->setParam(json_encode($param));
$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.repay.result.notify' \
-d 'partner_id=apidoc' \
-d 'sign=64990F29F57D5210D5978DF914F0E5A8' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-23+17%3A08%3A49' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceRepayResultNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param="数据结构示例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.repay.result.notify");
add_param(pRequest,"param","数据结构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.repay.result.notify', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})