TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallNrtPayMerchantMallSigningCreateRequest req = new TmallNrtPayMerchantMallSigningCreateRequest();
TmallNrtPayMerchantMallSigningCreateRequest.MallSigningReqDto obj1 = new TmallNrtPayMerchantMallSigningCreateRequest.MallSigningReqDto();
obj1.setAliasName("支付宝");
obj1.setCertType("201");
obj1.setServicePhone("0571-85022088");
obj1.setSignTimeWithIsv("2015-04-15");
obj1.setMcc("0530");
obj1.setLegalName("张三");
obj1.setCertNo("9133010608210550XR");
obj1.setBindingAlipayLogonId("asdf@163.com");
obj1.setLegalCertNo("100100198811110000");
obj1.setService("当面付");
List<TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDto> list3 = new ArrayList<TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDto>();
TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDto obj4 = new TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDto();
list3.add(obj4);
obj4.setName("凡笙");
obj4.setMobile("13885939943");
obj4.setTag(""06"");
obj4.setType("LEGAL_PERSON");
obj4.setEmail("fanshengtest01@alitest.com");
obj4.setPhone("0571-80877584");
obj1.setContactInfos(list3);
obj1.setName("阿里巴巴");
TmallNrtPayMerchantMallSigningCreateRequest.AddressInfoDto obj5 = new TmallNrtPayMerchantMallSigningCreateRequest.AddressInfoDto();
obj5.setDistrictCode("abc");
obj5.setAddress("文一西路");
obj5.setCityCode("ert");
obj5.setProvinceCode("lop");
obj1.setBusinessAddress(obj5);
obj1.setMerchantType("01");
List<TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDto> list7 = new ArrayList<TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDto>();
TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDto obj8 = new TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDto();
list7.add(obj8);
obj8.setAccountBranchName("招商银行杭州高新支行");
obj8.setAccountNo("6218855719679800");
obj8.setAccountType("DC");
obj8.setAccountInstName("招商银行");
obj8.setAccountInstCity("杭州市");
obj8.setAccountInstProvince("浙江省");
obj8.setAccountInstId("CMB");
obj8.setAccountHolderName("凡笙");
obj8.setUsageType("01");
obj1.setBizCards(list7);
obj1.setOutMerchantId("666");
obj1.setInDoorImages("0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg");
obj1.setOutDoorImages("0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg");
obj1.setCertImage("0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg");
obj1.setCertImageBack("0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg");
obj1.setStoreId(21003243L);
obj1.setChannelProduct(8L);
obj1.setLegalCertType("100");
obj1.setCertImageFront("0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg");
obj1.setGrantMode("MALL");
obj1.setCertName("阿里巴巴");
req.setReq(obj1);
TmallNrtPayMerchantMallSigningCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallNrtPayMerchantMallSigningCreateRequest req = new TmallNrtPayMerchantMallSigningCreateRequest();
TmallNrtPayMerchantMallSigningCreateRequest.MallSigningReqDtoDomain obj1 = new TmallNrtPayMerchantMallSigningCreateRequest.MallSigningReqDtoDomain();
obj1.AliasName = "支付宝";
obj1.CertType = "201";
obj1.ServicePhone = "0571-85022088";
obj1.SignTimeWithIsv = "2015-04-15";
obj1.Mcc = "0530";
obj1.LegalName = "张三";
obj1.CertNo = "9133010608210550XR";
obj1.BindingAlipayLogonId = "asdf@163.com";
obj1.LegalCertNo = "100100198811110000";
obj1.Service = "当面付";
List<TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDtoDomain> list3 = new List<TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDtoDomain>();
TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDtoDomain obj4 = new TmallNrtPayMerchantMallSigningCreateRequest.ContactInfoDtoDomain();
list3.Add(obj4);
obj4.Name = "凡笙";
obj4.Mobile = "13885939943";
obj4.Tag = ""06"";
obj4.Type = "LEGAL_PERSON";
obj4.Email = "fanshengtest01@alitest.com";
obj4.Phone = "0571-80877584";
obj1.ContactInfos= list3;
obj1.Name = "阿里巴巴";
TmallNrtPayMerchantMallSigningCreateRequest.AddressInfoDtoDomain obj5 = new TmallNrtPayMerchantMallSigningCreateRequest.AddressInfoDtoDomain();
obj5.DistrictCode = "abc";
obj5.Address = "文一西路";
obj5.CityCode = "ert";
obj5.ProvinceCode = "lop";
obj1.BusinessAddress= obj5;
obj1.MerchantType = "01";
List<TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDtoDomain> list7 = new List<TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDtoDomain>();
TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDtoDomain obj8 = new TmallNrtPayMerchantMallSigningCreateRequest.SettleCardInfoDtoDomain();
list7.Add(obj8);
obj8.AccountBranchName = "招商银行杭州高新支行";
obj8.AccountNo = "6218855719679800";
obj8.AccountType = "DC";
obj8.AccountInstName = "招商银行";
obj8.AccountInstCity = "杭州市";
obj8.AccountInstProvince = "浙江省";
obj8.AccountInstId = "CMB";
obj8.AccountHolderName = "凡笙";
obj8.UsageType = "01";
obj1.BizCards= list7;
obj1.OutMerchantId = "666";
obj1.InDoorImages = "0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
obj1.OutDoorImages = "0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
obj1.CertImage = "0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
obj1.CertImageBack = "0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
obj1.StoreId = 21003243L;
obj1.ChannelProduct = 8L;
obj1.LegalCertType = "100";
obj1.CertImageFront = "0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
obj1.GrantMode = "MALL";
obj1.CertName = "阿里巴巴";
req.Req_ = obj1;
TmallNrtPayMerchantMallSigningCreateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallNrtPayMerchantMallSigningCreateRequest;
$req = new MallSigningReqDto;
$req->alias_name="支付宝";
$req->cert_type="201";
$req->service_phone="0571-85022088";
$req->sign_time_with_isv="2015-04-15";
$req->mcc="0530";
$req->legal_name="张三";
$req->cert_no="9133010608210550XR";
$req->binding_alipay_logon_id="asdf@163.com";
$req->legal_cert_no="100100198811110000";
$req->service="当面付";
$contact_infos = new ContactInfoDto;
$contact_infos->name="凡笙";
$contact_infos->mobile="13885939943";
$contact_infos->tag="[\"06\"]";
$contact_infos->type="LEGAL_PERSON";
$contact_infos->email="fanshengtest01@alitest.com";
$contact_infos->phone="0571-80877584";
$req->setContactInfos(json_encode($contact_infos));
$req->name="阿里巴巴";
$business_address = new AddressInfoDto;
$business_address->district_code="abc";
$business_address->address="文一西路";
$business_address->city_code="ert";
$business_address->province_code="lop";
$req->setBusinessAddress(json_encode($business_address));
$req->merchant_type="01";
$biz_cards = new SettleCardInfoDto;
$biz_cards->account_branch_name="招商银行杭州高新支行";
$biz_cards->account_no="6218855719679800";
$biz_cards->account_type="DC";
$biz_cards->account_inst_name="招商银行";
$biz_cards->account_inst_city="杭州市";
$biz_cards->account_inst_province="浙江省";
$biz_cards->account_inst_id="CMB";
$biz_cards->account_holder_name="凡笙";
$biz_cards->usage_type="01";
$req->setBizCards(json_encode($biz_cards));
$req->out_merchant_id="666";
$req->in_door_images="0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
$req->out_door_images="0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
$req->cert_image="0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
$req->cert_image_back="0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
$req->store_id="21003243";
$req->channel_product="8";
$req->legal_cert_type="100";
$req->cert_image_front="0618e4e6-2a30-4796-b0ff-48121bc888d2.jpg";
$req->grant_mode="MALL";
$req->cert_name="阿里巴巴";
$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.nrt.pay.merchant.mall.signing.create' \
-d 'partner_id=apidoc' \
-d 'session=7532d526-39ae-4920-ac93-21c1bcbe3014' \
-d 'sign=4D689C421EA33729729E79A0A7C7A900' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+21%3A02%3A02' \
-d 'v=2.0' \
-d 'req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallNrtPayMerchantMallSigningCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.req=""
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.nrt.pay.merchant.mall.signing.create");
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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.nrt.pay.merchant.mall.signing.create', {
'req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})