TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest req = new AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest();
req.setRefEntId("320000000000127971");
req.setBeginDate("2022-03-01");
req.setEndDate("2022-03-15");
req.setBillType("A");
req.setBillCode("SYS_IN_201811061737543754_0002");
req.setDrugType("1");
req.setDealStatus("1");
req.setFromUserId("320000000000127971");
req.setToUserId("320000000000127971");
req.setAgentRefUserId("320000000000127971");
req.setPageSize(20L);
req.setPage(1L);
AlibabaAlihealthDrugtraceTopBillQueryBillstatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest req = new AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest();
req.RefEntId = "320000000000127971";
req.BeginDate = "2022-03-01";
req.EndDate = "2022-03-15";
req.BillType = "A";
req.BillCode = "SYS_IN_201811061737543754_0002";
req.DrugType = "1";
req.DealStatus = "1";
req.FromUserId = "320000000000127971";
req.ToUserId = "320000000000127971";
req.AgentRefUserId = "320000000000127971";
req.PageSize = 20L;
req.Page = 1L;
AlibabaAlihealthDrugtraceTopBillQueryBillstatusResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest;
$req->setRefEntId("320000000000127971");
$req->setBeginDate("2022-03-01");
$req->setEndDate("2022-03-15");
$req->setBillType("A");
$req->setBillCode("SYS_IN_201811061737543754_0002");
$req->setDrugType("1");
$req->setDealStatus("1");
$req->setFromUserId("320000000000127971");
$req->setToUserId("320000000000127971");
$req->setAgentRefUserId("320000000000127971");
$req->setPageSize("20");
$req->setPage("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.alihealth.drugtrace.top.bill.query.billstatus' \
-d 'partner_id=apidoc' \
-d 'sign=A0486DD7D09962192994C25FA7049D1B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+10%3A33%3A22' \
-d 'v=2.0' \
-d 'agent_ref_user_id=320000000000127971' \
-d 'begin_date=2022-03-01' \
-d 'bill_code=SYS_IN_201811061737543754_0002' \
-d 'bill_type=A' \
-d 'deal_status=1' \
-d 'drug_type=1' \
-d 'end_date=2022-03-15' \
-d 'from_user_id=320000000000127971' \
-d 'page=1' \
-d 'page_size=20' \
-d 'ref_ent_id=320000000000127971' \
-d 'to_user_id=320000000000127971'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthDrugtraceTopBillQueryBillstatusRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ref_ent_id="320000000000127971"
req.begin_date="2022-03-01"
req.end_date="2022-03-15"
req.bill_type="A"
req.bill_code="SYS_IN_201811061737543754_0002"
req.drug_type="1"
req.deal_status="1"
req.from_user_id="320000000000127971"
req.to_user_id="320000000000127971"
req.agent_ref_user_id="320000000000127971"
req.page_size=20
req.page=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.alihealth.drugtrace.top.bill.query.billstatus");
add_param(pRequest,"ref_ent_id","320000000000127971");
add_param(pRequest,"begin_date","2022-03-01");
add_param(pRequest,"end_date","2022-03-15");
add_param(pRequest,"bill_type","A");
add_param(pRequest,"bill_code","SYS_IN_201811061737543754_0002");
add_param(pRequest,"drug_type","1");
add_param(pRequest,"deal_status","1");
add_param(pRequest,"from_user_id","320000000000127971");
add_param(pRequest,"to_user_id","320000000000127971");
add_param(pRequest,"agent_ref_user_id","320000000000127971");
add_param(pRequest,"page_size","20");
add_param(pRequest,"page","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.alihealth.drugtrace.top.bill.query.billstatus', {
'ref_ent_id':'320000000000127971',
'begin_date':'2022-03-01',
'end_date':'2022-03-15',
'bill_type':'A',
'bill_code':'SYS_IN_201811061737543754_0002',
'drug_type':'1',
'deal_status':'1',
'from_user_id':'320000000000127971',
'to_user_id':'320000000000127971',
'agent_ref_user_id':'320000000000127971',
'page_size':'20',
'page':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})