TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsWmsEntryorderStockingApplyRequest req = new LogisticsWmsEntryorderStockingApplyRequest();
LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemStockingSupplyDto obj1 = new LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemStockingSupplyDto();
obj1.setOwnerCode("AX766232");
obj1.setWarehouseCode("STA");
obj1.setEntryOrderCode("LBX02241014350021633");
obj1.setOrderType("CGRK");
obj1.setOutBizCode("gsid23474662");
List<LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDto> list3 = new ArrayList<LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDto>();
LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDto obj4 = new LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDto();
list3.add(obj4);
obj4.setEntryOrderLineNo("123");
obj4.setItemCode("75887622");
obj4.setActualQty("20");
obj4.setExtendProps("{}");
obj1.setOrderLines(list3);
obj1.setExtendProps("{}");
req.setStockingSupplyRequest(obj1);
LogisticsWmsEntryorderStockingApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LogisticsWmsEntryorderStockingApplyRequest req = new LogisticsWmsEntryorderStockingApplyRequest();
LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemStockingSupplyDtoDomain obj1 = new LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemStockingSupplyDtoDomain();
obj1.OwnerCode = "AX766232";
obj1.WarehouseCode = "STA";
obj1.EntryOrderCode = "LBX02241014350021633";
obj1.OrderType = "CGRK";
obj1.OutBizCode = "gsid23474662";
List<LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDtoDomain> list3 = new List<LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDtoDomain>();
LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDtoDomain obj4 = new LogisticsWmsEntryorderStockingApplyRequest.WmsTraceabilityItemDtoDomain();
list3.Add(obj4);
obj4.EntryOrderLineNo = "123";
obj4.ItemCode = "75887622";
obj4.ActualQty = "20";
obj4.ExtendProps = "{}";
obj1.OrderLines= list3;
obj1.ExtendProps = "{}";
req.StockingSupplyRequest_ = obj1;
LogisticsWmsEntryorderStockingApplyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LogisticsWmsEntryorderStockingApplyRequest;
$stocking_supply_request = new WmsTraceabilityItemStockingSupplyDto;
$stocking_supply_request->owner_code="AX766232";
$stocking_supply_request->warehouse_code="STA";
$stocking_supply_request->entry_order_code="LBX02241014350021633";
$stocking_supply_request->order_type="CGRK";
$stocking_supply_request->out_biz_code="gsid23474662";
$order_lines = new WmsTraceabilityItemDto;
$order_lines->entry_order_line_no="123";
$order_lines->item_code="75887622";
$order_lines->actual_qty="20";
$order_lines->extend_props="{}";
$stocking_supply_request->order_lines = $order_lines;
$stocking_supply_request->extend_props="{}";
$req->setStockingSupplyRequest(json_encode($stocking_supply_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=taobao.logistics.wms.entryorder.stocking.apply' \
-d 'partner_id=apidoc' \
-d 'sign=68F8FE63DC5C8370A0F15AE6D8FD518B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-12-14+23%3A55%3A05' \
-d 'v=2.0' \
-d 'stocking_supply_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LogisticsWmsEntryorderStockingApplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.stocking_supply_request=""
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.logistics.wms.entryorder.stocking.apply");
add_param(pRequest,"stocking_supply_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('taobao.logistics.wms.entryorder.stocking.apply', {
'stocking_supply_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})