TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MosTaxiIsvRefundSyncRequest req = new MosTaxiIsvRefundSyncRequest();
MosTaxiIsvRefundSyncRequest.IsvTaxiOrderRefundSyncDto obj1 = new MosTaxiIsvRefundSyncRequest.IsvTaxiOrderRefundSyncDto();
obj1.setIsvOrderId("XD13243");
obj1.setReason("客诉");
List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDto> list3 = new ArrayList<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDto>();
MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDto obj4 = new MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDto();
list3.add(obj4);
obj4.setDescription("客诉问题退款");
obj4.setAmount(1000L);
obj1.setRefundItems(list3);
obj1.setOrderId("MJ121223243");
obj1.setSourceType(1L);
obj1.setRefundTime("2021-08-25 10:10:10");
obj1.setAdditionalPaymentAmount(0L);
obj1.setRemark("备注");
obj1.setChannelCode("XD");
obj1.setRefundAmount(1000L);
obj1.setOperationResult("同意");
List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDto> list6 = new ArrayList<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDto>();
MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDto obj7 = new MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDto();
list6.add(obj7);
obj7.setCount(1L);
obj7.setAmount(5L);
obj7.setId("12324323");
obj1.setRefundCouponItems(list6);
req.setIsvTaxiOrderRefundSync(obj1);
MosTaxiIsvRefundSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
MosTaxiIsvRefundSyncRequest req = new MosTaxiIsvRefundSyncRequest();
MosTaxiIsvRefundSyncRequest.IsvTaxiOrderRefundSyncDtoDomain obj1 = new MosTaxiIsvRefundSyncRequest.IsvTaxiOrderRefundSyncDtoDomain();
obj1.IsvOrderId = "XD13243";
obj1.Reason = "客诉";
List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDtoDomain> list3 = new List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDtoDomain>();
MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDtoDomain obj4 = new MosTaxiIsvRefundSyncRequest.TaxiOrderRefundItemDtoDomain();
list3.Add(obj4);
obj4.Description = "客诉问题退款";
obj4.Amount = 1000L;
obj1.RefundItems= list3;
obj1.OrderId = "MJ121223243";
obj1.SourceType = 1L;
obj1.RefundTime = "2021-08-25 10:10:10";
obj1.AdditionalPaymentAmount = 0L;
obj1.Remark = "备注";
obj1.ChannelCode = "XD";
obj1.RefundAmount = 1000L;
obj1.OperationResult = "同意";
List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDtoDomain> list6 = new List<MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDtoDomain>();
MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDtoDomain obj7 = new MosTaxiIsvRefundSyncRequest.TaxiOrderRefundCouponItemDtoDomain();
list6.Add(obj7);
obj7.Count = 1L;
obj7.Amount = 5L;
obj7.Id = "12324323";
obj1.RefundCouponItems= list6;
req.IsvTaxiOrderRefundSync_ = obj1;
MosTaxiIsvRefundSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new MosTaxiIsvRefundSyncRequest;
$isv_taxi_order_refund_sync = new IsvTaxiOrderRefundSyncDto;
$isv_taxi_order_refund_sync->isv_order_id="XD13243";
$isv_taxi_order_refund_sync->reason="客诉";
$refund_items = new TaxiOrderRefundItemDto;
$refund_items->description="客诉问题退款";
$refund_items->amount="1000";
$isv_taxi_order_refund_sync->refund_items = $refund_items;
$isv_taxi_order_refund_sync->order_id="MJ121223243";
$isv_taxi_order_refund_sync->source_type="1";
$isv_taxi_order_refund_sync->refund_time="2021-08-25 10:10:10";
$isv_taxi_order_refund_sync->additional_payment_amount="0";
$isv_taxi_order_refund_sync->remark="备注";
$isv_taxi_order_refund_sync->channel_code="XD";
$isv_taxi_order_refund_sync->refund_amount="1000";
$isv_taxi_order_refund_sync->operation_result="同意";
$refund_coupon_items = new TaxiOrderRefundCouponItemDto;
$refund_coupon_items->count="1";
$refund_coupon_items->amount="5";
$refund_coupon_items->id="12324323";
$isv_taxi_order_refund_sync->refund_coupon_items = $refund_coupon_items;
$req->setIsvTaxiOrderRefundSync(json_encode($isv_taxi_order_refund_sync));
$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.mos.taxi.isv.refund.sync' \
-d 'partner_id=apidoc' \
-d 'sign=48626198B8B7F3C8B793FDB1BC24154A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-04+12%3A14%3A20' \
-d 'v=2.0' \
-d 'isv_taxi_order_refund_sync=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.MosTaxiIsvRefundSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.isv_taxi_order_refund_sync=""
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.mos.taxi.isv.refund.sync");
add_param(pRequest,"isv_taxi_order_refund_sync","数据结构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.mos.taxi.isv.refund.sync', {
'isv_taxi_order_refund_sync':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})