TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RetrieveRecordSearchRequest req = new RetrieveRecordSearchRequest();
req.setPageSize(20L);
req.setPageNo(1L);
req.setStartTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
req.setEndTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
req.setStrategyId("134");
req.setTid(412212212122L);
req.setRefundId(43434343434L);
req.setBuyerNick("张三");
RetrieveRecordSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RetrieveRecordSearchRequest req = new RetrieveRecordSearchRequest();
req.PageSize = 20L;
req.PageNo = 1L;
req.StartTime = DateTime.Parse("2000-01-01 00:00:00");
req.EndTime = DateTime.Parse("2000-01-01 00:00:00");
req.StrategyId = "134";
req.Tid = 412212212122L;
req.RefundId = 43434343434L;
req.BuyerNick = "张三";
RetrieveRecordSearchResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RetrieveRecordSearchRequest;
$req->setPageSize("20");
$req->setPageNo("1");
$req->setStartTime("2000-01-01 00:00:00");
$req->setEndTime("2000-01-01 00:00:00");
$req->setStrategyId("134");
$req->setTid("412212212122");
$req->setRefundId("43434343434");
$req->setBuyerNick("张三");
$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=taobao.retrieve.record.search' \
-d 'partner_id=apidoc' \
-d 'session=239c6816-68df-47c3-926c-9a4058b7d84a' \
-d 'sign=89F11987B09B6053CA9343FE3439DEC2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-09+20%3A05%3A34' \
-d 'v=2.0' \
-d 'buyer_nick=%E5%BC%A0%E4%B8%89' \
-d 'end_time=2000-01-01+00%3A00%3A00' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'refund_id=43434343434' \
-d 'start_time=2000-01-01+00%3A00%3A00' \
-d 'strategy_id=134' \
-d 'tid=412212212122'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RetrieveRecordSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.page_size=20
req.page_no=1
req.start_time="2000-01-01 00:00:00"
req.end_time="2000-01-01 00:00:00"
req.strategy_id="134"
req.tid=412212212122
req.refund_id=43434343434
req.buyer_nick="张三"
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,"taobao.retrieve.record.search");
add_param(pRequest,"page_size","20");
add_param(pRequest,"page_no","1");
add_param(pRequest,"start_time","2000-01-01 00:00:00");
add_param(pRequest,"end_time","2000-01-01 00:00:00");
add_param(pRequest,"strategy_id","134");
add_param(pRequest,"tid","412212212122");
add_param(pRequest,"refund_id","43434343434");
add_param(pRequest,"buyer_nick","张三");
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('taobao.retrieve.record.search', {
'page_size':'20',
'page_no':'1',
'start_time':'2000-01-01 00:00:00',
'end_time':'2000-01-01 00:00:00',
'strategy_id':'134',
'tid':'412212212122',
'refund_id':'43434343434',
'buyer_nick':'张三'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})