TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianLocalreturnClaimapplyRequest req = new AlipayBaoxianLocalreturnClaimapplyRequest();
AlipayBaoxianLocalreturnClaimapplyRequest.InsTopLocalReturnClaimApplyRequest obj1 = new AlipayBaoxianLocalreturnClaimapplyRequest.InsTopLocalReturnClaimApplyRequest();
obj1.setFulfilOrderId("1234567");
obj1.setApplyArea("HK");
obj1.setRefundReason("不需要了");
obj1.setDisputeOrderId("1234567");
obj1.setExtCol("{\"sellerName\":\"商家名称\",\"sellerAlipayId\":\"2088xxx\",\"platformAlipayId\":\"2088xxx\"}");
obj1.setRefundPrice("123");
obj1.setServiceOrderId("1234567");
req.setInsTopLocalReturnClaimApplyRequest(obj1);
AlipayBaoxianLocalreturnClaimapplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlipayBaoxianLocalreturnClaimapplyRequest req = new AlipayBaoxianLocalreturnClaimapplyRequest();
AlipayBaoxianLocalreturnClaimapplyRequest.InsTopLocalReturnClaimApplyRequestDomain obj1 = new AlipayBaoxianLocalreturnClaimapplyRequest.InsTopLocalReturnClaimApplyRequestDomain();
obj1.FulfilOrderId = "1234567";
obj1.ApplyArea = "HK";
obj1.RefundReason = "不需要了";
obj1.DisputeOrderId = "1234567";
obj1.ExtCol = "{\"sellerName\":\"商家名称\",\"sellerAlipayId\":\"2088xxx\",\"platformAlipayId\":\"2088xxx\"}";
obj1.RefundPrice = "123";
obj1.ServiceOrderId = "1234567";
req.InsTopLocalReturnClaimApplyRequest_ = obj1;
AlipayBaoxianLocalreturnClaimapplyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlipayBaoxianLocalreturnClaimapplyRequest;
$ins_top_local_return_claim_apply_request = new InsTopLocalReturnClaimApplyRequest;
$ins_top_local_return_claim_apply_request->fulfil_order_id="1234567";
$ins_top_local_return_claim_apply_request->apply_area="HK";
$ins_top_local_return_claim_apply_request->refund_reason="不需要了";
$ins_top_local_return_claim_apply_request->dispute_order_id="1234567";
$ins_top_local_return_claim_apply_request->ext_col="{\"sellerName\":\"商家名称\",\"sellerAlipayId\":\"2088xxx\",\"platformAlipayId\":\"2088xxx\"}";
$ins_top_local_return_claim_apply_request->refund_price="123";
$ins_top_local_return_claim_apply_request->service_order_id="1234567";
$req->setInsTopLocalReturnClaimApplyRequest(json_encode($ins_top_local_return_claim_apply_request));
$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=alipay.baoxian.localreturn.claimapply' \
-d 'partner_id=apidoc' \
-d 'sign=E16FAF8921AC1558B6E0D21BBF287C4B' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-03+18%3A21%3A54' \
-d 'v=2.0' \
-d 'ins_top_local_return_claim_apply_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlipayBaoxianLocalreturnClaimapplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ins_top_local_return_claim_apply_request="数据结构示例JSON格式"
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,"alipay.baoxian.localreturn.claimapply");
add_param(pRequest,"ins_top_local_return_claim_apply_request","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alipay.baoxian.localreturn.claimapply', {
'ins_top_local_return_claim_apply_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})