TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest req = new AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest();
AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest.DrugStoreBillsRefundRequest obj1 = new AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest.DrugStoreBillsRefundRequest();
obj1.setPayOrderId("1234");
obj1.setPolicyId("234");
obj1.setMedicineId("1234");
obj1.setExtras("");
obj1.setMedicineQuantity(1L);
req.setDrugStoreBillsRefundRequest(obj1);
AlibabaAlihealthInsuranceDrugstoreOrderRefundResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest req = new AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest();
AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest.DrugStoreBillsRefundRequestDomain obj1 = new AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest.DrugStoreBillsRefundRequestDomain();
obj1.PayOrderId = "1234";
obj1.PolicyId = "234";
obj1.MedicineId = "1234";
obj1.Extras = "";
obj1.MedicineQuantity = 1L;
req.DrugStoreBillsRefundRequest_ = obj1;
AlibabaAlihealthInsuranceDrugstoreOrderRefundResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest;
$drug_store_bills_refund_request = new DrugStoreBillsRefundRequest;
$drug_store_bills_refund_request->pay_order_id="1234";
$drug_store_bills_refund_request->policy_id="234";
$drug_store_bills_refund_request->medicine_id="1234";
$drug_store_bills_refund_request->extras="";
$drug_store_bills_refund_request->medicine_quantity="1";
$req->setDrugStoreBillsRefundRequest(json_encode($drug_store_bills_refund_request));
$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.insurance.drugstore.order.refund' \
-d 'partner_id=apidoc' \
-d 'sign=C15E01626BA798467DD964894BBB5BFF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-17+01%3A56%3A46' \
-d 'v=2.0' \
-d 'drug_store_bills_refund_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthInsuranceDrugstoreOrderRefundRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.drug_store_bills_refund_request="数据结构示例JSON格式"
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.insurance.drugstore.order.refund");
add_param(pRequest,"drug_store_bills_refund_request","数据结构JSON示例");
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.insurance.drugstore.order.refund', {
'drug_store_bills_refund_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})