文档中心 > API类目 > 天猫精灵供应链数字工厂

aliyun.gsc.production.inventorydaily.report (库存日结存与出入库上报)

用于工厂库存日结存、良品出入库数据上报。 日结存每日仅允许一次调用,出入库数据根据不同批次可以多次

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
inventory_daily_param InventoryDailyParam [] 可选
  • 最大列表长度:999
  • 库存日结存,长度限制100
    • └ product_code
    • String
    • 必须
    • 1ACXXXXX
    • 产品编码
    • └ storage_time
    • Date
    • 必须
    • 2020-10-27 17:58:00
    • 业务日期
    • └ actual_warehouse_num
    • Number
    • 可选
    • 10
    • 实际入库流水数量
    • └ vendor_name
    • String
    • 可选
    • 供应商名称A
    • 供应商名称
    • └ product_name
    • String
    • 可选
    • 产品A
    • 产品名称
    • └ vendor_code
    • String
    • 可选
    • vendor001
    • 供应商编码
    • └ factory_inventory_num
    • Number
    • 可选
    • 5
    • 工厂日结存数量
    • └ actual_warehouse_output_num
    • Number
    • 可选
    • 10
    • 实际出库流水数量

    响应参数

    名称 类型 示例值 描述
    response_code String 200 返回状态码
    error_message String no 错误信息
    message String 成功 消息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliyunGscProductionInventorydailyReportRequest req = new AliyunGscProductionInventorydailyReportRequest();
    List<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam> list2 = new ArrayList<AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam>();
    AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam obj3 = new AliyunGscProductionInventorydailyReportRequest.InventoryDailyParam();
    list2.add(obj3);
    obj3.setProductCode("1ACXXXXX");
    obj3.setStorageTime(StringUtils.parseDateTime("2020-10-27 17:58:00"));
    obj3.setActualWarehouseNum(10L);
    obj3.setVendorName("供应商名称A");
    obj3.setProductName("产品A");
    obj3.setVendorCode("vendor001");
    obj3.setFactoryInventoryNum(5L);
    obj3.setActualWarehouseOutputNum(10L);
    req.setInventoryDailyParam(list2);
    AliyunGscProductionInventorydailyReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliyun_gsc_production_inventorydaily_report_response>
        <response_code>200</response_code>
        <error_message>no</error_message>
        <message>成功</message>
    </aliyun_gsc_production_inventorydaily_report_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

    返回
    顶部