TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDutyfreeStoreRefundAgreeRequest req = new AlibabaDutyfreeStoreRefundAgreeRequest();
AlibabaDutyfreeStoreRefundAgreeRequest.OrderAgreeRequest obj1 = new AlibabaDutyfreeStoreRefundAgreeRequest.OrderAgreeRequest();
obj1.setOcctime(167664348854757L);
obj1.setBizOrderId("111");
obj1.setExtInfos("111");
obj1.setRestock(false);
obj1.setCid("111");
obj1.setRefund(true);
req.setParamOrderAgreeRequest(obj1);
AlibabaDutyfreeStoreRefundAgreeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDutyfreeStoreRefundAgreeRequest req = new AlibabaDutyfreeStoreRefundAgreeRequest();
AlibabaDutyfreeStoreRefundAgreeRequest.OrderAgreeRequestDomain obj1 = new AlibabaDutyfreeStoreRefundAgreeRequest.OrderAgreeRequestDomain();
obj1.Occtime = 167664348854757L;
obj1.BizOrderId = "111";
obj1.ExtInfos = "111";
obj1.Restock = false;
obj1.Cid = "111";
obj1.Refund = true;
req.ParamOrderAgreeRequest_ = obj1;
AlibabaDutyfreeStoreRefundAgreeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDutyfreeStoreRefundAgreeRequest;
$param_order_agree_request = new OrderAgreeRequest;
$param_order_agree_request->occtime="167664348854757";
$param_order_agree_request->biz_order_id="111";
$param_order_agree_request->ext_infos="111";
$param_order_agree_request->restock="false";
$param_order_agree_request->cid="111";
$param_order_agree_request->refund="true";
$req->setParamOrderAgreeRequest(json_encode($param_order_agree_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.dutyfree.store.refund.agree' \
-d 'partner_id=apidoc' \
-d 'sign=42F7A3E8270543AD05FB0E0B8A1320DD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-16+22%3A06%3A13' \
-d 'v=2.0' \
-d 'param_order_agree_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDutyfreeStoreRefundAgreeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_order_agree_request=""
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.dutyfree.store.refund.agree");
add_param(pRequest,"param_order_agree_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.dutyfree.store.refund.agree', {
'param_order_agree_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})