TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelTuanEticketPackageValidateRequest req = new AlitripHotelTuanEticketPackageValidateRequest();
req.setBillInfos("用户:97.5:01");
req.setBillType(2L);
req.setCategoryEnum("HOTEL_TAOCAN_CATEGORY");
req.setCountingType(0L);
req.setIsMoneyToStore(0L);
req.setIsSubAccount(0L);
req.setMultipleTimes(0L);
req.setNightCount(2L);
req.setOnline(0L);
req.setPassMerchantUserId(0L);
req.setSendMerchantUserId(0L);
req.setStoreSellerId(456456L);
req.setStoreSellerNick("hotel123123");
AlitripHotelTuanEticketPackageValidateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
                 
                
                    ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripHotelTuanEticketPackageValidateRequest req = new AlitripHotelTuanEticketPackageValidateRequest();
req.BillInfos = "用户:97.5:01";
req.BillType = 2L;
req.CategoryEnum = "HOTEL_TAOCAN_CATEGORY";
req.CountingType = 0L;
req.IsMoneyToStore = 0L;
req.IsSubAccount = 0L;
req.MultipleTimes = 0L;
req.NightCount = 2L;
req.Online = 0L;
req.PassMerchantUserId = 0L;
req.SendMerchantUserId = 0L;
req.StoreSellerId = 456456L;
req.StoreSellerNick = "hotel123123";
AlitripHotelTuanEticketPackageValidateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
                 
                
                    $c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripHotelTuanEticketPackageValidateRequest;
$req->setBillInfos("用户:97.5:01");
$req->setBillType("2");
$req->setCategoryEnum("HOTEL_TAOCAN_CATEGORY");
$req->setCountingType("0");
$req->setIsMoneyToStore("0");
$req->setIsSubAccount("0");
$req->setMultipleTimes("0");
$req->setNightCount("2");
$req->setOnline("0");
$req->setPassMerchantUserId("0");
$req->setSendMerchantUserId("0");
$req->setStoreSellerId("456456");
$req->setStoreSellerNick("hotel123123");
$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=alitrip.hotel.tuan.eticket.package.validate' \
-d 'partner_id=apidoc' \
-d 'session=1598331d-9983-44ec-ab59-fee212f9f71a' \
-d 'sign=FB8E6B25F4094C38F66BF870DDAEA255' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-11-04+12%3A40%3A33' \
-d 'v=2.0' \
-d 'bill_infos=%E7%94%A8%E6%88%B7%3A97.5%3A01' \
-d 'bill_type=2' \
-d 'category_enum=HOTEL_TAOCAN_CATEGORY' \
-d 'counting_type=0' \
-d 'is_money_to_store=0' \
-d 'is_sub_account=0' \
-d 'multiple_times=0' \
-d 'night_count=2' \
-d 'online=0' \
-d 'pass_merchant_user_id=0' \
-d 'send_merchant_user_id=0' \
-d 'store_seller_id=456456' \
-d 'store_seller_nick=hotel123123'
                 
                
                    
                        # -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripHotelTuanEticketPackageValidateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.bill_infos="用户:97.5:01"
req.bill_type=2
req.category_enum="HOTEL_TAOCAN_CATEGORY"
req.counting_type=0
req.is_money_to_store=0
req.is_sub_account=0
req.multiple_times=0
req.night_count=2
req.online=0
req.pass_merchant_user_id=0
req.send_merchant_user_id=0
req.store_seller_id=456456
req.store_seller_nick="hotel123123"
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,"alitrip.hotel.tuan.eticket.package.validate");
add_param(pRequest,"bill_infos","用户:97.5:01");
add_param(pRequest,"bill_type","2");
add_param(pRequest,"category_enum","HOTEL_TAOCAN_CATEGORY");
add_param(pRequest,"counting_type","0");
add_param(pRequest,"is_money_to_store","0");
add_param(pRequest,"is_sub_account","0");
add_param(pRequest,"multiple_times","0");
add_param(pRequest,"night_count","2");
add_param(pRequest,"online","0");
add_param(pRequest,"pass_merchant_user_id","0");
add_param(pRequest,"send_merchant_user_id","0");
add_param(pRequest,"store_seller_id","456456");
add_param(pRequest,"store_seller_nick","hotel123123");
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',
	'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alitrip.hotel.tuan.eticket.package.validate', {
	'bill_infos':'用户:97.5:01',
	'bill_type':'2',
	'category_enum':'HOTEL_TAOCAN_CATEGORY',
	'counting_type':'0',
	'is_money_to_store':'0',
	'is_sub_account':'0',
	'multiple_times':'0',
	'night_count':'2',
	'online':'0',
	'pass_merchant_user_id':'0',
	'send_merchant_user_id':'0',
	'store_seller_id':'456456',
	'store_seller_nick':'hotel123123'
}, function(error, response) {
	if (!error) console.log(response);
	else console.log(error);
})