asn创建
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
asn | SupplierAsnInfoVO | 可选 | asn头信息 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ActionResult | 暂无 | 获取url的出参 |
|
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()); |
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 > |
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 > |
错误码 | 错误描述 | 解决方案 |
---|