TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarFinanceStatusSyncRequest req = new TmallCarFinanceStatusSyncRequest();
TmallCarFinanceStatusSyncRequest.CreditLoanStatusSyncReq obj1 = new TmallCarFinanceStatusSyncRequest.CreditLoanStatusSyncReq();
obj1.setFinancePlanId("31222");
obj1.setOrderId(553322113222L);
obj1.setMonthlyPayment(30000L);
obj1.setPeriods(36L);
obj1.setWsBankOrderId("543214223");
obj1.setDownPaymentAmount(2000L);
obj1.setCreditAmount(28000L);
obj1.setStatus("PAID");
obj1.setLoanAmount(28000L);
obj1.setBizContent("qdadqq");
obj1.setChannelCode("addqq");
req.setParam0(obj1);
TmallCarFinanceStatusSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarFinanceStatusSyncRequest req = new TmallCarFinanceStatusSyncRequest();
TmallCarFinanceStatusSyncRequest.CreditLoanStatusSyncReqDomain obj1 = new TmallCarFinanceStatusSyncRequest.CreditLoanStatusSyncReqDomain();
obj1.FinancePlanId = "31222";
obj1.OrderId = 553322113222L;
obj1.MonthlyPayment = 30000L;
obj1.Periods = 36L;
obj1.WsBankOrderId = "543214223";
obj1.DownPaymentAmount = 2000L;
obj1.CreditAmount = 28000L;
obj1.Status = "PAID";
obj1.LoanAmount = 28000L;
obj1.BizContent = "qdadqq";
obj1.ChannelCode = "addqq";
req.Param0_ = obj1;
TmallCarFinanceStatusSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarFinanceStatusSyncRequest;
$param0 = new CreditLoanStatusSyncReq;
$param0->finance_plan_id="31222";
$param0->order_id="553322113222";
$param0->monthly_payment="30000";
$param0->periods="36";
$param0->ws_bank_order_id="543214223";
$param0->down_payment_amount="2000";
$param0->credit_amount="28000";
$param0->status="PAID";
$param0->loan_amount="28000";
$param0->biz_content="qdadqq";
$param0->channel_code="addqq";
$req->setParam0(json_encode($param0));
$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.car.finance.status.sync' \
-d 'partner_id=apidoc' \
-d 'session=4df591a7-b5f2-4227-8743-3e0866baa8ca' \
-d 'sign=AFD494FB79AE4B02D3BF8659020C2348' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A53%3A57' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarFinanceStatusSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="数据结构示例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.car.finance.status.sync");
add_param(pRequest,"param0","数据结构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.car.finance.status.sync', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})