TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceMerchantQueryRequest req = new AlibabaEinvoiceMerchantQueryRequest();
req.setPayeeRegisterNo("1234567");
req.setPlatformCode("TB");
req.setPlatformUserId("taobao_user_001");
req.setSourcePlatformCode("TB");
AlibabaEinvoiceMerchantQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaEinvoiceMerchantQueryRequest req = new AlibabaEinvoiceMerchantQueryRequest();
req.PayeeRegisterNo = "1234567";
req.PlatformCode = "TB";
req.PlatformUserId = "taobao_user_001";
req.SourcePlatformCode = "TB";
AlibabaEinvoiceMerchantQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaEinvoiceMerchantQueryRequest;
$req->setPayeeRegisterNo("1234567");
$req->setPlatformCode("TB");
$req->setPlatformUserId("taobao_user_001");
$req->setSourcePlatformCode("TB");
$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.einvoice.merchant.query' \
-d 'partner_id=apidoc' \
-d 'sign=CC1840BB65B2FC7456CFE9DCBCCCCD64' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+21%3A28%3A08' \
-d 'v=2.0' \
-d 'payee_register_no=1234567' \
-d 'platform_code=TB' \
-d 'platform_user_id=taobao_user_001' \
-d 'source_platform_code=TB'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaEinvoiceMerchantQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.payee_register_no="1234567"
req.platform_code="TB"
req.platform_user_id="taobao_user_001"
req.source_platform_code="TB"
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.einvoice.merchant.query");
add_param(pRequest,"payee_register_no","1234567");
add_param(pRequest,"platform_code","TB");
add_param(pRequest,"platform_user_id","taobao_user_001");
add_param(pRequest,"source_platform_code","TB");
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.einvoice.merchant.query', {
'payee_register_no':'1234567',
'platform_code':'TB',
'platform_user_id':'taobao_user_001',
'source_platform_code':'TB'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})