TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RefundsApplyGetRequest req = new RefundsApplyGetRequest();
req.setFields("refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee");
req.setSellerNick("hz0799");
req.setStatus("WAIT_SELLER_CONFIRM_GOODS");
req.setType("fixed");
req.setPageNo(1L);
req.setPageSize(40L);
RefundsApplyGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RefundsApplyGetRequest req = new RefundsApplyGetRequest();
req.Fields = "refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee";
req.SellerNick = "hz0799";
req.Status = "WAIT_SELLER_CONFIRM_GOODS";
req.Type = "fixed";
req.PageNo = 1L;
req.PageSize = 40L;
RefundsApplyGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RefundsApplyGetRequest;
$req->setFields("refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee");
$req->setSellerNick("hz0799");
$req->setStatus("WAIT_SELLER_CONFIRM_GOODS");
$req->setType("fixed");
$req->setPageNo("1");
$req->setPageSize("40");
$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.refunds.apply.get' \
-d 'partner_id=apidoc' \
-d 'session=ffdd6c00-4834-43bb-8023-ea4ff9c17967' \
-d 'sign=81F1125222CDA5DAD31939EEA4648D18' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+16%3A57%3A41' \
-d 'v=2.0' \
-d 'fields=refund_id%2C+tid%2C+title%2C+buyer_nick%2C+seller_nick%2C+total_fee%2C+status%2C+created%2C+refund_fee' \
-d 'page_no=1' \
-d 'page_size=40' \
-d 'seller_nick=hz0799' \
-d 'status=WAIT_SELLER_CONFIRM_GOODS' \
-d 'type=fixed'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RefundsApplyGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.fields="refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee"
req.seller_nick="hz0799"
req.status="WAIT_SELLER_CONFIRM_GOODS"
req.type="fixed"
req.page_no=1
req.page_size=40
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.refunds.apply.get");
add_param(pRequest,"fields","refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee");
add_param(pRequest,"seller_nick","hz0799");
add_param(pRequest,"status","WAIT_SELLER_CONFIRM_GOODS");
add_param(pRequest,"type","fixed");
add_param(pRequest,"page_no","1");
add_param(pRequest,"page_size","40");
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.refunds.apply.get', {
'fields':'refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee',
'seller_nick':'hz0799',
'status':'WAIT_SELLER_CONFIRM_GOODS',
'type':'fixed',
'page_no':'1',
'page_size':'40'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})