TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpIndustrySupplierLogisticsPriceRequest req = new AlibabaAscpIndustrySupplierLogisticsPriceRequest();
AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilPriceRequest obj1 = new AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilPriceRequest();
obj1.setMailNo("SF1000001");
obj1.setOrderId("20250401321134");
obj1.setOperateTime("1659080423659");
obj1.setMeterageType(1L);
obj1.setGoodsWeight(5000L);
obj1.setRealWeight(4980L);
obj1.setLength(100L);
obj1.setWidth(50L);
obj1.setHeight(30L);
List<AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTO> list3 = new ArrayList<AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTO>();
AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTO obj4 = new AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTO();
list3.add(obj4);
obj4.setCode("dismantle_fee");
obj4.setValue("10000");
obj4.setDesc("保价费");
obj1.setFeeInfoList(list3);
obj1.setFeature("{\"serviceType\": 0}");
req.setReverseFulfilPriceRequest(obj1);
AlibabaAscpIndustrySupplierLogisticsPriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpIndustrySupplierLogisticsPriceRequest req = new AlibabaAscpIndustrySupplierLogisticsPriceRequest();
AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilPriceRequestDomain obj1 = new AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilPriceRequestDomain();
obj1.MailNo = "SF1000001";
obj1.OrderId = "20250401321134";
obj1.OperateTime = "1659080423659";
obj1.MeterageType = 1L;
obj1.GoodsWeight = 5000L;
obj1.RealWeight = 4980L;
obj1.Length = 100L;
obj1.Width = 50L;
obj1.Height = 30L;
List<AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTODomain> list3 = new List<AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTODomain>();
AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTODomain obj4 = new AlibabaAscpIndustrySupplierLogisticsPriceRequest.ReverseFulfilFeeInfoDTODomain();
list3.Add(obj4);
obj4.Code = "dismantle_fee";
obj4.Value = "10000";
obj4.Desc = "保价费";
obj1.FeeInfoList= list3;
obj1.Feature = "{\"serviceType\": 0}";
req.ReverseFulfilPriceRequest_ = obj1;
AlibabaAscpIndustrySupplierLogisticsPriceResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpIndustrySupplierLogisticsPriceRequest;
$reverse_fulfil_price_request = new ReverseFulfilPriceRequest;
$reverse_fulfil_price_request->mail_no="SF1000001";
$reverse_fulfil_price_request->order_id="20250401321134";
$reverse_fulfil_price_request->operate_time="1659080423659";
$reverse_fulfil_price_request->meterage_type="1";
$reverse_fulfil_price_request->goods_weight="5000";
$reverse_fulfil_price_request->real_weight="4980";
$reverse_fulfil_price_request->length="100";
$reverse_fulfil_price_request->width="50";
$reverse_fulfil_price_request->height="30";
$fee_info_list = new ReverseFulfilFeeInfoDTO;
$fee_info_list->code="dismantle_fee";
$fee_info_list->value="10000";
$fee_info_list->desc="保价费";
$reverse_fulfil_price_request->fee_info_list = $fee_info_list;
$reverse_fulfil_price_request->feature="{\"serviceType\": 0}";
$req->setReverseFulfilPriceRequest(json_encode($reverse_fulfil_price_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=alibaba.ascp.industry.supplier.logistics.price' \
-d 'partner_id=apidoc' \
-d 'sign=09489D837F136313FDA6FB8DCE47AAAA' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+20%3A27%3A59' \
-d 'v=2.0' \
-d 'reverse_fulfil_price_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpIndustrySupplierLogisticsPriceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.reverse_fulfil_price_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,"alibaba.ascp.industry.supplier.logistics.price");
add_param(pRequest,"reverse_fulfil_price_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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.ascp.industry.supplier.logistics.price', {
'reverse_fulfil_price_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})