TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelRefundGoodsWaybillRequest req = new AlibabaAscpChannelRefundGoodsWaybillRequest();
AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequest obj1 = new AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequest();
obj1.setOutRefundNo("qsk252525");
obj1.setRefundNo("253245252");
obj1.setLogisticsCompanyName("韵达");
obj1.setLogisticsCompanyCode("yundaex");
obj1.setLogisticsWaybillNo("5252523235235");
req.setRefundWayBillReq(obj1);
AlibabaAscpChannelRefundGoodsWaybillResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpChannelRefundGoodsWaybillRequest req = new AlibabaAscpChannelRefundGoodsWaybillRequest();
AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequestDomain obj1 = new AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequestDomain();
obj1.OutRefundNo = "qsk252525";
obj1.RefundNo = "253245252";
obj1.LogisticsCompanyName = "韵达";
obj1.LogisticsCompanyCode = "yundaex";
obj1.LogisticsWaybillNo = "5252523235235";
req.RefundWayBillReq_ = obj1;
AlibabaAscpChannelRefundGoodsWaybillResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpChannelRefundGoodsWaybillRequest;
$refund_way_bill_req = new ExternalRefundGoodsWaybillRequest;
$refund_way_bill_req->out_refund_no="qsk252525";
$refund_way_bill_req->refund_no="253245252";
$refund_way_bill_req->logistics_company_name="韵达";
$refund_way_bill_req->logistics_company_code="yundaex";
$refund_way_bill_req->logistics_waybill_no="5252523235235";
$req->setRefundWayBillReq(json_encode($refund_way_bill_req));
$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=alibaba.ascp.channel.refund.goods.waybill' \
-d 'partner_id=apidoc' \
-d 'session=4659f640-a9e7-4d19-b818-c6b63b2c4bf6' \
-d 'sign=DCB8554AC9E837AAFF9AB910972B2AC1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+17%3A13%3A55' \
-d 'v=2.0' \
-d 'refund_way_bill_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpChannelRefundGoodsWaybillRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.refund_way_bill_req=""
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,"alibaba.ascp.channel.refund.goods.waybill");
add_param(pRequest,"refund_way_bill_req","数据结构JSON示例");
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('alibaba.ascp.channel.refund.goods.waybill', {
'refund_way_bill_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})