TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallFinCarOpenLoanApplyRequest req = new TmallFinCarOpenLoanApplyRequest();
TmallFinCarOpenLoanApplyRequest.LoanApplyRequestTop obj1 = new TmallFinCarOpenLoanApplyRequest.LoanApplyRequestTop();
obj1.setCustomerType("ALI");
obj1.setRequestNo("2342");
obj1.setTermUnit("DAY");
obj1.setRepaymentMethod("AVERAGE_CAPITAL_PLUS_INTEREST");
obj1.setChannel("DS_APP");
obj1.setInterestRate("0.087");
obj1.setExtendInfo("{}");
obj1.setCurrency("CNY");
obj1.setProductId("12343");
obj1.setCustomerId("123");
obj1.setTerm(24L);
obj1.setBizType("TMALL_CAR");
obj1.setRateUnit("YEAR");
List<TmallFinCarOpenLoanApplyRequest.AttachmentDto> list3 = new ArrayList<TmallFinCarOpenLoanApplyRequest.AttachmentDto>();
TmallFinCarOpenLoanApplyRequest.AttachmentDto obj4 = new TmallFinCarOpenLoanApplyRequest.AttachmentDto();
list3.add(obj4);
obj4.setFileName("汽车图片");
obj4.setFileType("CAR_TOP_JPG");
obj4.setFileFormat("PDF");
obj4.setFilePath("http://a/b");
obj1.setAttachments(list3);
obj1.setBizNo("123");
obj1.setApplyAmount(100000L);
obj1.setBaseRate("0.098");
obj1.setApplyTime(StringUtils.parseDateTime("2019-10-09 21:33:44"));
req.setLoanApplyRequest(obj1);
TmallFinCarOpenLoanApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallFinCarOpenLoanApplyRequest req = new TmallFinCarOpenLoanApplyRequest();
TmallFinCarOpenLoanApplyRequest.LoanApplyRequestTopDomain obj1 = new TmallFinCarOpenLoanApplyRequest.LoanApplyRequestTopDomain();
obj1.CustomerType = "ALI";
obj1.RequestNo = "2342";
obj1.TermUnit = "DAY";
obj1.RepaymentMethod = "AVERAGE_CAPITAL_PLUS_INTEREST";
obj1.Channel = "DS_APP";
obj1.InterestRate = "0.087";
obj1.ExtendInfo = "{}";
obj1.Currency = "CNY";
obj1.ProductId = "12343";
obj1.CustomerId = "123";
obj1.Term = 24L;
obj1.BizType = "TMALL_CAR";
obj1.RateUnit = "YEAR";
List<TmallFinCarOpenLoanApplyRequest.AttachmentDtoDomain> list3 = new List<TmallFinCarOpenLoanApplyRequest.AttachmentDtoDomain>();
TmallFinCarOpenLoanApplyRequest.AttachmentDtoDomain obj4 = new TmallFinCarOpenLoanApplyRequest.AttachmentDtoDomain();
list3.Add(obj4);
obj4.FileName = "汽车图片";
obj4.FileType = "CAR_TOP_JPG";
obj4.FileFormat = "PDF";
obj4.FilePath = "http://a/b";
obj1.Attachments= list3;
obj1.BizNo = "123";
obj1.ApplyAmount = 100000L;
obj1.BaseRate = "0.098";
obj1.ApplyTime = DateTime.Parse(2019-10-09 21:33:44");
req.LoanApplyRequest_ = obj1;
TmallFinCarOpenLoanApplyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallFinCarOpenLoanApplyRequest;
$loan_apply_request = new LoanApplyRequestTop;
$loan_apply_request->customer_type="ALI";
$loan_apply_request->request_no="2342";
$loan_apply_request->term_unit="DAY";
$loan_apply_request->repayment_method="AVERAGE_CAPITAL_PLUS_INTEREST";
$loan_apply_request->channel="DS_APP";
$loan_apply_request->interest_rate="0.087";
$loan_apply_request->extend_info="{}";
$loan_apply_request->currency="CNY";
$loan_apply_request->product_id="12343";
$loan_apply_request->customer_id="123";
$loan_apply_request->term="24";
$loan_apply_request->biz_type="TMALL_CAR";
$loan_apply_request->rate_unit="YEAR";
$attachments = new AttachmentDto;
$attachments->file_name="汽车图片";
$attachments->file_type="CAR_TOP_JPG";
$attachments->file_format="PDF";
$attachments->file_path="http://a/b";
$loan_apply_request->attachments = $attachments;
$loan_apply_request->biz_no="123";
$loan_apply_request->apply_amount="100000";
$loan_apply_request->base_rate="0.098";
$loan_apply_request->apply_time="2019-10-09 21:33:44";
$req->setLoanApplyRequest(json_encode($loan_apply_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=tmall.fin.car.open.loan.apply' \
-d 'partner_id=apidoc' \
-d 'sign=2C14C0A5A482AEE171B6C42741AC8DEF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-08+03%3A43%3A15' \
-d 'v=2.0' \
-d 'loan_apply_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallFinCarOpenLoanApplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.loan_apply_request=""
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,"tmall.fin.car.open.loan.apply");
add_param(pRequest,"loan_apply_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('tmall.fin.car.open.loan.apply', {
'loan_apply_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})