TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthBtobRefundorderConfirmRequest req = new AlibabaAlihealthBtobRefundorderConfirmRequest();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTO obj1 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTO();
obj1.setRefundOrderCode("JKRSO251104155228525");
List<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO> list3 = new ArrayList<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO>();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO obj4 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO();
list3.add(obj4);
obj4.setOutQuantity(10L);
obj4.setProduceDate("2021-10-11 00:00:00");
obj4.setValidDate("2024-10-11 00:00:00");
obj4.setBatchCode("4R7D55");
obj4.setScItemId(67342342L);
obj4.setBarCode("69343434");
obj1.setRefundItemList(list3);
obj1.setDeliveryName("五常门店");
obj1.setDeliveryCode("SHANGOU_123");
req.setB2bRefundConfirmDto(obj1);
AlibabaAlihealthBtobRefundorderConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthBtobRefundorderConfirmRequest req = new AlibabaAlihealthBtobRefundorderConfirmRequest();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTODomain obj1 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTODomain();
obj1.RefundOrderCode = "JKRSO251104155228525";
List<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTODomain> list3 = new List<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTODomain>();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTODomain obj4 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTODomain();
list3.Add(obj4);
obj4.OutQuantity = 10L;
obj4.ProduceDate = "2021-10-11 00:00:00";
obj4.ValidDate = "2024-10-11 00:00:00";
obj4.BatchCode = "4R7D55";
obj4.ScItemId = 67342342L;
obj4.BarCode = "69343434";
obj1.RefundItemList= list3;
obj1.DeliveryName = "五常门店";
obj1.DeliveryCode = "SHANGOU_123";
req.B2bRefundConfirmDto_ = obj1;
AlibabaAlihealthBtobRefundorderConfirmResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthBtobRefundorderConfirmRequest;
$b2b_refund_confirm_dto = new B2bRefundConfirmDTO;
$b2b_refund_confirm_dto->refund_order_code="JKRSO251104155228525";
$refund_item_list = new B2bRefundConfirmItemDTO;
$refund_item_list->out_quantity="10";
$refund_item_list->produce_date="2021-10-11 00:00:00";
$refund_item_list->valid_date="2024-10-11 00:00:00";
$refund_item_list->batch_code="4R7D55";
$refund_item_list->sc_item_id="67342342";
$refund_item_list->bar_code="69343434";
$b2b_refund_confirm_dto->refund_item_list = $refund_item_list;
$b2b_refund_confirm_dto->delivery_name="五常门店";
$b2b_refund_confirm_dto->delivery_code="SHANGOU_123";
$req->setB2bRefundConfirmDto(json_encode($b2b_refund_confirm_dto));
$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=alibaba.alihealth.btob.refundorder.confirm' \
-d 'partner_id=apidoc' \
-d 'sign=1B813456FA2636711225799BE43F3CE4' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-11-19+06%3A35%3A29' \
-d 'v=2.0' \
-d 'b2b_refund_confirm_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthBtobRefundorderConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.b2b_refund_confirm_dto="数据结构示例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,"alibaba.alihealth.btob.refundorder.confirm");
add_param(pRequest,"b2b_refund_confirm_dto","数据结构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('alibaba.alihealth.btob.refundorder.confirm', {
'b2b_refund_confirm_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})