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

aliyun.gsc.production.finishednum.report (成品下线数量上报)

成品下线数量上报

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
finished_quantity_param FinishedQuantityParam [] 可选
  • 最大列表长度:1000
  • 成品下线数量请求参数
    • └ product_quantity
    • Number
    • 必须
    • 1
    • 数量
    • └ product_code
    • String
    • 必须
    • 1ACXXXXX
    • 产品编码
    • └ manufacture_type
    • String
    • 必须
    • ordinary/C2M
    • 制造类型
    • └ vendor_name
    • String
    • 可选
    • 供应商名称A
    • 供应商名称
    • └ production_time
    • Date
    • 必须
    • 2020-10-27 17:58:51
    • 日期
    • └ product_name
    • String
    • 可选
    • 产品A
    • 产品名称
    • └ vendor_code
    • String
    • 必须
    • vendor001
    • 供应商编码

    响应参数

    名称 类型 示例值 描述
    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);
    AliyunGscProductionFinishednumReportRequest req = new AliyunGscProductionFinishednumReportRequest();
    List<AliyunGscProductionFinishednumReportRequest.FinishedQuantityParam> list2 = new ArrayList<AliyunGscProductionFinishednumReportRequest.FinishedQuantityParam>();
    AliyunGscProductionFinishednumReportRequest.FinishedQuantityParam obj3 = new AliyunGscProductionFinishednumReportRequest.FinishedQuantityParam();
    list2.add(obj3);
    obj3.setProductQuantity(1L);
    obj3.setProductCode("1ACXXXXX");
    obj3.setManufactureType("ordinary/C2M");
    obj3.setVendorName("供应商名称A");
    obj3.setProductionTime(StringUtils.parseDateTime("2020-10-27 17:58:51"));
    obj3.setProductName("产品A");
    obj3.setVendorCode("vendor001");
    req.setFinishedQuantityParam(list2);
    AliyunGscProductionFinishednumReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

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

    返回
    顶部