TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthWmsEntryorderConfirmRequest req = new AlibabaAlihealthWmsEntryorderConfirmRequest();
AlibabaAlihealthWmsEntryorderConfirmRequest.EntryorderConfirmRequest obj1 = new AlibabaAlihealthWmsEntryorderConfirmRequest.EntryorderConfirmRequest();
AlibabaAlihealthWmsEntryorderConfirmRequest.EntryOrder obj2 = new AlibabaAlihealthWmsEntryorderConfirmRequest.EntryOrder();
obj2.setBusinessId("B12345");
obj2.setConfirmType(0L);
obj2.setConsignId("C12345");
obj2.setContractCode("CT12345");
obj2.setEntryOrderCode("E1234");
obj2.setEntryOrderId("E1234");
obj2.setEntryOrderType("SCRK");
obj2.setExpectEndTime("2023-12-31 23:59:59");
obj2.setExpectStartTime("2023-12-01 00:00:00");
obj2.setExpressCode("SF12345");
obj2.setExtOrderCode("EO12345");
obj2.setFreight("0.00");
obj2.setIsCheck("Y");
obj2.setIsNudePackage("N");
obj2.setLogisticsCode("LOG12345");
obj2.setLogisticsContactName("张三");
obj2.setLogisticsContactNo("13088888888");
obj2.setLogisticsContactPhone("13088888888");
obj2.setLogisticsName("顺丰速运");
obj2.setOperateTime("2017-09-09 12:00:00");
obj2.setOperatorCode("OP12345");
obj2.setOperatorName("李四");
obj2.setOrderCode("EO12345");
obj2.setOrderCreateTime("2023-01-01 10:00:00");
obj2.setOrderId("O123456789");
obj2.setOrderSource("TAOBAO");
obj2.setOrderType("CGRK");
obj2.setOutBizCode("O1234");
obj2.setOwnerCode("O1234");
obj2.setPlanArrivalTime("2023-12-15 14:00:00");
obj2.setPurchaseOrderCode("C123455");
AlibabaAlihealthWmsEntryorderConfirmRequest.ReceiverInfo obj3 = new AlibabaAlihealthWmsEntryorderConfirmRequest.ReceiverInfo();
obj3.setArea("浦东新区");
obj3.setBirthDate("1990-01-01");
obj3.setCarNo("沪A12345");
obj3.setCareer("工程师");
obj3.setCity("上海市");
obj3.setCompany("阿里巴巴集团");
obj3.setCountryCode("CN");
obj3.setCountryCodeCiq("CN");
obj3.setCountryCodeCus("CN");
obj3.setDetailAddress("中山路123号");
obj3.setEmail("user@example.com");
obj3.setFax("021-12345678");
obj3.setGender("男");
obj3.setId("R12345");
obj3.setIdNumber("110101199001011234");
obj3.setIdType("身份证");
obj3.setMobile("13088888888");
obj3.setName("王五");
obj3.setNick("小王");
obj3.setProvince("上海市");
obj3.setRemark("xxxxx");
obj3.setTel("021-87654321");
obj3.setTown("张江镇");
obj3.setZipCode("200120");
obj2.setReceiverInfo(obj3);
List<AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrder> list5 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrder>();
AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrder obj6 = new AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrder();
list5.add(obj6);
obj6.setOrderCode("RO12345");
obj6.setOrderType("CGRK");
obj6.setRemark("xxxxx");
obj2.setRelatedOrders(list5);
obj2.setRemark("备注信息");
obj2.setResponsibleDepartment("财务部");
AlibabaAlihealthWmsEntryorderConfirmRequest.SenderInfo obj7 = new AlibabaAlihealthWmsEntryorderConfirmRequest.SenderInfo();
obj7.setArea("西湖区");
obj7.setBirthDate("1985-05-05");
obj7.setCarNo("浙A56789");
obj7.setCareer("销售");
obj7.setCity("杭州市");
obj7.setCompany("某某供应商");
obj7.setCountryCode("CN");
obj7.setCountryCodeCiq("CN");
obj7.setCountryCodeCus("CN");
obj7.setDetailAddress("文三路456号");
obj7.setEmail("sender@example.com");
obj7.setFax("0571-87654321");
obj7.setGender("女");
obj7.setId("S12345");
obj7.setIdNumber("330101198505054321");
obj7.setIdType("身份证");
obj7.setMobile("13099999999");
obj7.setName("赵六");
obj7.setNick("老赵");
obj7.setProvince("浙江省");
obj7.setRemark("xxxxx");
obj7.setTel("0571-12345678");
obj7.setTown("西溪街道");
obj7.setZipCode("310012");
obj2.setSenderInfo(obj7);
obj2.setShopCode("SHOP123");
obj2.setShopNick("旗舰店");
obj2.setSizeDetail("L*W*H=10*20*30");
obj2.setStatus("NEW");
obj2.setSubOrderType("OTHER");
obj2.setSupplierAddress("供应商详细地址");
obj2.setSupplierArea("余杭区");
obj2.setSupplierCity("杭州市");
obj2.setSupplierCode("SUP12345");
obj2.setSupplierEmail("supplier@example.com");
obj2.setSupplierName("某某有限公司");
obj2.setSupplierPhone("13077777777");
obj2.setSupplierProvince("浙江省");
obj2.setSupplierTel("0571-23456789");
obj2.setSupplierTown("仓前街道");
obj2.setSupplierZipCode("311121");
obj2.setTotalOrderLines(12L);
obj2.setWarehouseCode("W1234");
obj2.setWarehouseName("杭州仓");
obj2.setExtendProps("{}");
obj1.setEntryOrder(obj2);
List<AlibabaAlihealthWmsEntryorderConfirmRequest.Item> list9 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.Item>();
AlibabaAlihealthWmsEntryorderConfirmRequest.Item obj10 = new AlibabaAlihealthWmsEntryorderConfirmRequest.Item();
list9.add(obj10);
obj10.setActualAmount("100.00");
obj10.setActualQty("10");
obj10.setAdventLifecycle("NORMAL");
obj10.setAmount("120.00");
obj10.setApprovalNumber("GN2020123456");
obj10.setBarCode("6901234567890");
obj10.setBatchCode("P1234");
obj10.setBatchRemark("批次特殊说明");
List<AlibabaAlihealthWmsEntryorderConfirmRequest.Batch> list13 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.Batch>();
AlibabaAlihealthWmsEntryorderConfirmRequest.Batch obj14 = new AlibabaAlihealthWmsEntryorderConfirmRequest.Batch();
list13.add(obj14);
obj14.setActualQty(12L);
obj14.setBatchCode("P1234");
obj14.setExpireDate("2016-09-09");
obj14.setInventoryType("ZP");
obj14.setProduceCode("PB20231234");
obj14.setProductDate("2016-09-09");
obj14.setQuantity("12");
obj14.setRemark("xxxxx");
obj14.setExtendProps("{}");
list11.setBatchs(list13);
obj10.setBrandCode("BRAND123");
obj10.setBrandName("某某品牌");
obj10.setCategoryId("CAT12345");
obj10.setCategoryName("保健食品");
obj10.setChangeTime("2023-11-01 09:00:00");
obj10.setChannelCode("CH12345");
obj10.setColor("红色");
obj10.setCostPrice("80.00");
obj10.setDefectiveQty("0");
obj10.setDiffQuantity("0");
obj10.setDiscount("0.9");
obj10.setDiscountPrice("108.00");
obj10.setEnglishName("Health Product");
obj10.setExCode("EX12345");
obj10.setExpireDate("2025-12-31");
obj10.setExtCode("EXT12345");
obj10.setGoodsCode("G123456789");
obj10.setGrossWeight("1.5");
obj10.setHeight("20");
obj10.setInventoryType("ZP");
obj10.setIsAreaSale("Y");
obj10.setIsBatchMgmt("Y");
obj10.setIsFragile("Y");
obj10.setIsHazardous("N");
obj10.setIsSNMgmt("Y");
obj10.setIsShelfLifeMgmt("Y");
obj10.setIsSku("Y");
obj10.setItemCode("I123");
obj10.setItemId("CI123");
obj10.setItemName("商品A");
obj10.setItemType("NORMAL");
obj10.setLackQty("0");
obj10.setLatestUpdateTime("2023-01-01 12:00:00");
obj10.setLength("100");
obj10.setLockQuantity("0");
obj10.setLockupLifecycle("30");
obj10.setNetWeight("5.5");
obj10.setNormalQty("10");
obj10.setOrderCode("O123");
obj10.setOrderLineNo("EL123");
obj10.setOrderType("PURCHASE");
obj10.setOriginAddress("杭州市");
obj10.setOriginCode("CN3301");
obj10.setOutBizCode("BIZ123");
obj10.setOwnerCode("OWNER123");
obj10.setPackCode("PKG001");
obj10.setPackageMaterial("纸箱");
obj10.setPaperQty("100");
obj10.setPcs("10");
obj10.setPlanQty("100");
obj10.setPrice("99.9");
AlibabaAlihealthWmsEntryorderConfirmRequest.PriceAdjustment obj16 = new AlibabaAlihealthWmsEntryorderConfirmRequest.PriceAdjustment();
obj16.setDiscount("0.9");
obj16.setEndDate("2023-12-31");
obj16.setRemark("xxxxx");
obj16.setStandardPrice("100");
obj16.setStartDate("2023-01-01");
obj16.setType("DISCOUNT");
list15.setPriceAdjustment(obj16);
obj10.setPricingCategory("CATEGORY_A");
obj10.setProduceCode("P1234");
obj10.setProductCode("PROD123");
obj10.setProductDate("2023-01-01");
obj10.setPurchasePrice("50");
obj10.setQuantity("100");
obj10.setReason("损坏");
obj10.setReceiveQty("95");
obj10.setReferencePrice("80");
obj10.setRejectLifecycle("7");
obj10.setRemark("xxxxx");
obj10.setRetailPrice("120");
obj10.setSafetyStock("20");
obj10.setSeasonCode("SUMMER2023");
obj10.setSeasonName("夏季");
obj10.setShelfLife("365");
obj10.setShortName("商品A");
obj10.setSize("M");
obj10.setSkuProperty("COLOR:RED");
obj10.setSn("SN123456");
obj10.setSnCode("SN_CODE_001");
obj10.setSourceOrderCode("SRC123");
obj10.setStandardPrice("100");
obj10.setStockStatus("NORMAL");
obj10.setStockUnit("件");
obj10.setSubSourceOrderCode("SUB_SRC123");
obj10.setSupplierCode("SUP123");
obj10.setSupplierName("供应商A");
obj10.setTagPrice("150");
obj10.setTareWeight("0.5");
obj10.setTempRequirement("2-8℃");
obj10.setTitle("商品标题示例");
obj10.setUnit("件");
obj10.setVolume("0.01");
obj10.setWarehouseCode("WH123");
obj10.setWidth("50");
obj1.setItems(list9);
List<AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLine> list18 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLine>();
AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLine obj19 = new AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLine();
list18.add(obj19);
obj19.setActualPrice("90");
obj19.setActualQty(12L);
obj19.setAmount("1080");
obj19.setBatchCode("PCODE123");
List<AlibabaAlihealthWmsEntryorderConfirmRequest.Batch> list22 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.Batch>();
AlibabaAlihealthWmsEntryorderConfirmRequest.Batch obj23 = new AlibabaAlihealthWmsEntryorderConfirmRequest.Batch();
list22.add(obj23);
obj23.setActualQty(12L);
obj23.setBatchCode("P1234");
obj23.setExpireDate("2016-09-09");
obj23.setInventoryType("ZP");
obj23.setProduceCode("P1234");
obj23.setProductDate("2016-09-09");
obj23.setQuantity("12");
obj23.setRemark("xxxxx");
obj23.setExtendProps("{}");
list20.setBatchs(list22);
obj19.setColor("红色");
obj19.setDeliveryOrderId("DO123");
obj19.setDiscount("0.9");
obj19.setDiscountAmount("10");
obj19.setDiscountPrice("80");
obj19.setExceptionQty("0");
obj19.setExpireDate("2017-09-09");
obj19.setExtCode("EXT001");
obj19.setInventoryType("ZP");
obj19.setItemCode("I123");
obj19.setItemId("CI123");
obj19.setItemName("商品A");
obj19.setLocationCode("LOC123");
obj19.setMoveInLocation("IN_LOC1");
obj19.setMoveOutLocation("OUT_LOC1");
obj19.setOrderLineNo("EL123");
obj19.setOrderSourceCode("OSRC123");
obj19.setOutBizCode("O123");
obj19.setOwnerCode("O123");
obj19.setPayNo("PAY123");
obj19.setPlanQty(12L);
obj19.setProduceCode("P1234");
obj19.setProductCode("PROD123");
obj19.setProductDate("2017-09-09");
obj19.setPurchasePrice("50");
obj19.setQrCode("QR123");
obj19.setQuantity("10");
obj19.setReferencePrice("80");
obj19.setRemark("备注信息");
obj19.setRetailPrice("120");
obj19.setSettlementAmount("1000");
obj19.setSize("L");
obj19.setSkuProperty("COLOR:BLUE");
AlibabaAlihealthWmsEntryorderConfirmRequest.SnList obj25 = new AlibabaAlihealthWmsEntryorderConfirmRequest.SnList();
obj25.setSn("");
list24.setSnList(obj25);
obj19.setSourceOrderCode("SRC123");
obj19.setStandardAmount("1200");
obj19.setStandardPrice("100");
obj19.setStatus("CONFIRMED");
obj19.setStockInQty("100");
obj19.setStockOutQty("0");
obj19.setSubDeliveryOrderId("SUB_DO123");
obj19.setSubSourceCode("SUB_SRC123");
obj19.setSubSourceOrderCode("SUB_SRC_ORD123");
obj19.setTaobaoItemCode("TB123");
obj19.setUnit("件");
obj19.setWarehouseCode("WH123");
obj19.setExtendProps("{}");
obj1.setOrderLines(list18);
List<AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrder> list27 = new ArrayList<AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrder>();
AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrder obj28 = new AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrder();
list27.add(obj28);
obj28.setActualQty("10");
obj28.setItemCode("I123");
obj28.setItemId("CI123");
obj28.setItemName("商品A");
obj28.setOrderLineNo("EL123");
obj28.setOwnerCode("O123");
obj28.setRemark("备注信息");
obj1.setTotalOrders(list27);
obj1.setExtendProps("{}");
req.setEntryorderConfirmRequest(obj1);
AlibabaAlihealthWmsEntryorderConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthWmsEntryorderConfirmRequest req = new AlibabaAlihealthWmsEntryorderConfirmRequest();
AlibabaAlihealthWmsEntryorderConfirmRequest.EntryorderConfirmRequestDomain obj1 = new AlibabaAlihealthWmsEntryorderConfirmRequest.EntryorderConfirmRequestDomain();
AlibabaAlihealthWmsEntryorderConfirmRequest.EntryOrderDomain obj2 = new AlibabaAlihealthWmsEntryorderConfirmRequest.EntryOrderDomain();
obj2.BusinessId = "B12345";
obj2.ConfirmType = 0L;
obj2.ConsignId = "C12345";
obj2.ContractCode = "CT12345";
obj2.EntryOrderCode = "E1234";
obj2.EntryOrderId = "E1234";
obj2.EntryOrderType = "SCRK";
obj2.ExpectEndTime = "2023-12-31 23:59:59";
obj2.ExpectStartTime = "2023-12-01 00:00:00";
obj2.ExpressCode = "SF12345";
obj2.ExtOrderCode = "EO12345";
obj2.Freight = "0.00";
obj2.IsCheck = "Y";
obj2.IsNudePackage = "N";
obj2.LogisticsCode = "LOG12345";
obj2.LogisticsContactName = "张三";
obj2.LogisticsContactNo = "13088888888";
obj2.LogisticsContactPhone = "13088888888";
obj2.LogisticsName = "顺丰速运";
obj2.OperateTime = "2017-09-09 12:00:00";
obj2.OperatorCode = "OP12345";
obj2.OperatorName = "李四";
obj2.OrderCode = "EO12345";
obj2.OrderCreateTime = "2023-01-01 10:00:00";
obj2.OrderId = "O123456789";
obj2.OrderSource = "TAOBAO";
obj2.OrderType = "CGRK";
obj2.OutBizCode = "O1234";
obj2.OwnerCode = "O1234";
obj2.PlanArrivalTime = "2023-12-15 14:00:00";
obj2.PurchaseOrderCode = "C123455";
AlibabaAlihealthWmsEntryorderConfirmRequest.ReceiverInfoDomain obj3 = new AlibabaAlihealthWmsEntryorderConfirmRequest.ReceiverInfoDomain();
obj3.Area = "浦东新区";
obj3.BirthDate = "1990-01-01";
obj3.CarNo = "沪A12345";
obj3.Career = "工程师";
obj3.City = "上海市";
obj3.Company = "阿里巴巴集团";
obj3.CountryCode = "CN";
obj3.CountryCodeCiq = "CN";
obj3.CountryCodeCus = "CN";
obj3.DetailAddress = "中山路123号";
obj3.Email = "user@example.com";
obj3.Fax = "021-12345678";
obj3.Gender = "男";
obj3.Id = "R12345";
obj3.IdNumber = "110101199001011234";
obj3.IdType = "身份证";
obj3.Mobile = "13088888888";
obj3.Name = "王五";
obj3.Nick = "小王";
obj3.Province = "上海市";
obj3.Remark = "xxxxx";
obj3.Tel = "021-87654321";
obj3.Town = "张江镇";
obj3.ZipCode = "200120";
obj2.ReceiverInfo= obj3;
List<AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrderDomain> list5 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrderDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrderDomain obj6 = new AlibabaAlihealthWmsEntryorderConfirmRequest.RelatedOrderDomain();
list5.Add(obj6);
obj6.OrderCode = "RO12345";
obj6.OrderType = "CGRK";
obj6.Remark = "xxxxx";
obj2.RelatedOrders= list5;
obj2.Remark = "备注信息";
obj2.ResponsibleDepartment = "财务部";
AlibabaAlihealthWmsEntryorderConfirmRequest.SenderInfoDomain obj7 = new AlibabaAlihealthWmsEntryorderConfirmRequest.SenderInfoDomain();
obj7.Area = "西湖区";
obj7.BirthDate = "1985-05-05";
obj7.CarNo = "浙A56789";
obj7.Career = "销售";
obj7.City = "杭州市";
obj7.Company = "某某供应商";
obj7.CountryCode = "CN";
obj7.CountryCodeCiq = "CN";
obj7.CountryCodeCus = "CN";
obj7.DetailAddress = "文三路456号";
obj7.Email = "sender@example.com";
obj7.Fax = "0571-87654321";
obj7.Gender = "女";
obj7.Id = "S12345";
obj7.IdNumber = "330101198505054321";
obj7.IdType = "身份证";
obj7.Mobile = "13099999999";
obj7.Name = "赵六";
obj7.Nick = "老赵";
obj7.Province = "浙江省";
obj7.Remark = "xxxxx";
obj7.Tel = "0571-12345678";
obj7.Town = "西溪街道";
obj7.ZipCode = "310012";
obj2.SenderInfo= obj7;
obj2.ShopCode = "SHOP123";
obj2.ShopNick = "旗舰店";
obj2.SizeDetail = "L*W*H=10*20*30";
obj2.Status = "NEW";
obj2.SubOrderType = "OTHER";
obj2.SupplierAddress = "供应商详细地址";
obj2.SupplierArea = "余杭区";
obj2.SupplierCity = "杭州市";
obj2.SupplierCode = "SUP12345";
obj2.SupplierEmail = "supplier@example.com";
obj2.SupplierName = "某某有限公司";
obj2.SupplierPhone = "13077777777";
obj2.SupplierProvince = "浙江省";
obj2.SupplierTel = "0571-23456789";
obj2.SupplierTown = "仓前街道";
obj2.SupplierZipCode = "311121";
obj2.TotalOrderLines = 12L;
obj2.WarehouseCode = "W1234";
obj2.WarehouseName = "杭州仓";
obj2.ExtendProps = "{}";
obj1.EntryOrder= obj2;
List<AlibabaAlihealthWmsEntryorderConfirmRequest.ItemDomain> list9 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.ItemDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.ItemDomain obj10 = new AlibabaAlihealthWmsEntryorderConfirmRequest.ItemDomain();
list9.Add(obj10);
obj10.ActualAmount = "100.00";
obj10.ActualQty = "10";
obj10.AdventLifecycle = "NORMAL";
obj10.Amount = "120.00";
obj10.ApprovalNumber = "GN2020123456";
obj10.BarCode = "6901234567890";
obj10.BatchCode = "P1234";
obj10.BatchRemark = "批次特殊说明";
List<AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain> list12 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain obj13 = new AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain();
list12.Add(obj13);
obj13.ActualQty = 12L;
obj13.BatchCode = "P1234";
obj13.ExpireDate = "2016-09-09";
obj13.InventoryType = "ZP";
obj13.ProduceCode = "PB20231234";
obj13.ProductDate = "2016-09-09";
obj13.Quantity = "12";
obj13.Remark = "xxxxx";
obj13.ExtendProps = "{}";
obj10.Batchs= list12;
obj10.BrandCode = "BRAND123";
obj10.BrandName = "某某品牌";
obj10.CategoryId = "CAT12345";
obj10.CategoryName = "保健食品";
obj10.ChangeTime = "2023-11-01 09:00:00";
obj10.ChannelCode = "CH12345";
obj10.Color = "红色";
obj10.CostPrice = "80.00";
obj10.DefectiveQty = "0";
obj10.DiffQuantity = "0";
obj10.Discount = "0.9";
obj10.DiscountPrice = "108.00";
obj10.EnglishName = "Health Product";
obj10.ExCode = "EX12345";
obj10.ExpireDate = "2025-12-31";
obj10.ExtCode = "EXT12345";
obj10.GoodsCode = "G123456789";
obj10.GrossWeight = "1.5";
obj10.Height = "20";
obj10.InventoryType = "ZP";
obj10.IsAreaSale = "Y";
obj10.IsBatchMgmt = "Y";
obj10.IsFragile = "Y";
obj10.IsHazardous = "N";
obj10.IsSNMgmt = "Y";
obj10.IsShelfLifeMgmt = "Y";
obj10.IsSku = "Y";
obj10.ItemCode = "I123";
obj10.ItemId = "CI123";
obj10.ItemName = "商品A";
obj10.ItemType = "NORMAL";
obj10.LackQty = "0";
obj10.LatestUpdateTime = "2023-01-01 12:00:00";
obj10.Length = "100";
obj10.LockQuantity = "0";
obj10.LockupLifecycle = "30";
obj10.NetWeight = "5.5";
obj10.NormalQty = "10";
obj10.OrderCode = "O123";
obj10.OrderLineNo = "EL123";
obj10.OrderType = "PURCHASE";
obj10.OriginAddress = "杭州市";
obj10.OriginCode = "CN3301";
obj10.OutBizCode = "BIZ123";
obj10.OwnerCode = "OWNER123";
obj10.PackCode = "PKG001";
obj10.PackageMaterial = "纸箱";
obj10.PaperQty = "100";
obj10.Pcs = "10";
obj10.PlanQty = "100";
obj10.Price = "99.9";
AlibabaAlihealthWmsEntryorderConfirmRequest.PriceAdjustmentDomain obj14 = new AlibabaAlihealthWmsEntryorderConfirmRequest.PriceAdjustmentDomain();
obj14.Discount = "0.9";
obj14.EndDate = "2023-12-31";
obj14.Remark = "xxxxx";
obj14.StandardPrice = "100";
obj14.StartDate = "2023-01-01";
obj14.Type = "DISCOUNT";
obj10.PriceAdjustment= obj14;
obj10.PricingCategory = "CATEGORY_A";
obj10.ProduceCode = "P1234";
obj10.ProductCode = "PROD123";
obj10.ProductDate = "2023-01-01";
obj10.PurchasePrice = "50";
obj10.Quantity = "100";
obj10.Reason = "损坏";
obj10.ReceiveQty = "95";
obj10.ReferencePrice = "80";
obj10.RejectLifecycle = "7";
obj10.Remark = "xxxxx";
obj10.RetailPrice = "120";
obj10.SafetyStock = "20";
obj10.SeasonCode = "SUMMER2023";
obj10.SeasonName = "夏季";
obj10.ShelfLife = "365";
obj10.ShortName = "商品A";
obj10.Size = "M";
obj10.SkuProperty = "COLOR:RED";
obj10.Sn = "SN123456";
obj10.SnCode = "SN_CODE_001";
obj10.SourceOrderCode = "SRC123";
obj10.StandardPrice = "100";
obj10.StockStatus = "NORMAL";
obj10.StockUnit = "件";
obj10.SubSourceOrderCode = "SUB_SRC123";
obj10.SupplierCode = "SUP123";
obj10.SupplierName = "供应商A";
obj10.TagPrice = "150";
obj10.TareWeight = "0.5";
obj10.TempRequirement = "2-8℃";
obj10.Title = "商品标题示例";
obj10.Unit = "件";
obj10.Volume = "0.01";
obj10.WarehouseCode = "WH123";
obj10.Width = "50";
obj1.Items= list9;
List<AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLineDomain> list16 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLineDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLineDomain obj17 = new AlibabaAlihealthWmsEntryorderConfirmRequest.OrderLineDomain();
list16.Add(obj17);
obj17.ActualPrice = "90";
obj17.ActualQty = 12L;
obj17.Amount = "1080";
obj17.BatchCode = "PCODE123";
List<AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain> list19 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain obj20 = new AlibabaAlihealthWmsEntryorderConfirmRequest.BatchDomain();
list19.Add(obj20);
obj20.ActualQty = 12L;
obj20.BatchCode = "P1234";
obj20.ExpireDate = "2016-09-09";
obj20.InventoryType = "ZP";
obj20.ProduceCode = "P1234";
obj20.ProductDate = "2016-09-09";
obj20.Quantity = "12";
obj20.Remark = "xxxxx";
obj20.ExtendProps = "{}";
obj17.Batchs= list19;
obj17.Color = "红色";
obj17.DeliveryOrderId = "DO123";
obj17.Discount = "0.9";
obj17.DiscountAmount = "10";
obj17.DiscountPrice = "80";
obj17.ExceptionQty = "0";
obj17.ExpireDate = "2017-09-09";
obj17.ExtCode = "EXT001";
obj17.InventoryType = "ZP";
obj17.ItemCode = "I123";
obj17.ItemId = "CI123";
obj17.ItemName = "商品A";
obj17.LocationCode = "LOC123";
obj17.MoveInLocation = "IN_LOC1";
obj17.MoveOutLocation = "OUT_LOC1";
obj17.OrderLineNo = "EL123";
obj17.OrderSourceCode = "OSRC123";
obj17.OutBizCode = "O123";
obj17.OwnerCode = "O123";
obj17.PayNo = "PAY123";
obj17.PlanQty = 12L;
obj17.ProduceCode = "P1234";
obj17.ProductCode = "PROD123";
obj17.ProductDate = "2017-09-09";
obj17.PurchasePrice = "50";
obj17.QrCode = "QR123";
obj17.Quantity = "10";
obj17.ReferencePrice = "80";
obj17.Remark = "备注信息";
obj17.RetailPrice = "120";
obj17.SettlementAmount = "1000";
obj17.Size = "L";
obj17.SkuProperty = "COLOR:BLUE";
AlibabaAlihealthWmsEntryorderConfirmRequest.SnListDomain obj21 = new AlibabaAlihealthWmsEntryorderConfirmRequest.SnListDomain();
obj21.Sn = "";
obj17.SnList= obj21;
obj17.SourceOrderCode = "SRC123";
obj17.StandardAmount = "1200";
obj17.StandardPrice = "100";
obj17.Status = "CONFIRMED";
obj17.StockInQty = "100";
obj17.StockOutQty = "0";
obj17.SubDeliveryOrderId = "SUB_DO123";
obj17.SubSourceCode = "SUB_SRC123";
obj17.SubSourceOrderCode = "SUB_SRC_ORD123";
obj17.TaobaoItemCode = "TB123";
obj17.Unit = "件";
obj17.WarehouseCode = "WH123";
obj17.ExtendProps = "{}";
obj1.OrderLines= list16;
List<AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrderDomain> list23 = new List<AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrderDomain>();
AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrderDomain obj24 = new AlibabaAlihealthWmsEntryorderConfirmRequest.TotalOrderDomain();
list23.Add(obj24);
obj24.ActualQty = "10";
obj24.ItemCode = "I123";
obj24.ItemId = "CI123";
obj24.ItemName = "商品A";
obj24.OrderLineNo = "EL123";
obj24.OwnerCode = "O123";
obj24.Remark = "备注信息";
obj1.TotalOrders= list23;
obj1.ExtendProps = "{}";
req.EntryorderConfirmRequest_ = obj1;
AlibabaAlihealthWmsEntryorderConfirmResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthWmsEntryorderConfirmRequest;
$entryorder_confirm_request = new EntryorderConfirmRequest;
$entry_order = new EntryOrder;
$entry_order->business_id="B12345";
$entry_order->confirm_type="0";
$entry_order->consign_id="C12345";
$entry_order->contract_code="CT12345";
$entry_order->entry_order_code="E1234";
$entry_order->entry_order_id="E1234";
$entry_order->entry_order_type="SCRK";
$entry_order->expect_end_time="2023-12-31 23:59:59";
$entry_order->expect_start_time="2023-12-01 00:00:00";
$entry_order->express_code="SF12345";
$entry_order->ext_order_code="EO12345";
$entry_order->freight="0.00";
$entry_order->is_check="Y";
$entry_order->is_nude_package="N";
$entry_order->logistics_code="LOG12345";
$entry_order->logistics_contact_name="张三";
$entry_order->logistics_contact_no="13088888888";
$entry_order->logistics_contact_phone="13088888888";
$entry_order->logistics_name="顺丰速运";
$entry_order->operate_time="2017-09-09 12:00:00";
$entry_order->operator_code="OP12345";
$entry_order->operator_name="李四";
$entry_order->order_code="EO12345";
$entry_order->order_create_time="2023-01-01 10:00:00";
$entry_order->order_id="O123456789";
$entry_order->order_source="TAOBAO";
$entry_order->order_type="CGRK";
$entry_order->out_biz_code="O1234";
$entry_order->owner_code="O1234";
$entry_order->plan_arrival_time="2023-12-15 14:00:00";
$entry_order->purchase_order_code="C123455";
$receiver_info = new ReceiverInfo;
$receiver_info->area="浦东新区";
$receiver_info->birth_date="1990-01-01";
$receiver_info->car_no="沪A12345";
$receiver_info->career="工程师";
$receiver_info->city="上海市";
$receiver_info->company="阿里巴巴集团";
$receiver_info->country_code="CN";
$receiver_info->country_code_ciq="CN";
$receiver_info->country_code_cus="CN";
$receiver_info->detail_address="中山路123号";
$receiver_info->email="user@example.com";
$receiver_info->fax="021-12345678";
$receiver_info->gender="男";
$receiver_info->id="R12345";
$receiver_info->id_number="110101199001011234";
$receiver_info->id_type="身份证";
$receiver_info->mobile="13088888888";
$receiver_info->name="王五";
$receiver_info->nick="小王";
$receiver_info->province="上海市";
$receiver_info->remark="xxxxx";
$receiver_info->tel="021-87654321";
$receiver_info->town="张江镇";
$receiver_info->zip_code="200120";
$entry_order->receiver_info = $receiver_info;
$related_orders = new RelatedOrder;
$related_orders->order_code="RO12345";
$related_orders->order_type="CGRK";
$related_orders->remark="xxxxx";
$entry_order->related_orders = $related_orders;
$entry_order->remark="备注信息";
$entry_order->responsible_department="财务部";
$sender_info = new SenderInfo;
$sender_info->area="西湖区";
$sender_info->birth_date="1985-05-05";
$sender_info->car_no="浙A56789";
$sender_info->career="销售";
$sender_info->city="杭州市";
$sender_info->company="某某供应商";
$sender_info->country_code="CN";
$sender_info->country_code_ciq="CN";
$sender_info->country_code_cus="CN";
$sender_info->detail_address="文三路456号";
$sender_info->email="sender@example.com";
$sender_info->fax="0571-87654321";
$sender_info->gender="女";
$sender_info->id="S12345";
$sender_info->id_number="330101198505054321";
$sender_info->id_type="身份证";
$sender_info->mobile="13099999999";
$sender_info->name="赵六";
$sender_info->nick="老赵";
$sender_info->province="浙江省";
$sender_info->remark="xxxxx";
$sender_info->tel="0571-12345678";
$sender_info->town="西溪街道";
$sender_info->zip_code="310012";
$entry_order->sender_info = $sender_info;
$entry_order->shop_code="SHOP123";
$entry_order->shop_nick="旗舰店";
$entry_order->size_detail="L*W*H=10*20*30";
$entry_order->status="NEW";
$entry_order->sub_order_type="OTHER";
$entry_order->supplier_address="供应商详细地址";
$entry_order->supplier_area="余杭区";
$entry_order->supplier_city="杭州市";
$entry_order->supplier_code="SUP12345";
$entry_order->supplier_email="supplier@example.com";
$entry_order->supplier_name="某某有限公司";
$entry_order->supplier_phone="13077777777";
$entry_order->supplier_province="浙江省";
$entry_order->supplier_tel="0571-23456789";
$entry_order->supplier_town="仓前街道";
$entry_order->supplier_zip_code="311121";
$entry_order->total_order_lines="12";
$entry_order->warehouse_code="W1234";
$entry_order->warehouse_name="杭州仓";
$entry_order->extend_props="{}";
$entryorder_confirm_request->entry_order = $entry_order;
$items = new Item;
$items->actual_amount="100.00";
$items->actual_qty="10";
$items->advent_lifecycle="NORMAL";
$items->amount="120.00";
$items->approval_number="GN2020123456";
$items->bar_code="6901234567890";
$items->batch_code="P1234";
$items->batch_remark="批次特殊说明";
$batchs = new Batch;
$batchs->actual_qty="12";
$batchs->batch_code="P1234";
$batchs->expire_date="2016-09-09";
$batchs->inventory_type="ZP";
$batchs->produce_code="PB20231234";
$batchs->product_date="2016-09-09";
$batchs->quantity="12";
$batchs->remark="xxxxx";
$batchs->extend_props="{}";
$items->batchs = $batchs;
$items->brand_code="BRAND123";
$items->brand_name="某某品牌";
$items->category_id="CAT12345";
$items->category_name="保健食品";
$items->change_time="2023-11-01 09:00:00";
$items->channel_code="CH12345";
$items->color="红色";
$items->cost_price="80.00";
$items->defective_qty="0";
$items->diff_quantity="0";
$items->discount="0.9";
$items->discount_price="108.00";
$items->english_name="Health Product";
$items->ex_code="EX12345";
$items->expire_date="2025-12-31";
$items->ext_code="EXT12345";
$items->goods_code="G123456789";
$items->gross_weight="1.5";
$items->height="20";
$items->inventory_type="ZP";
$items->is_area_sale="Y";
$items->is_batch_mgmt="Y";
$items->is_fragile="Y";
$items->is_hazardous="N";
$items->is_s_n_mgmt="Y";
$items->is_shelf_life_mgmt="Y";
$items->is_sku="Y";
$items->item_code="I123";
$items->item_id="CI123";
$items->item_name="商品A";
$items->item_type="NORMAL";
$items->lack_qty="0";
$items->latest_update_time="2023-01-01 12:00:00";
$items->length="100";
$items->lock_quantity="0";
$items->lockup_lifecycle="30";
$items->net_weight="5.5";
$items->normal_qty="10";
$items->order_code="O123";
$items->order_line_no="EL123";
$items->order_type="PURCHASE";
$items->origin_address="杭州市";
$items->origin_code="CN3301";
$items->out_biz_code="BIZ123";
$items->owner_code="OWNER123";
$items->pack_code="PKG001";
$items->package_material="纸箱";
$items->paper_qty="100";
$items->pcs="10";
$items->plan_qty="100";
$items->price="99.9";
$price_adjustment = new PriceAdjustment;
$price_adjustment->discount="0.9";
$price_adjustment->end_date="2023-12-31";
$price_adjustment->remark="xxxxx";
$price_adjustment->standard_price="100";
$price_adjustment->start_date="2023-01-01";
$price_adjustment->type="DISCOUNT";
$items->price_adjustment = $price_adjustment;
$items->pricing_category="CATEGORY_A";
$items->produce_code="P1234";
$items->product_code="PROD123";
$items->product_date="2023-01-01";
$items->purchase_price="50";
$items->quantity="100";
$items->reason="损坏";
$items->receive_qty="95";
$items->reference_price="80";
$items->reject_lifecycle="7";
$items->remark="xxxxx";
$items->retail_price="120";
$items->safety_stock="20";
$items->season_code="SUMMER2023";
$items->season_name="夏季";
$items->shelf_life="365";
$items->short_name="商品A";
$items->size="M";
$items->sku_property="COLOR:RED";
$items->sn="SN123456";
$items->sn_code="SN_CODE_001";
$items->source_order_code="SRC123";
$items->standard_price="100";
$items->stock_status="NORMAL";
$items->stock_unit="件";
$items->sub_source_order_code="SUB_SRC123";
$items->supplier_code="SUP123";
$items->supplier_name="供应商A";
$items->tag_price="150";
$items->tare_weight="0.5";
$items->temp_requirement="2-8℃";
$items->title="商品标题示例";
$items->unit="件";
$items->volume="0.01";
$items->warehouse_code="WH123";
$items->width="50";
$entryorder_confirm_request->items = $items;
$order_lines = new OrderLine;
$order_lines->actual_price="90";
$order_lines->actual_qty="12";
$order_lines->amount="1080";
$order_lines->batch_code="PCODE123";
$batchs = new Batch;
$batchs->actual_qty="12";
$batchs->batch_code="P1234";
$batchs->expire_date="2016-09-09";
$batchs->inventory_type="ZP";
$batchs->produce_code="P1234";
$batchs->product_date="2016-09-09";
$batchs->quantity="12";
$batchs->remark="xxxxx";
$batchs->extend_props="{}";
$order_lines->batchs = $batchs;
$order_lines->color="红色";
$order_lines->delivery_order_id="DO123";
$order_lines->discount="0.9";
$order_lines->discount_amount="10";
$order_lines->discount_price="80";
$order_lines->exception_qty="0";
$order_lines->expire_date="2017-09-09";
$order_lines->ext_code="EXT001";
$order_lines->inventory_type="ZP";
$order_lines->item_code="I123";
$order_lines->item_id="CI123";
$order_lines->item_name="商品A";
$order_lines->location_code="LOC123";
$order_lines->move_in_location="IN_LOC1";
$order_lines->move_out_location="OUT_LOC1";
$order_lines->order_line_no="EL123";
$order_lines->order_source_code="OSRC123";
$order_lines->out_biz_code="O123";
$order_lines->owner_code="O123";
$order_lines->pay_no="PAY123";
$order_lines->plan_qty="12";
$order_lines->produce_code="P1234";
$order_lines->product_code="PROD123";
$order_lines->product_date="2017-09-09";
$order_lines->purchase_price="50";
$order_lines->qr_code="QR123";
$order_lines->quantity="10";
$order_lines->reference_price="80";
$order_lines->remark="备注信息";
$order_lines->retail_price="120";
$order_lines->settlement_amount="1000";
$order_lines->size="L";
$order_lines->sku_property="COLOR:BLUE";
$sn_list = new SnList;
$sn_list->sn="[]";
$order_lines->sn_list = $sn_list;
$order_lines->source_order_code="SRC123";
$order_lines->standard_amount="1200";
$order_lines->standard_price="100";
$order_lines->status="CONFIRMED";
$order_lines->stock_in_qty="100";
$order_lines->stock_out_qty="0";
$order_lines->sub_delivery_order_id="SUB_DO123";
$order_lines->sub_source_code="SUB_SRC123";
$order_lines->sub_source_order_code="SUB_SRC_ORD123";
$order_lines->taobao_item_code="TB123";
$order_lines->unit="件";
$order_lines->warehouse_code="WH123";
$order_lines->extend_props="{}";
$entryorder_confirm_request->order_lines = $order_lines;
$total_orders = new TotalOrder;
$total_orders->actual_qty="10";
$total_orders->item_code="I123";
$total_orders->item_id="CI123";
$total_orders->item_name="商品A";
$total_orders->order_line_no="EL123";
$total_orders->owner_code="O123";
$total_orders->remark="备注信息";
$entryorder_confirm_request->total_orders = $total_orders;
$entryorder_confirm_request->extend_props="{}";
$req->setEntryorderConfirmRequest(json_encode($entryorder_confirm_request));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.alihealth.wms.entryorder.confirm' \
-d 'partner_id=apidoc' \
-d 'sign=FBE986546C6C5F04DF6213E87BF7728D' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-09-10+03%3A20%3A48' \
-d 'v=2.0' \
-d 'entryorder_confirm_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthWmsEntryorderConfirmRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.entryorder_confirm_request=""
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.alihealth.wms.entryorder.confirm");
add_param(pRequest,"entryorder_confirm_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.alihealth.wms.entryorder.confirm', {
'entryorder_confirm_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})