TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAisComponentCustomerInventoryPostRequest req = new AlibabaAisComponentCustomerInventoryPostRequest();
AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryDto obj1 = new AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryDto();
List<AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDto> list3 = new ArrayList<AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDto>();
AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDto obj4 = new AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDto();
list3.add(obj4);
obj4.setInventoryBatch("20180808");
obj4.setMpn("厂商 bom 名称");
obj4.setConfigModel("N58.2B.C3V1P0U2");
obj4.setCustomerInventoryLineNumber("1");
obj4.setDeliveredQuantity(100L);
obj4.setDeliveringQuantity(100L);
obj4.setVendorInventoryQuantity(100L);
obj1.setCustomerInventoryList(list3);
obj1.setRemark("供应商选填");
obj1.setInventoryType("1");
obj1.setVersionSeqNo("1527473306070");
obj1.setMachineBrand("品牌code");
obj1.setInventoryDirective("1527473306070");
obj1.setFactoryCode("North-001");
obj1.setInventoryPartBelonging("ODM/S54/AQ7/Z97");
req.setParam0(obj1);
AlibabaAisComponentCustomerInventoryPostResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAisComponentCustomerInventoryPostRequest req = new AlibabaAisComponentCustomerInventoryPostRequest();
AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryDtoDomain obj1 = new AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryDtoDomain();
List<AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDtoDomain> list3 = new List<AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDtoDomain>();
AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDtoDomain obj4 = new AlibabaAisComponentCustomerInventoryPostRequest.CustomerInventoryLinesDtoDomain();
list3.Add(obj4);
obj4.InventoryBatch = "20180808";
obj4.Mpn = "厂商 bom 名称";
obj4.ConfigModel = "N58.2B.C3V1P0U2";
obj4.CustomerInventoryLineNumber = "1";
obj4.DeliveredQuantity = 100L;
obj4.DeliveringQuantity = 100L;
obj4.VendorInventoryQuantity = 100L;
obj1.CustomerInventoryList= list3;
obj1.Remark = "供应商选填";
obj1.InventoryType = "1";
obj1.VersionSeqNo = "1527473306070";
obj1.MachineBrand = "品牌code";
obj1.InventoryDirective = "1527473306070";
obj1.FactoryCode = "North-001";
obj1.InventoryPartBelonging = "ODM/S54/AQ7/Z97";
req.Param0_ = obj1;
AlibabaAisComponentCustomerInventoryPostResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAisComponentCustomerInventoryPostRequest;
$param0 = new CustomerInventoryDto;
$customer_inventory_list = new CustomerInventoryLinesDto;
$customer_inventory_list->inventory_batch="20180808";
$customer_inventory_list->mpn="厂商 bom 名称";
$customer_inventory_list->config_model="N58.2B.C3V1P0U2";
$customer_inventory_list->customer_inventory_line_number="1";
$customer_inventory_list->delivered_quantity="100";
$customer_inventory_list->delivering_quantity="100";
$customer_inventory_list->vendor_inventory_quantity="100";
$param0->customer_inventory_list = $customer_inventory_list;
$param0->remark="供应商选填";
$param0->inventory_type="1";
$param0->version_seq_no="1527473306070";
$param0->machine_brand="品牌code";
$param0->inventory_directive="1527473306070";
$param0->factory_code="North-001";
$param0->inventory_part_belonging="ODM/S54/AQ7/Z97";
$req->setParam0(json_encode($param0));
$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.ais.component.customer.inventory.post' \
-d 'partner_id=apidoc' \
-d 'sign=D87C05389164FF64EF80DF13B4A60F35' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+17%3A28%3A50' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAisComponentCustomerInventoryPostRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0=""
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.ais.component.customer.inventory.post");
add_param(pRequest,"param0","数据结构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.ais.component.customer.inventory.post', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})