TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAxinTransPayRegisterReapplyRequest req = new AlitripAxinTransPayRegisterReapplyRequest();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterCreateDto obj1 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterCreateDto();
obj1.setAliasName("测试商家");
obj1.setAlipayLogonId("a@126.com");
obj1.setBindingAlipayLogonId("a@126.com");
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterAddress obj2 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterAddress();
obj2.setAddress("大华小区");
obj2.setCityCode("1000");
obj2.setCountryCode("1");
obj2.setDistrictCode("1");
obj2.setProvinceCode("1");
obj1.setBusinessAddress(obj2);
obj1.setCertImage("1.jpg");
obj1.setCertNo("123423");
obj1.setCertType("1");
obj1.setContactName("张三");
obj1.setContactPhone("1534353454");
obj1.setExternalId("1");
obj1.setLegalCertBackImage("1.jpg");
obj1.setLegalCertFrontImage("2.jpg");
obj1.setLegalCertNo("1");
obj1.setLegalCertType("1");
obj1.setLegalName("李四");
obj1.setMcc("1234");
obj1.setMerchantType("1-企业,2-事业单位");
obj1.setName("天云公司");
List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualification> list4 = new ArrayList<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualification>();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualification obj5 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualification();
list4.add(obj5);
obj5.setImageId("1.jpg");
obj5.setType("1");
obj1.setQualifications(list4);
obj1.setService("app支付");
obj1.setServicePhone("13434343434");
List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfo> list7 = new ArrayList<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfo>();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfo obj8 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfo();
list7.add(obj8);
obj8.setSiteName("天云网络");
obj8.setSiteType("1-网站");
obj8.setSiteUrl("axin.com");
obj1.setSites(list7);
req.setAxinPayRegisterCreateDTO(obj1);
AlitripAxinTransPayRegisterReapplyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAxinTransPayRegisterReapplyRequest req = new AlitripAxinTransPayRegisterReapplyRequest();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterCreateDtoDomain obj1 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterCreateDtoDomain();
obj1.AliasName = "测试商家";
obj1.AlipayLogonId = "a@126.com";
obj1.BindingAlipayLogonId = "a@126.com";
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterAddressDomain obj2 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterAddressDomain();
obj2.Address = "大华小区";
obj2.CityCode = "1000";
obj2.CountryCode = "1";
obj2.DistrictCode = "1";
obj2.ProvinceCode = "1";
obj1.BusinessAddress= obj2;
obj1.CertImage = "1.jpg";
obj1.CertNo = "123423";
obj1.CertType = "1";
obj1.ContactName = "张三";
obj1.ContactPhone = "1534353454";
obj1.ExternalId = "1";
obj1.LegalCertBackImage = "1.jpg";
obj1.LegalCertFrontImage = "2.jpg";
obj1.LegalCertNo = "1";
obj1.LegalCertType = "1";
obj1.LegalName = "李四";
obj1.Mcc = "1234";
obj1.MerchantType = "1-企业,2-事业单位";
obj1.Name = "天云公司";
List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualificationDomain> list4 = new List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualificationDomain>();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualificationDomain obj5 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterQualificationDomain();
list4.Add(obj5);
obj5.ImageId = "1.jpg";
obj5.Type = "1";
obj1.Qualifications= list4;
obj1.Service = "app支付";
obj1.ServicePhone = "13434343434";
List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfoDomain> list7 = new List<AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfoDomain>();
AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfoDomain obj8 = new AlitripAxinTransPayRegisterReapplyRequest.AxinPayRegisterSiteInfoDomain();
list7.Add(obj8);
obj8.SiteName = "天云网络";
obj8.SiteType = "1-网站";
obj8.SiteUrl = "axin.com";
obj1.Sites= list7;
req.AxinPayRegisterCreateDTO_ = obj1;
AlitripAxinTransPayRegisterReapplyResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAxinTransPayRegisterReapplyRequest;
$axin_pay_register_create_d_t_o = new AxinPayRegisterCreateDto;
$axin_pay_register_create_d_t_o->alias_name="测试商家";
$axin_pay_register_create_d_t_o->alipay_logon_id="a@126.com";
$axin_pay_register_create_d_t_o->binding_alipay_logon_id="a@126.com";
$business_address = new AxinPayRegisterAddress;
$business_address->address="大华小区";
$business_address->city_code="1000";
$business_address->country_code="1";
$business_address->district_code="1";
$business_address->province_code="1";
$axin_pay_register_create_d_t_o->business_address = $business_address;
$axin_pay_register_create_d_t_o->cert_image="1.jpg";
$axin_pay_register_create_d_t_o->cert_no="123423";
$axin_pay_register_create_d_t_o->cert_type="1";
$axin_pay_register_create_d_t_o->contact_name="张三";
$axin_pay_register_create_d_t_o->contact_phone="1534353454";
$axin_pay_register_create_d_t_o->external_id="1";
$axin_pay_register_create_d_t_o->legal_cert_back_image="1.jpg";
$axin_pay_register_create_d_t_o->legal_cert_front_image="2.jpg";
$axin_pay_register_create_d_t_o->legal_cert_no="1";
$axin_pay_register_create_d_t_o->legal_cert_type="1";
$axin_pay_register_create_d_t_o->legal_name="李四";
$axin_pay_register_create_d_t_o->mcc="1234";
$axin_pay_register_create_d_t_o->merchant_type="1-企业,2-事业单位";
$axin_pay_register_create_d_t_o->name="天云公司";
$qualifications = new AxinPayRegisterQualification;
$qualifications->image_id="1.jpg";
$qualifications->type="1";
$axin_pay_register_create_d_t_o->qualifications = $qualifications;
$axin_pay_register_create_d_t_o->service="app支付";
$axin_pay_register_create_d_t_o->service_phone="13434343434";
$sites = new AxinPayRegisterSiteInfo;
$sites->site_name="天云网络";
$sites->site_type="1-网站";
$sites->site_url="axin.com";
$axin_pay_register_create_d_t_o->sites = $sites;
$req->setAxinPayRegisterCreateDTO(json_encode($axin_pay_register_create_d_t_o));
$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=taobao.alitrip.axin.trans.pay.register.reapply' \
-d 'partner_id=apidoc' \
-d 'session=d9311156-f30c-4336-b2a9-3261c0e5410c' \
-d 'sign=F2DA7934936FEFB3A4C4BC6E1EFFC854' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-06-04+01%3A26%3A05' \
-d 'v=2.0' \
-d 'axin_pay_register_create_d_t_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAxinTransPayRegisterReapplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.axin_pay_register_create_d_t_o=""
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,"taobao.alitrip.axin.trans.pay.register.reapply");
add_param(pRequest,"axin_pay_register_create_d_t_o","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.alitrip.axin.trans.pay.register.reapply', {
'axin_pay_register_create_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})