TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RpRefundsAgreeRequest req = new RpRefundsAgreeRequest();
req.setCode("839212");
req.setRefundInfos("43234234|20000|1409294148714,3123123|12000|1409294148715");
req.setIgnoreCode(false);
RpRefundsAgreeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RpRefundsAgreeRequest req = new RpRefundsAgreeRequest();
req.Code = "839212";
req.RefundInfos = "43234234|20000|1409294148714,3123123|12000|1409294148715";
req.IgnoreCode = false;
RpRefundsAgreeResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RpRefundsAgreeRequest;
$req->setCode("839212");
$req->setRefundInfos("43234234|20000|1409294148714,3123123|12000|1409294148715");
$req->setIgnoreCode("false");
$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.rp.refunds.agree' \
-d 'partner_id=apidoc' \
-d 'session=f4bc3bdf-1c9e-4a57-8f06-23d3a7a06f1b' \
-d 'sign=EBE1F10CEF254F78B19A439E19416ECD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+19%3A38%3A42' \
-d 'v=2.0' \
-d 'code=839212' \
-d 'ignore_code=false' \
-d 'refund_infos=43234234%7C20000%7C1409294148714%2C3123123%7C12000%7C1409294148715'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RpRefundsAgreeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.code="839212"
req.refund_infos="43234234|20000|1409294148714,3123123|12000|1409294148715"
req.ignore_code=false
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.rp.refunds.agree");
add_param(pRequest,"code","839212");
add_param(pRequest,"refund_infos","43234234|20000|1409294148714,3123123|12000|1409294148715");
add_param(pRequest,"ignore_code","false");
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.rp.refunds.agree', {
'code':'839212',
'refund_infos':'43234234|20000|1409294148714,3123123|12000|1409294148715',
'ignore_code':'false'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})