TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceProxyCompanyReturnRequest req = new AlibabaEinvoiceProxyCompanyReturnRequest();
req.setSerialNumber("202006031415590001");
req.setBizMessage("成功");
req.setBizCode("B0000");
List<AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDto> list2 = new ArrayList<AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDto>();
AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDto obj3 = new AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDto();
list2.add(obj3);
obj3.setTaxName("小薇食品公司");
obj3.setTaxNo("91000001XR");
obj3.setStockFlag(1L);
req.setTaxList(list2);
req.setQueryStatus(1L);
AlibabaEinvoiceProxyCompanyReturnResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaEinvoiceProxyCompanyReturnRequest req = new AlibabaEinvoiceProxyCompanyReturnRequest();
req.SerialNumber = "202006031415590001";
req.BizMessage = "成功";
req.BizCode = "B0000";
List<AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDtoDomain> list2 = new List<AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDtoDomain>();
AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDtoDomain obj3 = new AlibabaEinvoiceProxyCompanyReturnRequest.ProxyTaxInfoDtoDomain();
list2.Add(obj3);
obj3.TaxName = "小薇食品公司";
obj3.TaxNo = "91000001XR";
obj3.StockFlag = 1L;
req.TaxList_ = list2;
req.QueryStatus = 1L;
AlibabaEinvoiceProxyCompanyReturnResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaEinvoiceProxyCompanyReturnRequest;
$req->setSerialNumber("202006031415590001");
$req->setBizMessage("成功");
$req->setBizCode("B0000");
$tax_list = new ProxyTaxInfoDto;
$tax_list->tax_name="小薇食品公司";
$tax_list->tax_no="91000001XR";
$tax_list->stock_flag="1";
$req->setTaxList(json_encode($tax_list));
$req->setQueryStatus("1");
$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.proxy.company.return' \
-d 'partner_id=apidoc' \
-d 'sign=F93BE643F15EA6AA0D17F3E7B39C70CC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-16+02%3A37%3A59' \
-d 'v=2.0' \
-d 'biz_code=B0000' \
-d 'biz_message=%E6%88%90%E5%8A%9F' \
-d 'query_status=1' \
-d 'serial_number=202006031415590001' \
-d 'tax_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaEinvoiceProxyCompanyReturnRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.serial_number="202006031415590001"
req.biz_message="成功"
req.biz_code="B0000"
req.tax_list=""
req.query_status=1
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.proxy.company.return");
add_param(pRequest,"serial_number","202006031415590001");
add_param(pRequest,"biz_message","成功");
add_param(pRequest,"biz_code","B0000");
add_param(pRequest,"tax_list","数据结构JSON示例");
add_param(pRequest,"query_status","1");
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.proxy.company.return', {
'serial_number':'202006031415590001',
'biz_message':'成功',
'biz_code':'B0000',
'tax_list':'数据结构JSON示例',
'query_status':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})