TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFundplatformAccountChargeRequest req = new AlibabaFundplatformAccountChargeRequest();
req.setParamLong(12345L);
AlibabaFundplatformAccountChargeRequest.ChargeRequest obj1 = new AlibabaFundplatformAccountChargeRequest.ChargeRequest();
obj1.setAmount(10000L);
obj1.setDescription("XX账户充值");
obj1.setOutBizId("A1234567890");
obj1.setPayerAlipayEmail("20881021382177910156");
obj1.setPayerAlipayNo("v9urtb@126.com");
obj1.setSubBizType(910000001L);
obj1.setUserId(12345L);
req.setParamChargeRequest(obj1);
AlibabaFundplatformAccountChargeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFundplatformAccountChargeRequest req = new AlibabaFundplatformAccountChargeRequest();
req.ParamLong = 12345L;
AlibabaFundplatformAccountChargeRequest.ChargeRequestDomain obj1 = new AlibabaFundplatformAccountChargeRequest.ChargeRequestDomain();
obj1.Amount = 10000L;
obj1.Description = "XX账户充值";
obj1.OutBizId = "A1234567890";
obj1.PayerAlipayEmail = "20881021382177910156";
obj1.PayerAlipayNo = "v9urtb@126.com";
obj1.SubBizType = 910000001L;
obj1.UserId = 12345L;
req.ParamChargeRequest_ = obj1;
AlibabaFundplatformAccountChargeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFundplatformAccountChargeRequest;
$req->setParamLong("12345");
$param_charge_request = new ChargeRequest;
$param_charge_request->amount="10000";
$param_charge_request->description="XX账户充值";
$param_charge_request->out_biz_id="A1234567890";
$param_charge_request->payer_alipay_email="20881021382177910156";
$param_charge_request->payer_alipay_no="v9urtb@126.com";
$param_charge_request->sub_biz_type="910000001";
$param_charge_request->user_id="12345";
$req->setParamChargeRequest(json_encode($param_charge_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.fundplatform.account.charge' \
-d 'partner_id=apidoc' \
-d 'sign=DA27974AB5DCF0AC079B22B3778F52D5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-15+22%3A39%3A52' \
-d 'v=2.0' \
-d 'param_charge_request=null' \
-d 'param_long=12345'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFundplatformAccountChargeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_long=12345
req.param_charge_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,"alibaba.fundplatform.account.charge");
add_param(pRequest,"param_long","12345");
add_param(pRequest,"param_charge_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('alibaba.fundplatform.account.charge', {
'param_long':'12345',
'param_charge_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})