TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PcRefundReturnRequest req = new PcRefundReturnRequest();
PcRefundReturnRequest.RefundReturnGoodsReq obj1 = new PcRefundReturnRequest.RefundReturnGoodsReq();
obj1.setDisputeId("10000001");
obj1.setLogisticsCompanyCode("10000001");
obj1.setLogisticsCompanyName("顺丰");
obj1.setLogisticsNo("10000001");
obj1.setMobileNum("10000001");
obj1.setLeaveMessageContent("快递选的货到付款");
List<PcRefundReturnRequest.RefundMessagePicVo> list3 = new ArrayList<PcRefundReturnRequest.RefundMessagePicVo>();
PcRefundReturnRequest.RefundMessagePicVo obj4 = new PcRefundReturnRequest.RefundMessagePicVo();
list3.add(obj4);
obj4.setMessagePic("xxxxx");
obj4.setMessagePicDesc("xxxxx");
obj1.setLeaveMessagePics(list3);
obj1.setBuyerId(10000001L);
req.setRefundReturnGoodsReq(obj1);
PcRefundReturnResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
PcRefundReturnRequest req = new PcRefundReturnRequest();
PcRefundReturnRequest.RefundReturnGoodsReqDomain obj1 = new PcRefundReturnRequest.RefundReturnGoodsReqDomain();
obj1.DisputeId = "10000001";
obj1.LogisticsCompanyCode = "10000001";
obj1.LogisticsCompanyName = "顺丰";
obj1.LogisticsNo = "10000001";
obj1.MobileNum = "10000001";
obj1.LeaveMessageContent = "快递选的货到付款";
List<PcRefundReturnRequest.RefundMessagePicVoDomain> list3 = new List<PcRefundReturnRequest.RefundMessagePicVoDomain>();
PcRefundReturnRequest.RefundMessagePicVoDomain obj4 = new PcRefundReturnRequest.RefundMessagePicVoDomain();
list3.Add(obj4);
obj4.MessagePic = "xxxxx";
obj4.MessagePicDesc = "xxxxx";
obj1.LeaveMessagePics= list3;
obj1.BuyerId = 10000001L;
req.RefundReturnGoodsReq_ = obj1;
PcRefundReturnResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new PcRefundReturnRequest;
$refund_return_goods_req = new RefundReturnGoodsReq;
$refund_return_goods_req->dispute_id="10000001";
$refund_return_goods_req->logistics_company_code="10000001";
$refund_return_goods_req->logistics_company_name="顺丰";
$refund_return_goods_req->logistics_no="10000001";
$refund_return_goods_req->mobile_num="10000001";
$refund_return_goods_req->leave_message_content="快递选的货到付款";
$leave_message_pics = new RefundMessagePicVo;
$leave_message_pics->message_pic="xxxxx";
$leave_message_pics->message_pic_desc="xxxxx";
$refund_return_goods_req->leave_message_pics = $leave_message_pics;
$refund_return_goods_req->buyer_id="10000001";
$req->setRefundReturnGoodsReq(json_encode($refund_return_goods_req));
$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=taobao.pc.refund.return' \
-d 'partner_id=apidoc' \
-d 'sign=E9433FF92C5B02A110CF68D621AE0D8B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-08+03%3A07%3A32' \
-d 'v=2.0' \
-d 'refund_return_goods_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.PcRefundReturnRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.refund_return_goods_req=""
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,"taobao.pc.refund.return");
add_param(pRequest,"refund_return_goods_req","数据结构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('taobao.pc.refund.return', {
'refund_return_goods_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})