TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoIndependentAppFinanceStatusSyncRequest req = new TmallAliautoIndependentAppFinanceStatusSyncRequest();
TmallAliautoIndependentAppFinanceStatusSyncRequest.FinanceSync4IndependentReq obj1 = new TmallAliautoIndependentAppFinanceStatusSyncRequest.FinanceSync4IndependentReq();
obj1.setRealName("xxx");
obj1.setOrderId(123456L);
obj1.setIdCardNo("210203123323322332");
obj1.setBizContent("线下提交资料");
obj1.setPhoneNum("15901297516");
obj1.setDownPaymentAmount(1000L);
obj1.setCreditAmount(1000L);
obj1.setLoanAmount(1000L);
obj1.setStatus("USER_CONFIRM");
obj1.setOuterFinanceOrderId("123456");
TmallAliautoIndependentAppFinanceStatusSyncRequest.FinancePlanInfo obj2 = new TmallAliautoIndependentAppFinanceStatusSyncRequest.FinancePlanInfo();
obj2.setPlanGroupId("1");
obj2.setPlanName("定额贷");
obj2.setPlanDesc("定额贷描述文案");
obj2.setDownPaymentRatio("0.3");
obj2.setPeriods("12");
obj2.setOriginalMonthlyPayment(220L);
obj2.setCurrentMonthlyPayment(110L);
obj2.setOriginalRate("0.0435");
obj2.setDiscountRate("0.0435");
obj2.setOriginalInterestRate("0.0435");
obj2.setDiscountInterestRate("0.0435");
obj2.setTotalInterestAmount(1180L);
obj2.setOptimal(false);
obj2.setOrgName("金融机构");
obj2.setEndPaymentRatio("0.3");
obj2.setEndPaymentAmt(3200L);
obj2.setNeedAdditionLoan(false);
obj1.setFinancePlanInfo(obj2);
req.setReq(obj1);
TmallAliautoIndependentAppFinanceStatusSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoIndependentAppFinanceStatusSyncRequest req = new TmallAliautoIndependentAppFinanceStatusSyncRequest();
TmallAliautoIndependentAppFinanceStatusSyncRequest.FinanceSync4IndependentReqDomain obj1 = new TmallAliautoIndependentAppFinanceStatusSyncRequest.FinanceSync4IndependentReqDomain();
obj1.RealName = "xxx";
obj1.OrderId = 123456L;
obj1.IdCardNo = "210203123323322332";
obj1.BizContent = "线下提交资料";
obj1.PhoneNum = "15901297516";
obj1.DownPaymentAmount = 1000L;
obj1.CreditAmount = 1000L;
obj1.LoanAmount = 1000L;
obj1.Status = "USER_CONFIRM";
obj1.OuterFinanceOrderId = "123456";
TmallAliautoIndependentAppFinanceStatusSyncRequest.FinancePlanInfoDomain obj2 = new TmallAliautoIndependentAppFinanceStatusSyncRequest.FinancePlanInfoDomain();
obj2.PlanGroupId = "1";
obj2.PlanName = "定额贷";
obj2.PlanDesc = "定额贷描述文案";
obj2.DownPaymentRatio = "0.3";
obj2.Periods = "12";
obj2.OriginalMonthlyPayment = 220L;
obj2.CurrentMonthlyPayment = 110L;
obj2.OriginalRate = "0.0435";
obj2.DiscountRate = "0.0435";
obj2.OriginalInterestRate = "0.0435";
obj2.DiscountInterestRate = "0.0435";
obj2.TotalInterestAmount = 1180L;
obj2.Optimal = false;
obj2.OrgName = "金融机构";
obj2.EndPaymentRatio = "0.3";
obj2.EndPaymentAmt = 3200L;
obj2.NeedAdditionLoan = false;
obj1.FinancePlanInfo= obj2;
req.Req_ = obj1;
TmallAliautoIndependentAppFinanceStatusSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoIndependentAppFinanceStatusSyncRequest;
$req = new FinanceSync4IndependentReq;
$req->real_name="xxx";
$req->order_id="123456";
$req->id_card_no="210203123323322332";
$req->biz_content="线下提交资料";
$req->phone_num="15901297516";
$req->down_payment_amount="1000";
$req->credit_amount="1000";
$req->loan_amount="1000";
$req->status="USER_CONFIRM";
$req->outer_finance_order_id="123456";
$finance_plan_info = new FinancePlanInfo;
$finance_plan_info->plan_group_id="1";
$finance_plan_info->plan_name="定额贷";
$finance_plan_info->plan_desc="定额贷描述文案";
$finance_plan_info->down_payment_ratio="0.3";
$finance_plan_info->periods="12";
$finance_plan_info->original_monthly_payment="220";
$finance_plan_info->current_monthly_payment="110";
$finance_plan_info->original_rate="0.0435";
$finance_plan_info->discount_rate="0.0435";
$finance_plan_info->original_interest_rate="0.0435";
$finance_plan_info->discount_interest_rate="0.0435";
$finance_plan_info->total_interest_amount="1180";
$finance_plan_info->optimal="false";
$finance_plan_info->org_name="金融机构";
$finance_plan_info->end_payment_ratio="0.3";
$finance_plan_info->end_payment_amt="3200";
$finance_plan_info->need_addition_loan="false";
$req->setFinancePlanInfo(json_encode($finance_plan_info));
$req->setReq(json_encode($req));
$resp = $c->execute($req, $sessionKey);
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.aliauto.independent.app.finance.status.sync' \
-d 'partner_id=apidoc' \
-d 'session=5014824f-9151-4c2e-9ee7-d71d0487b942' \
-d 'sign=27A79DF1E88A02A18A21C0694F010D5F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-08+22%3A58%3A07' \
-d 'v=2.0' \
-d 'req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoIndependentAppFinanceStatusSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.req="数据结构示例JSON格式"
try:
resp= req.getResponse(sessionkey)
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.aliauto.independent.app.finance.status.sync");
add_param(pRequest,"req","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.aliauto.independent.app.finance.status.sync', {
'req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})