文档中心 > API类目 > AIS基石API

alibaba.ais.component.customer.inventory.post (整机库存反馈)

整机厂家基于阿里通知的库存类型,全量反馈库存信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 CustomerInventoryDto 必须 CustomerInventoryDto
  • customer_inventory_list
  • CustomerInventoryLinesDto []
  • 必须
  • xx
  • 客户库存行JSON数组
  • └ inventory_batch
  • String
  • 可选
  • 20180808
  • 入库时间
  • └ mpn
  • String
  • 必须
  • 厂商 bom 名称
  • 厂商 bom 名称
  • └ config_model
  • String
  • 可选
  • N58.2B.C3V1P0U2
  • 三段机型 即 ALIBom
  • └ customer_inventory_line_number
  • String
  • 必须
  • 1
  • 客户库存行,从1开始递增
  • └ delivered_quantity
  • Number
  • 可选
  • 100
  • 厂家收到PO已发货量
  • └ delivering_quantity
  • Number
  • 可选
  • 100
  • 厂家收到PO未发货量
  • └ vendor_inventory_quantity
  • Number
  • 必须
  • 100
  • 厂家实际库存
  • └ remark
  • String
  • 可选
  • 供应商选填
  • 备注
  • └ inventory_type
  • String
  • 必须
  • 1
  • 库存类型:(1代表整机)
  • └ version_seq_no
  • String
  • 必须
  • 1527473306070
  • 版本号(timestamp)
  • └ machine_brand
  • String
  • 必须
  • 品牌code
  • 整机品牌
  • └ inventory_directive
  • String
  • 必须
  • 1527473306070
  • 库存反馈指令
  • └ factory_code
  • String
  • 可选
  • North-001
  • 工厂编码
  • └ inventory_part_belonging
  • String
  • 可选
  • ODM/S54/AQ7/Z97
  • 物料子库的归属(特定厂商必传)

响应参数

名称 类型 示例值 描述
result BaseResDto BaseResDto result
  • └ err_msg
  • String
  • 成功
  • 异常文案(失败时必填)
  • └ err_code
  • String
  • 00000000
  • 调用返回码,00000000表示成功(失败时必填)
  • └ is_success
  • Boolean
  • true
  • is_success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<alibaba_ais_component_customer_inventory_post_response>
    <result>
        <err_msg>成功</err_msg>
        <err_code>00000000</err_code>
        <is_success>true</is_success>
    </result>
</alibaba_ais_component_customer_inventory_post_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部