TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TravelTicketOrderRefundRequest req = new TravelTicketOrderRefundRequest();
req.setRefundNum(1L);
req.setOrderId(12345678L);
req.setRefundStatus(1L);
req.setRefundFailureReason("审核拒绝");
req.setRefundBatchNo("1");
req.setRefundType(1L);
req.setFliggyRefundFlowId("test12345");
TravelTicketOrderRefundResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TravelTicketOrderRefundRequest req = new TravelTicketOrderRefundRequest();
req.RefundNum = 1L;
req.OrderId = 12345678L;
req.RefundStatus = 1L;
req.RefundFailureReason = "审核拒绝";
req.RefundBatchNo = "1";
req.RefundType = 1L;
req.FliggyRefundFlowId = "test12345";
TravelTicketOrderRefundResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TravelTicketOrderRefundRequest;
$req->setRefundNum("1");
$req->setOrderId("12345678");
$req->setRefundStatus("1");
$req->setRefundFailureReason("审核拒绝");
$req->setRefundBatchNo("1");
$req->setRefundType("1");
$req->setFliggyRefundFlowId("test12345");
$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.travel.ticket.order.refund' \
-d 'partner_id=apidoc' \
-d 'sign=DF427FB9A2B9DD118A30315D1C808305' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-12-05+03%3A16%3A58' \
-d 'v=2.0' \
-d 'fliggy_refund_flow_id=test12345' \
-d 'order_id=12345678' \
-d 'refund_batch_no=1' \
-d 'refund_failure_reason=%E5%AE%A1%E6%A0%B8%E6%8B%92%E7%BB%9D' \
-d 'refund_num=1' \
-d 'refund_status=1' \
-d 'refund_type=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TravelTicketOrderRefundRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.refund_num=1
req.order_id=12345678
req.refund_status=1
req.refund_failure_reason="审核拒绝"
req.refund_batch_no="1"
req.refund_type=1
req.fliggy_refund_flow_id="test12345"
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.travel.ticket.order.refund");
add_param(pRequest,"refund_num","1");
add_param(pRequest,"order_id","12345678");
add_param(pRequest,"refund_status","1");
add_param(pRequest,"refund_failure_reason","审核拒绝");
add_param(pRequest,"refund_batch_no","1");
add_param(pRequest,"refund_type","1");
add_param(pRequest,"fliggy_refund_flow_id","test12345");
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.travel.ticket.order.refund', {
'refund_num':'1',
'order_id':'12345678',
'refund_status':'1',
'refund_failure_reason':'审核拒绝',
'refund_batch_no':'1',
'refund_type':'1',
'fliggy_refund_flow_id':'test12345'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})