TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscFundUnionTransferRequest req = new AlibabaAlscFundUnionTransferRequest();
AlibabaAlscFundUnionTransferRequest.GatewayCommonRequest obj1 = new AlibabaAlscFundUnionTransferRequest.GatewayCommonRequest();
AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParams obj2 = new AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParams();
obj2.setTradeNo("20220326121900000001");
obj2.setTotalAmount("1.00");
obj2.setMerchantCode("35001_31332423");
obj2.setMerchantName("35001_31332423");
obj2.setOutAccountNumber("6228480000000000001");
obj2.setOutAccountName("测试");
obj2.setInAccountNumber("6228480000000000001");
obj2.setInAccountName("测试");
obj2.setInAccountBankName("测试");
obj2.setInAccountBankAddress("测试");
obj2.setInAccountType("01");
obj2.setInAccountBankNode("43534534");
obj2.setCurrencyCode("156");
obj2.setRemark("备注");
obj2.setTradeDate("20220411");
obj2.setSendTime("112301");
obj2.setComment("附言");
obj2.setVirAccountNo("9550880222067600188");
obj1.setChannelRequestParams(obj2);
req.setGatewayRequest(obj1);
AlibabaAlscFundUnionTransferResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscFundUnionTransferRequest req = new AlibabaAlscFundUnionTransferRequest();
AlibabaAlscFundUnionTransferRequest.GatewayCommonRequestDomain obj1 = new AlibabaAlscFundUnionTransferRequest.GatewayCommonRequestDomain();
AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParamsDomain obj2 = new AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParamsDomain();
obj2.TradeNo = "20220326121900000001";
obj2.TotalAmount = "1.00";
obj2.MerchantCode = "35001_31332423";
obj2.MerchantName = "35001_31332423";
obj2.OutAccountNumber = "6228480000000000001";
obj2.OutAccountName = "测试";
obj2.InAccountNumber = "6228480000000000001";
obj2.InAccountName = "测试";
obj2.InAccountBankName = "测试";
obj2.InAccountBankAddress = "测试";
obj2.InAccountType = "01";
obj2.InAccountBankNode = "43534534";
obj2.CurrencyCode = "156";
obj2.Remark = "备注";
obj2.TradeDate = "20220411";
obj2.SendTime = "112301";
obj2.Comment = "附言";
obj2.VirAccountNo = "9550880222067600188";
obj1.ChannelRequestParams= obj2;
req.GatewayRequest_ = obj1;
AlibabaAlscFundUnionTransferResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscFundUnionTransferRequest;
$gateway_request = new GatewayCommonRequest;
$channel_request_params = new UnionSinglePayReqParams;
$channel_request_params->trade_no="20220326121900000001";
$channel_request_params->total_amount="1.00";
$channel_request_params->merchant_code="35001_31332423";
$channel_request_params->merchant_name="35001_31332423";
$channel_request_params->out_account_number="6228480000000000001";
$channel_request_params->out_account_name="测试";
$channel_request_params->in_account_number="6228480000000000001";
$channel_request_params->in_account_name="测试";
$channel_request_params->in_account_bank_name="测试";
$channel_request_params->in_account_bank_address="测试";
$channel_request_params->in_account_type="01";
$channel_request_params->in_account_bank_node="43534534";
$channel_request_params->currency_code="156";
$channel_request_params->remark="备注";
$channel_request_params->trade_date="20220411";
$channel_request_params->send_time="112301";
$channel_request_params->comment="附言";
$channel_request_params->vir_account_no="9550880222067600188";
$gateway_request->channel_request_params = $channel_request_params;
$req->setGatewayRequest(json_encode($gateway_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.alsc.fund.union.transfer' \
-d 'partner_id=apidoc' \
-d 'sign=655F96884DE93D7ECC00181FAD0E5312' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+16%3A46%3A24' \
-d 'v=2.0' \
-d 'gateway_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscFundUnionTransferRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.gateway_request="数据结构示例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.alsc.fund.union.transfer");
add_param(pRequest,"gateway_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.alsc.fund.union.transfer', {
'gateway_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})