文档中心 > API类目 > 信息平台-采购

alibaba.pur.supplier.asncreate (asn创建)

asn创建

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
asn SupplierAsnInfoVO 可选 asn头信息
  • asn_item_list
  • SupplierAsnItem []
  • 可选
  • asn行信息
  • └ line_close_reason
  • String
  • 可选
  • 暂无
  • 关闭原因
  • └ line_status
  • String
  • 可选
  • 暂无
  • asn行状态
  • └ line_remark
  • String
  • 可选
  • 暂无
  • asn行备注
  • └ cass
  • String
  • 可选
  • 暂无
  • 木箱号
  • └ container_no
  • String
  • 可选
  • 暂无
  • 集装箱号
  • └ packing_list_no
  • String
  • 可选
  • 暂无
  • 装箱单号
  • └ delivery_amount
  • String
  • 可选
  • 暂无
  • 发货金额
  • └ delivery_qty
  • String
  • 可选
  • 暂无
  • 发货数量
  • └ procurement_method
  • String
  • 可选
  • 暂无
  • 购买方式
  • └ shipping_batch_no
  • String
  • 必须
  • 暂无
  • 发货批次号
  • └ source_po_line_num
  • String
  • 可选
  • 暂无
  • asn来源订单行号
  • └ source_po_no
  • String
  • 可选
  • 暂无
  • asn来源订单号
  • └ is_po_source
  • String
  • 必须
  • 暂无
  • 根据订单发货标识
  • └ asn_line_num
  • String
  • 必须
  • 暂无
  • asn单行编号
  • └ delay_reason
  • String
  • 可选
  • 暂无
  • 延期原因
  • └ close_reason
  • String
  • 可选
  • 暂无
  • 关闭原因
  • └ status
  • String
  • 可选
  • 暂无
  • asn状态
  • └ remark
  • String
  • 可选
  • 暂无
  • asn备注
  • └ received_by
  • String
  • 可选
  • 暂无
  • 实际签收人
  • └ receipient
  • String
  • 可选
  • 暂无
  • 签收人
  • └ consignee_address
  • String
  • 可选
  • 暂无
  • 国际贸易交付地点
  • └ delivery_address
  • String
  • 可选
  • 暂无
  • 国内交付地点
  • └ consignee
  • String
  • 可选
  • 暂无
  • 签收方
  • └ cass
  • String
  • 可选
  • 暂无
  • 木箱号
  • └ container_no
  • String
  • 可选
  • 暂无
  • 集装箱号
  • └ packing_list_no
  • String
  • 可选
  • 暂无
  • 装箱单号
  • └ incoterms
  • String
  • 可选
  • 暂无
  • 国际贸易术语
  • └ tracking_num
  • String
  • 可选
  • 暂无
  • 物流单号
  • └ carrier_contact_phone
  • String
  • 可选
  • 暂无
  • 承运方联系电话
  • └ carrier_contact_email
  • String
  • 可选
  • 暂无
  • 承运方联系邮箱
  • └ carrier_contact
  • String
  • 可选
  • 暂无
  • 承运方联系人
  • └ carrier
  • String
  • 可选
  • 暂无
  • 承运人
  • └ shipment_type
  • String
  • 可选
  • 供应商直送or第三方配送
  • 配送方式
  • └ actual_arrival_date
  • Date
  • 可选
  • 2020-01-22 02:22:11
  • 实际发货日期
  • └ estimated_arrival_date
  • Date
  • 可选
  • 2020-01-22 02:22:11
  • 预计到货日期
  • └ demander_purchase_org_code
  • String
  • 可选
  • 0
  • 采购组织代码
  • └ ou_code
  • String
  • 必须
  • A50
  • Ou代码
  • └ supplier_name
  • String
  • 必须
  • 服务器供应商
  • 供应商名称
  • └ supplier_code
  • String
  • 必须
  • 暂无
  • 供应商编码

响应参数

名称 类型 示例值 描述
result ActionResult 暂无 获取url的出参
  • └ content
  • Boolean
  • true
  • 返回内容
  • └ error_msg
  • String
  • 字段不能为空
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurSupplierAsncreateRequest req = new AlibabaPurSupplierAsncreateRequest();
AlibabaPurSupplierAsncreateRequest.SupplierAsnInfoVO obj1 = new AlibabaPurSupplierAsncreateRequest.SupplierAsnInfoVO();
List<AlibabaPurSupplierAsncreateRequest.SupplierAsnItem> list3 = new ArrayList<AlibabaPurSupplierAsncreateRequest.SupplierAsnItem>();
AlibabaPurSupplierAsncreateRequest.SupplierAsnItem obj4 = new AlibabaPurSupplierAsncreateRequest.SupplierAsnItem();
list3.add(obj4);
obj4.setLineCloseReason("暂无");
obj4.setLineStatus("暂无");
obj4.setLineRemark("暂无");
obj4.setCass("暂无");
obj4.setContainerNo("暂无");
obj4.setPackingListNo("暂无");
obj4.setDeliveryAmount("暂无");
obj4.setDeliveryQty("暂无");
obj4.setProcurementMethod("暂无");
obj4.setShippingBatchNo("暂无");
obj4.setSourcePoLineNum("暂无");
obj4.setSourcePoNo("暂无");
obj4.setIsPoSource("暂无");
obj4.setAsnLineNum("暂无");
obj4.setDelayReason("暂无");
obj1.setAsnItemList(list3);
obj1.setCloseReason("暂无");
obj1.setStatus("暂无");
obj1.setRemark("暂无");
obj1.setReceivedBy("暂无");
obj1.setReceipient("暂无");
obj1.setConsigneeAddress("暂无");
obj1.setDeliveryAddress("暂无");
obj1.setConsignee("暂无");
obj1.setCass("暂无");
obj1.setContainerNo("暂无");
obj1.setPackingListNo("暂无");
obj1.setIncoterms("暂无");
obj1.setTrackingNum("暂无");
obj1.setCarrierContactPhone("暂无");
obj1.setCarrierContactEmail("暂无");
obj1.setCarrierContact("暂无");
obj1.setCarrier("暂无");
obj1.setShipmentType("供应商直送or第三方配送");
obj1.setActualArrivalDate(StringUtils.parseDateTime("2020-01-22 02:22:11"));
obj1.setEstimatedArrivalDate(StringUtils.parseDateTime("2020-01-22 02:22:11"));
obj1.setDemanderPurchaseOrgCode("0");
obj1.setOuCode("A50");
obj1.setSupplierName("服务器供应商");
obj1.setSupplierCode("暂无");
req.setAsn(obj1);
AlibabaPurSupplierAsncreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<alibaba_pur_supplier_asncreate_response>
    <result>
        <content>true</content>
        <error_msg>字段不能为空</error_msg>
    </result>
</alibaba_pur_supplier_asncreate_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部