TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytWesSearchbillRequest req = new AlibabaAlihealthDrugKytWesSearchbillRequest();
req.setRefEntId("320000000000127980");
req.setLicenseToken("服务时间");
req.setAuthRefUserId("320000000000127980");
req.setBeginDate("2022-01-01");
req.setEndDate("2022-03-01");
req.setPartnerIdSend("320000000000127980");
req.setPartnerIdRecv("320000000000127980");
req.setAgentRefUserId("320000000000127980");
req.setBillCode("20230101");
req.setBillType("A");
req.setCurPage(1L);
req.setPageSize(10L);
req.setUploadTimeBegin("2023-01-01 12:00:00");
req.setUploadTimeEnd("2023-01-02 12:00:00");
AlibabaAlihealthDrugKytWesSearchbillResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthDrugKytWesSearchbillRequest req = new AlibabaAlihealthDrugKytWesSearchbillRequest();
req.RefEntId = "320000000000127980";
req.LicenseToken = "服务时间";
req.AuthRefUserId = "320000000000127980";
req.BeginDate = "2022-01-01";
req.EndDate = "2022-03-01";
req.PartnerIdSend = "320000000000127980";
req.PartnerIdRecv = "320000000000127980";
req.AgentRefUserId = "320000000000127980";
req.BillCode = "20230101";
req.BillType = "A";
req.CurPage = 1L;
req.PageSize = 10L;
req.UploadTimeBegin = "2023-01-01 12:00:00";
req.UploadTimeEnd = "2023-01-02 12:00:00";
AlibabaAlihealthDrugKytWesSearchbillResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthDrugKytWesSearchbillRequest;
$req->setRefEntId("320000000000127980");
$req->setLicenseToken("服务时间");
$req->setAuthRefUserId("320000000000127980");
$req->setBeginDate("2022-01-01");
$req->setEndDate("2022-03-01");
$req->setPartnerIdSend("320000000000127980");
$req->setPartnerIdRecv("320000000000127980");
$req->setAgentRefUserId("320000000000127980");
$req->setBillCode("20230101");
$req->setBillType("A");
$req->setCurPage("1");
$req->setPageSize("10");
$req->setUploadTimeBegin("2023-01-01 12:00:00");
$req->setUploadTimeEnd("2023-01-02 12:00:00");
$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.alihealth.drug.kyt.wes.searchbill' \
-d 'partner_id=apidoc' \
-d 'sign=630BEFF76B3D55054DBABA80898F89F0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+00%3A58%3A08' \
-d 'v=2.0' \
-d 'agent_ref_user_id=320000000000127980' \
-d 'auth_ref_user_id=320000000000127980' \
-d 'begin_date=2022-01-01' \
-d 'bill_code=20230101' \
-d 'bill_type=A' \
-d 'cur_page=1' \
-d 'end_date=2022-03-01' \
-d 'license_token=%E6%9C%8D%E5%8A%A1%E6%97%B6%E9%97%B4' \
-d 'page_size=10' \
-d 'partner_id_recv=320000000000127980' \
-d 'partner_id_send=320000000000127980' \
-d 'ref_ent_id=320000000000127980' \
-d 'upload_time_begin=2023-01-01+12%3A00%3A00' \
-d 'upload_time_end=2023-01-02+12%3A00%3A00'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthDrugKytWesSearchbillRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ref_ent_id="320000000000127980"
req.license_token="服务时间"
req.auth_ref_user_id="320000000000127980"
req.begin_date="2022-01-01"
req.end_date="2022-03-01"
req.partner_id_send="320000000000127980"
req.partner_id_recv="320000000000127980"
req.agent_ref_user_id="320000000000127980"
req.bill_code="20230101"
req.bill_type="A"
req.cur_page=1
req.page_size=10
req.upload_time_begin="2023-01-01 12:00:00"
req.upload_time_end="2023-01-02 12:00:00"
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.alihealth.drug.kyt.wes.searchbill");
add_param(pRequest,"ref_ent_id","320000000000127980");
add_param(pRequest,"license_token","服务时间");
add_param(pRequest,"auth_ref_user_id","320000000000127980");
add_param(pRequest,"begin_date","2022-01-01");
add_param(pRequest,"end_date","2022-03-01");
add_param(pRequest,"partner_id_send","320000000000127980");
add_param(pRequest,"partner_id_recv","320000000000127980");
add_param(pRequest,"agent_ref_user_id","320000000000127980");
add_param(pRequest,"bill_code","20230101");
add_param(pRequest,"bill_type","A");
add_param(pRequest,"cur_page","1");
add_param(pRequest,"page_size","10");
add_param(pRequest,"upload_time_begin","2023-01-01 12:00:00");
add_param(pRequest,"upload_time_end","2023-01-02 12:00:00");
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.alihealth.drug.kyt.wes.searchbill', {
'ref_ent_id':'320000000000127980',
'license_token':'服务时间',
'auth_ref_user_id':'320000000000127980',
'begin_date':'2022-01-01',
'end_date':'2022-03-01',
'partner_id_send':'320000000000127980',
'partner_id_recv':'320000000000127980',
'agent_ref_user_id':'320000000000127980',
'bill_code':'20230101',
'bill_type':'A',
'cur_page':'1',
'page_size':'10',
'upload_time_begin':'2023-01-01 12:00:00',
'upload_time_end':'2023-01-02 12:00:00'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})