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

aliyun.gsc.production.deliverinfo.report (创建阿里发运单)

创建阿里发运单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
deliver_info_param DeliverInfoParam 必须 发货信息参数
  • └ actual_departure_time
  • Date
  • 必须
  • 2020-10-27 17:58:00
  • 实际发货日期
  • └ tp_no
  • String
  • 必须
  • TPXXXXXXX
  • 厂商发货单号
  • └ vendor_name
  • String
  • 可选
  • 供应商名称A
  • 供应商名称
  • └ promise_arrival_time
  • Date
  • 必须
  • 2020-10-27 17:58:00
  • 承诺到货日期
  • deliver_info_items
  • DeliverInfoItem []
  • 必须
  • 发货信息项
  • └ delivery_quantity
  • Number
  • 必须
  • 10
  • 实际发货数量
  • └ product_name
  • String
  • 可选
  • 产品A
  • 产品名称
  • └ product_code
  • String
  • 必须
  • 1ACXXXXX
  • 产品编码
  • └ ship_instruction_line_no
  • String
  • 必须
  • DPXXXXXXX001
  • 分仓计划单行号
  • └ ship_instruction_no
  • String
  • 必须
  • DPXXXXXXX
  • 分仓计划单号
  • └ vendor_code
  • String
  • 可选
  • vendor001
  • 供应商编码
  • └ expected_arrival_time
  • Date
  • 必须
  • 2020-10-27 17:58:00
  • 期望到货时间

响应参数

名称 类型 示例值 描述
response_code String 200 返回状态码
data DeliverInfoResult {} 返回业务数据
  • └ atd_no
  • String
  • ATDXXXXXX
  • 阿里发运单号
  • └ vendor_code
  • String
  • vendor001
  • 供应商编码
  • └ vendor_name
  • String
  • 供应商名称A
  • 供应商名称
  • atd_lines
  • AtdLine []
  • {}
  • 发运单行信息
  • └ atd_line_no
  • String
  • 1
  • 阿里发运单行号
  • └ ship_instruction_line_no
  • String
  • DPXXXXXXX001
  • 分仓单行号
  • └ ship_instruction_no
  • String
  • DPXXXXXXX
  • 分仓单号
  • └ product_code
  • String
  • 1ACXXXXX
  • 产品编码
error_message String no 错误信息
message String 成功 信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunGscProductionDeliverinfoReportRequest req = new AliyunGscProductionDeliverinfoReportRequest();
AliyunGscProductionDeliverinfoReportRequest.DeliverInfoParam obj1 = new AliyunGscProductionDeliverinfoReportRequest.DeliverInfoParam();
obj1.setActualDepartureTime(StringUtils.parseDateTime("2020-10-27 17:58:00"));
obj1.setTpNo("TPXXXXXXX");
obj1.setVendorName("供应商名称A");
obj1.setPromiseArrivalTime(StringUtils.parseDateTime("2020-10-27 17:58:00"));
List<AliyunGscProductionDeliverinfoReportRequest.DeliverInfoItem> list3 = new ArrayList<AliyunGscProductionDeliverinfoReportRequest.DeliverInfoItem>();
AliyunGscProductionDeliverinfoReportRequest.DeliverInfoItem obj4 = new AliyunGscProductionDeliverinfoReportRequest.DeliverInfoItem();
list3.add(obj4);
obj4.setDeliveryQuantity(10L);
obj4.setProductName("产品A");
obj4.setProductCode("1ACXXXXX");
obj4.setShipInstructionLineNo("DPXXXXXXX001");
obj4.setShipInstructionNo("DPXXXXXXX");
obj1.setDeliverInfoItems(list3);
obj1.setVendorCode("vendor001");
obj1.setExpectedArrivalTime(StringUtils.parseDateTime("2020-10-27 17:58:00"));
req.setDeliverInfoParam(obj1);
AliyunGscProductionDeliverinfoReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_gsc_production_deliverinfo_report_response>
    <response_code>200</response_code>
    <data>
        <atd_no>ATDXXXXXX</atd_no>
        <vendor_code>vendor001</vendor_code>
        <vendor_name>供应商名称A</vendor_name>
        <atd_lines>
            <atd_line>
                <atd_line_no>1</atd_line_no>
                <ship_instruction_line_no>DPXXXXXXX001</ship_instruction_line_no>
                <ship_instruction_no>DPXXXXXXX</ship_instruction_no>
                <product_code>1ACXXXXX</product_code>
            </atd_line>
        </atd_lines>
    </data>
    <error_message>no</error_message>
    <message>成功</message>
</aliyun_gsc_production_deliverinfo_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

返回
顶部