TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaeExpenseReportItemSaveRequest req = new AlibabaTaeExpenseReportItemSaveRequest();
AlibabaTaeExpenseReportItemSaveRequest.ReportItemSaveOpenRequestDto obj1 = new AlibabaTaeExpenseReportItemSaveRequest.ReportItemSaveOpenRequestDto();
AlibabaTaeExpenseReportItemSaveRequest.OrderDto obj2 = new AlibabaTaeExpenseReportItemSaveRequest.OrderDto();
obj2.setReportNo("212186004");
obj2.setApplyType("ER");
obj1.setOrder(obj2);
AlibabaTaeExpenseReportItemSaveRequest.TopReportItemDto obj3 = new AlibabaTaeExpenseReportItemSaveRequest.TopReportItemDto();
AlibabaTaeExpenseReportItemSaveRequest.TopExpenseTypeDataDto obj4 = new AlibabaTaeExpenseReportItemSaveRequest.TopExpenseTypeDataDto();
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj5 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj5.setValue("2025-08-07");
obj5.setTimestamp(1754496000000L);
obj4.setTime(obj5);
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj6 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj6.setValue("2025-08-07");
obj6.setTimestamp(1754496000000L);
obj4.setCreateDate(obj6);
obj4.setDescription("机场往返打车");
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj7 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj7.setText("xxxxx");
obj7.setValue("xxxxx");
obj4.setCurrency(obj7);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj8 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj8.setText("xxxxx");
obj8.setValue("xxxxx");
obj4.setInvoiceType(obj8);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj9 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj9.setText("xxxxx");
obj9.setValue("xxxxx");
obj4.setBenefitDepartment(obj9);
obj4.setExpenseTypeFromAIDeduction(false);
AlibabaTaeExpenseReportItemSaveRequest.ReceiptInfo obj10 = new AlibabaTaeExpenseReportItemSaveRequest.ReceiptInfo();
obj10.setReceiptId(50934701L);
obj10.setDate("Fri Aug 08 00:00:00 CST 2025");
obj10.setPayeeName("杭州某某餐饮管理有限公司");
obj10.setPayerName("阿里巴巴网络技术有限公司");
obj10.setOrigin("customer_upload");
obj10.setOriginId(20250808001L);
obj10.setFileId(77188032L);
obj10.setAuthKey("aK9f2c1e8b4d");
obj10.setReceiptTypeKey("ALL_ELECTRONIC_COMMON");
obj10.setAmount("22.90");
obj4.setReceipt(obj10);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj11 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj11.setText("xxxxx");
obj11.setValue("xxxxx");
obj4.setNoBillReason(obj11);
obj4.setOtherReason("发票遗失且商家无法补开");
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list13 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj14 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list13.add(obj14);
obj14.setId("3049812");
obj14.setFilename("凭证.pdf");
obj14.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachment(list13);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list16 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj17 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list16.add(obj17);
obj17.setId("3049812");
obj17.setFilename("凭证.pdf");
obj17.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentProofOfTruth(list16);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list19 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj20 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list19.add(obj20);
obj20.setId("3049812");
obj20.setFilename("凭证.pdf");
obj20.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentSelfDrive(list19);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list22 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj23 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list22.add(obj23);
obj23.setId("3049812");
obj23.setFilename("凭证.pdf");
obj23.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentForeignExchange(list22);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list25 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj26 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list25.add(obj26);
obj26.setId("3049812");
obj26.setFilename("凭证.pdf");
obj26.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentHotelCertificate(list25);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list28 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj29 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list28.add(obj29);
obj29.setId("3049812");
obj29.setFilename("凭证.pdf");
obj29.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentPhoneBill(list28);
List<AlibabaTaeExpenseReportItemSaveRequest.OcrImage> list31 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.OcrImage>();
AlibabaTaeExpenseReportItemSaveRequest.OcrImage obj32 = new AlibabaTaeExpenseReportItemSaveRequest.OcrImage();
list31.add(obj32);
obj32.setId(60218843L);
obj32.setFilename("invoice_page1.jpg");
obj32.setAuthKey("aK9f2c1e8b4d");
obj32.setReceiptId(50934701L);
obj32.setAngle(0L);
obj32.setRecognized(true);
AlibabaTaeExpenseReportItemSaveRequest.SliceInfo obj34 = new AlibabaTaeExpenseReportItemSaveRequest.SliceInfo();
obj34.setUrl("https://expense-file.alibaba-inc.com/slice/60218843.jpg");
obj34.setAngle(90L);
obj34.setDimensionList("1080");
obj34.setViewFull(false);
list33.setSliceInfo(obj34);
obj4.setOcrImage(list31);
List<AlibabaTaeExpenseReportItemSaveRequest.Employee> list36 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Employee>();
AlibabaTaeExpenseReportItemSaveRequest.Employee obj37 = new AlibabaTaeExpenseReportItemSaveRequest.Employee();
list36.add(obj37);
obj37.setName("张三(临安)");
obj37.setEmpNo("123456");
obj4.setCostShare(list36);
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj38 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj38.setValue("2025-08-07");
obj38.setTimestamp(1754496000000L);
obj4.setCheckIn(obj38);
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj39 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj39.setValue("2025-08-07");
obj39.setTimestamp(1754496000000L);
obj4.setCheckOut(obj39);
List<AlibabaTaeExpenseReportItemSaveRequest.Occupant> list41 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Occupant>();
AlibabaTaeExpenseReportItemSaveRequest.Occupant obj42 = new AlibabaTaeExpenseReportItemSaveRequest.Occupant();
list41.add(obj42);
obj42.setName("张三(临安)");
obj42.setEmpNo("123456");
obj42.setHtUserId(88213045L);
obj4.setOccupant(list41);
List<AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfo> list44 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfo>();
AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfo obj45 = new AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfo();
list44.add(obj45);
obj45.setIdList(new Long[] { 3049812 };
);
obj45.setAiParse(true);
obj45.setHaveSnapshot(true);
obj45.setParseSuccess(true);
obj4.setExtraHotelAttachmentInfo(list44);
obj4.setItineraryId(1069382L);
obj4.setBucketId(884213L);
AlibabaTaeExpenseReportItemSaveRequest.CityInfo obj46 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfo();
obj46.setId(179L);
obj46.setCode("杭州");
obj46.setName("杭州");
obj4.setStartCity(obj46);
AlibabaTaeExpenseReportItemSaveRequest.CityInfo obj47 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfo();
obj47.setId(179L);
obj47.setCode("杭州");
obj47.setName("杭州");
obj4.setEndCity(obj47);
obj4.setStartPlace("T4-交通中心-B2层K3网约车上客区");
obj4.setEndPlace("杭州西站东广场");
AlibabaTaeExpenseReportItemSaveRequest.CityInfo obj48 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfo();
obj48.setId(179L);
obj48.setCode("杭州");
obj48.setName("杭州");
obj4.setLocationCity(obj48);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj49 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj49.setText("xxxxx");
obj49.setValue("xxxxx");
obj4.setIsRideHailing(obj49);
List<AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfo> list51 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfo>();
AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfo obj52 = new AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfo();
list51.add(obj52);
obj52.setIdList(new Long[] { 3049812 };
);
obj52.setParseSuccess(true);
obj4.setExtraItineraryAttachmentInfo(list51);
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue obj53 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue();
obj53.setId(19928L);
obj53.setText("xxxxx");
obj53.setValue("xxxxx");
obj53.setEnumSettingId(10209L);
obj4.setEntertainmentCategory(obj53);
List<AlibabaTaeExpenseReportItemSaveRequest.Employee> list55 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Employee>();
AlibabaTaeExpenseReportItemSaveRequest.Employee obj56 = new AlibabaTaeExpenseReportItemSaveRequest.Employee();
list55.add(obj56);
obj56.setName("张三(临安)");
obj56.setEmpNo("123456");
obj4.setEatingWith(list55);
obj4.setPeopleNum("5");
obj4.setDepartment("中国人民银行");
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue obj57 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue();
obj57.setId(19928L);
obj57.setText("xxxxx");
obj57.setValue("xxxxx");
obj57.setEnumSettingId(10209L);
obj4.setIsBusinessService(obj57);
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue obj58 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValue();
obj58.setId(19928L);
obj58.setText("xxxxx");
obj58.setValue("xxxxx");
obj58.setEnumSettingId(10209L);
obj4.setErExistTravelExpenseReason(obj58);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj59 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj59.setText("xxxxx");
obj59.setValue("xxxxx");
obj4.setRelatedApplyId(obj59);
obj4.setEmployeeTrainingId("Z08010106");
obj4.setCurrencyAmount("30");
obj4.setExchangeRateManual("30");
obj4.setExpenseStartMonth("2026-04");
obj4.setExpenseEndMonth("2026-04");
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj60 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj60.setText("xxxxx");
obj60.setValue("xxxxx");
obj4.setAiModel(obj60);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list62 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj63 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list62.add(obj63);
obj63.setId(3049812L);
obj63.setFilename("凭证.pdf");
obj63.setAuthKey("aK9f2c1e8b4d");
obj4.setInvoiceForSelfPurchasedAiProduct(list62);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj64 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj64.setText("xxxxx");
obj64.setValue("xxxxx");
obj4.setSelectFieldBoepk8vb(obj64);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj65 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj65.setText("ai_maas");
obj65.setValue("ai_maas");
obj4.setAiProductCategory(obj65);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj66 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj66.setText("GPT");
obj66.setValue("GPT");
obj4.setAiTool(obj66);
List<AlibabaTaeExpenseReportItemSaveRequest.TextValue> list68 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.TextValue>();
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj69 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
list68.add(obj69);
obj69.setText("GPT");
obj69.setValue("GPT");
obj4.setAiModels(list68);
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj70 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj70.setValue("2025-08-07");
obj70.setTimestamp(1754496000000L);
obj4.setFlightDepartureDate(obj70);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list72 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj73 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list72.add(obj73);
obj73.setId("3049812");
obj73.setFilename("凭证.pdf");
obj73.setAuthKey("aK9f2c1e8b4d");
obj4.setOverseaReceipt(list72);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list75 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj76 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list75.add(obj76);
obj76.setId("3049812");
obj76.setFilename("凭证.pdf");
obj76.setAuthKey("aK9f2c1e8b4d");
obj4.setProofOfPayment(list75);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list78 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj79 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list78.add(obj79);
obj79.setId("3049812");
obj79.setFilename("凭证.pdf");
obj79.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentMarketFood(list78);
List<AlibabaTaeExpenseReportItemSaveRequest.Attachment> list81 = new ArrayList<AlibabaTaeExpenseReportItemSaveRequest.Attachment>();
AlibabaTaeExpenseReportItemSaveRequest.Attachment obj82 = new AlibabaTaeExpenseReportItemSaveRequest.Attachment();
list81.add(obj82);
obj82.setId("3049812");
obj82.setFilename("凭证.pdf");
obj82.setAuthKey("aK9f2c1e8b4d");
obj4.setAttachmentReward(list81);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj83 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj83.setText("马来西亚");
obj83.setValue("MY");
obj4.setCountry(obj83);
obj4.setStartAndEndTime("2026-09-21 ~ 2026-09-22");
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue obj84 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValue();
obj84.setValue("2025-08-07");
obj84.setTimestamp(1754496000000L);
obj4.setPlaceOrderTime(obj84);
obj4.setStartAndEndPlace("杭州 → 上海");
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj85 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj85.setId(19928L);
obj85.setText("是");
obj85.setValue("y");
obj85.setEnumSettingId(10209L);
obj4.setIsHcpEntertainment(obj85);
AlibabaTaeExpenseReportItemSaveRequest.TextValue obj86 = new AlibabaTaeExpenseReportItemSaveRequest.TextValue();
obj86.setText("P01010506 员工招聘项目-新员工入职");
obj86.setValue("P01010506");
obj4.setSelectFieldNewstaffProject(obj86);
obj3.setTopExpenseTypeData(obj4);
obj3.setId(77499201L);
obj3.setOcrId(3L);
obj3.setGmtCreate(StringUtils.parseDateTime("2026-01-01 00:00:00"));
obj3.setBillType("electronic_invoice");
obj3.setCurrency("CNY");
obj3.setTime(StringUtils.parseDateTime("2026-01-01 00:00:00"));
obj3.setLocationCity("杭州");
obj3.setExpenseTypeId("724018");
obj3.setExpenseTypeName("差旅-火车");
obj3.setExpenseTypeListFormatter("xxxxx");
obj3.setConsumeSceneKey("train");
obj3.setCategoryKey("traffic");
obj3.setBizPurposeKey("travelling");
obj3.setOrigin("RECEIPT");
obj3.setExpenseId(3L);
obj3.setOwnerId(17799338L);
obj3.setReceiptId(50896823L);
obj3.setStatus("COMPLETE");
obj3.setCorpId(1L);
obj3.setLineNo(1L);
obj3.setExpenseBucketLineId(3L);
obj3.setOptSysFlag("tae");
obj3.setModifier(17799338L);
obj3.setCreator(17799338L);
obj3.setIsDeleted("n");
obj3.setDescription("guixiangTest");
obj3.setNoBillFileIds("NO_BILL_CERTIFICATE");
obj3.setNoBillReasonId(3L);
obj3.setNoBillReasonOther("xxxxx");
obj3.setGmtModified(StringUtils.parseDateTime("2026-01-01 00:00:00"));
obj3.setReportId(212186004L);
obj3.setIsPrePay(false);
obj3.setOrderStatus("xxxxx");
obj3.setExpenseTypeTags("Top,Pub");
obj3.setCheckIn("xxxxx");
obj3.setCheckOut("xxxxx");
obj3.setExpenseTypeFromAIDeduction(true);
obj3.setExpenseChannel("xxxxx");
obj3.setCurrencyAmount("300");
obj3.setApprovedAmount("30");
obj3.setReimburseAmount("30");
obj3.setSubmitAmount("30");
obj3.setExchangeRateSys("7");
obj3.setExchangeRateManual("7.01");
obj1.setReportItem(obj3);
obj1.setBlockCheckPassed(false);
obj1.setTenantKey("ant");
obj1.setAppKey("ant_group");
obj1.setEmployeeNo("091103");
req.setTpRequest(obj1);
AlibabaTaeExpenseReportItemSaveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTaeExpenseReportItemSaveRequest req = new AlibabaTaeExpenseReportItemSaveRequest();
AlibabaTaeExpenseReportItemSaveRequest.ReportItemSaveOpenRequestDtoDomain obj1 = new AlibabaTaeExpenseReportItemSaveRequest.ReportItemSaveOpenRequestDtoDomain();
AlibabaTaeExpenseReportItemSaveRequest.OrderDtoDomain obj2 = new AlibabaTaeExpenseReportItemSaveRequest.OrderDtoDomain();
obj2.ReportNo = "212186004";
obj2.ApplyType = "ER";
obj1.Order= obj2;
AlibabaTaeExpenseReportItemSaveRequest.TopReportItemDtoDomain obj3 = new AlibabaTaeExpenseReportItemSaveRequest.TopReportItemDtoDomain();
AlibabaTaeExpenseReportItemSaveRequest.TopExpenseTypeDataDtoDomain obj4 = new AlibabaTaeExpenseReportItemSaveRequest.TopExpenseTypeDataDtoDomain();
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj5 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj5.Value = "2025-08-07";
obj5.Timestamp = 1754496000000L;
obj4.Time= obj5;
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj6 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj6.Value = "2025-08-07";
obj6.Timestamp = 1754496000000L;
obj4.CreateDate= obj6;
obj4.Description = "机场往返打车";
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj7 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj7.Text = "xxxxx";
obj7.Value = "xxxxx";
obj4.Currency= obj7;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj8 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj8.Text = "xxxxx";
obj8.Value = "xxxxx";
obj4.InvoiceType= obj8;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj9 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj9.Text = "xxxxx";
obj9.Value = "xxxxx";
obj4.BenefitDepartment= obj9;
obj4.ExpenseTypeFromAIDeduction = false;
AlibabaTaeExpenseReportItemSaveRequest.ReceiptInfoDomain obj10 = new AlibabaTaeExpenseReportItemSaveRequest.ReceiptInfoDomain();
obj10.ReceiptId = 50934701L;
obj10.Date = "Fri Aug 08 00:00:00 CST 2025";
obj10.PayeeName = "杭州某某餐饮管理有限公司";
obj10.PayerName = "阿里巴巴网络技术有限公司";
obj10.Origin = "customer_upload";
obj10.OriginId = 20250808001L;
obj10.FileId = 77188032L;
obj10.AuthKey = "aK9f2c1e8b4d";
obj10.ReceiptTypeKey = "ALL_ELECTRONIC_COMMON";
obj10.Amount = "22.90";
obj4.Receipt= obj10;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj11 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj11.Text = "xxxxx";
obj11.Value = "xxxxx";
obj4.NoBillReason= obj11;
obj4.OtherReason = "发票遗失且商家无法补开";
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list13 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj14 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list13.Add(obj14);
obj14.Id = "3049812";
obj14.Filename = "凭证.pdf";
obj14.AuthKey = "aK9f2c1e8b4d";
obj4.Attachment= list13;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list16 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj17 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list16.Add(obj17);
obj17.Id = "3049812";
obj17.Filename = "凭证.pdf";
obj17.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentProofOfTruth= list16;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list19 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj20 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list19.Add(obj20);
obj20.Id = "3049812";
obj20.Filename = "凭证.pdf";
obj20.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentSelfDrive= list19;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list22 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj23 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list22.Add(obj23);
obj23.Id = "3049812";
obj23.Filename = "凭证.pdf";
obj23.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentForeignExchange= list22;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list25 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj26 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list25.Add(obj26);
obj26.Id = "3049812";
obj26.Filename = "凭证.pdf";
obj26.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentHotelCertificate= list25;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list28 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj29 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list28.Add(obj29);
obj29.Id = "3049812";
obj29.Filename = "凭证.pdf";
obj29.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentPhoneBill= list28;
List<AlibabaTaeExpenseReportItemSaveRequest.OcrImageDomain> list31 = new List<AlibabaTaeExpenseReportItemSaveRequest.OcrImageDomain>();
AlibabaTaeExpenseReportItemSaveRequest.OcrImageDomain obj32 = new AlibabaTaeExpenseReportItemSaveRequest.OcrImageDomain();
list31.Add(obj32);
obj32.Id = 60218843L;
obj32.Filename = "invoice_page1.jpg";
obj32.AuthKey = "aK9f2c1e8b4d";
obj32.ReceiptId = 50934701L;
obj32.Angle = 0L;
obj32.Recognized = true;
AlibabaTaeExpenseReportItemSaveRequest.SliceInfoDomain obj33 = new AlibabaTaeExpenseReportItemSaveRequest.SliceInfoDomain();
obj33.Url = "https://expense-file.alibaba-inc.com/slice/60218843.jpg";
obj33.Angle = 90L;
obj33.DimensionList = "1080";
obj33.ViewFull = false;
obj32.SliceInfo= obj33;
obj4.OcrImage= list31;
List<AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain> list35 = new List<AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain>();
AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain obj36 = new AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain();
list35.Add(obj36);
obj36.Name = "张三(临安)";
obj36.EmpNo = "123456";
obj4.CostShare= list35;
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj37 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj37.Value = "2025-08-07";
obj37.Timestamp = 1754496000000L;
obj4.CheckIn= obj37;
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj38 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj38.Value = "2025-08-07";
obj38.Timestamp = 1754496000000L;
obj4.CheckOut= obj38;
List<AlibabaTaeExpenseReportItemSaveRequest.OccupantDomain> list40 = new List<AlibabaTaeExpenseReportItemSaveRequest.OccupantDomain>();
AlibabaTaeExpenseReportItemSaveRequest.OccupantDomain obj41 = new AlibabaTaeExpenseReportItemSaveRequest.OccupantDomain();
list40.Add(obj41);
obj41.Name = "张三(临安)";
obj41.EmpNo = "123456";
obj41.HtUserId = 88213045L;
obj4.Occupant= list40;
List<AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfoDomain> list43 = new List<AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfoDomain>();
AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfoDomain obj44 = new AlibabaTaeExpenseReportItemSaveRequest.HotelAttachmentInfoDomain();
list43.Add(obj44);
obj44.IdList = new long[] { 3049812 };
;
obj44.AiParse = true;
obj44.HaveSnapshot = true;
obj44.ParseSuccess = true;
obj4.ExtraHotelAttachmentInfo= list43;
obj4.ItineraryId = 1069382L;
obj4.BucketId = 884213L;
AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain obj45 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain();
obj45.Id = 179L;
obj45.Code = "杭州";
obj45.Name = "杭州";
obj4.StartCity= obj45;
AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain obj46 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain();
obj46.Id = 179L;
obj46.Code = "杭州";
obj46.Name = "杭州";
obj4.EndCity= obj46;
obj4.StartPlace = "T4-交通中心-B2层K3网约车上客区";
obj4.EndPlace = "杭州西站东广场";
AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain obj47 = new AlibabaTaeExpenseReportItemSaveRequest.CityInfoDomain();
obj47.Id = 179L;
obj47.Code = "杭州";
obj47.Name = "杭州";
obj4.LocationCity= obj47;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj48 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj48.Text = "xxxxx";
obj48.Value = "xxxxx";
obj4.IsRideHailing= obj48;
List<AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfoDomain> list50 = new List<AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfoDomain>();
AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfoDomain obj51 = new AlibabaTaeExpenseReportItemSaveRequest.ItineraryAttachmentInfoDomain();
list50.Add(obj51);
obj51.IdList = new long[] { 3049812 };
;
obj51.ParseSuccess = true;
obj4.ExtraItineraryAttachmentInfo= list50;
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain obj52 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain();
obj52.Id = 19928L;
obj52.Text = "xxxxx";
obj52.Value = "xxxxx";
obj52.EnumSettingId = 10209L;
obj4.EntertainmentCategory= obj52;
List<AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain> list54 = new List<AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain>();
AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain obj55 = new AlibabaTaeExpenseReportItemSaveRequest.EmployeeDomain();
list54.Add(obj55);
obj55.Name = "张三(临安)";
obj55.EmpNo = "123456";
obj4.EatingWith= list54;
obj4.PeopleNum = "5";
obj4.Department = "中国人民银行";
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain obj56 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain();
obj56.Id = 19928L;
obj56.Text = "xxxxx";
obj56.Value = "xxxxx";
obj56.EnumSettingId = 10209L;
obj4.IsBusinessService= obj56;
AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain obj57 = new AlibabaTaeExpenseReportItemSaveRequest.EnumTextValueDomain();
obj57.Id = 19928L;
obj57.Text = "xxxxx";
obj57.Value = "xxxxx";
obj57.EnumSettingId = 10209L;
obj4.ErExistTravelExpenseReason= obj57;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj58 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj58.Text = "xxxxx";
obj58.Value = "xxxxx";
obj4.RelatedApplyId= obj58;
obj4.EmployeeTrainingId = "Z08010106";
obj4.CurrencyAmount = "30";
obj4.ExchangeRateManual = "30";
obj4.ExpenseStartMonth = "2026-04";
obj4.ExpenseEndMonth = "2026-04";
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj59 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj59.Text = "xxxxx";
obj59.Value = "xxxxx";
obj4.AiModel= obj59;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list61 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj62 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list61.Add(obj62);
obj62.Id = 3049812L;
obj62.Filename = "凭证.pdf";
obj62.AuthKey = "aK9f2c1e8b4d";
obj4.InvoiceForSelfPurchasedAiProduct= list61;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj63 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj63.Text = "xxxxx";
obj63.Value = "xxxxx";
obj4.SelectFieldBoepk8vb= obj63;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj64 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj64.Text = "ai_maas";
obj64.Value = "ai_maas";
obj4.AiProductCategory= obj64;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj65 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj65.Text = "GPT";
obj65.Value = "GPT";
obj4.AiTool= obj65;
List<AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain> list67 = new List<AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain>();
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj68 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
list67.Add(obj68);
obj68.Text = "GPT";
obj68.Value = "GPT";
obj4.AiModels= list67;
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj69 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj69.Value = "2025-08-07";
obj69.Timestamp = 1754496000000L;
obj4.FlightDepartureDate= obj69;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list71 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj72 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list71.Add(obj72);
obj72.Id = "3049812";
obj72.Filename = "凭证.pdf";
obj72.AuthKey = "aK9f2c1e8b4d";
obj4.OverseaReceipt= list71;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list74 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj75 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list74.Add(obj75);
obj75.Id = "3049812";
obj75.Filename = "凭证.pdf";
obj75.AuthKey = "aK9f2c1e8b4d";
obj4.ProofOfPayment= list74;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list77 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj78 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list77.Add(obj78);
obj78.Id = "3049812";
obj78.Filename = "凭证.pdf";
obj78.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentMarketFood= list77;
List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain> list80 = new List<AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain>();
AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain obj81 = new AlibabaTaeExpenseReportItemSaveRequest.AttachmentDomain();
list80.Add(obj81);
obj81.Id = "3049812";
obj81.Filename = "凭证.pdf";
obj81.AuthKey = "aK9f2c1e8b4d";
obj4.AttachmentReward= list80;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj82 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj82.Text = "马来西亚";
obj82.Value = "MY";
obj4.Country= obj82;
obj4.StartAndEndTime = "2026-09-21 ~ 2026-09-22";
AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain obj83 = new AlibabaTaeExpenseReportItemSaveRequest.TimestampedValueDomain();
obj83.Value = "2025-08-07";
obj83.Timestamp = 1754496000000L;
obj4.PlaceOrderTime= obj83;
obj4.StartAndEndPlace = "杭州 → 上海";
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj84 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj84.Id = 19928L;
obj84.Text = "是";
obj84.Value = "y";
obj84.EnumSettingId = 10209L;
obj4.IsHcpEntertainment= obj84;
AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain obj85 = new AlibabaTaeExpenseReportItemSaveRequest.TextValueDomain();
obj85.Text = "P01010506 员工招聘项目-新员工入职";
obj85.Value = "P01010506";
obj4.SelectFieldNewstaffProject= obj85;
obj3.TopExpenseTypeData= obj4;
obj3.Id = 77499201L;
obj3.OcrId = 3L;
obj3.GmtCreate = DateTime.Parse(2026-01-01 00:00:00");
obj3.BillType = "electronic_invoice";
obj3.Currency = "CNY";
obj3.Time = DateTime.Parse(2026-01-01 00:00:00");
obj3.LocationCity = "杭州";
obj3.ExpenseTypeId = "724018";
obj3.ExpenseTypeName = "差旅-火车";
obj3.ExpenseTypeListFormatter = "xxxxx";
obj3.ConsumeSceneKey = "train";
obj3.CategoryKey = "traffic";
obj3.BizPurposeKey = "travelling";
obj3.Origin = "RECEIPT";
obj3.ExpenseId = 3L;
obj3.OwnerId = 17799338L;
obj3.ReceiptId = 50896823L;
obj3.Status = "COMPLETE";
obj3.CorpId = 1L;
obj3.LineNo = 1L;
obj3.ExpenseBucketLineId = 3L;
obj3.OptSysFlag = "tae";
obj3.Modifier = 17799338L;
obj3.Creator = 17799338L;
obj3.IsDeleted = "n";
obj3.Description = "guixiangTest";
obj3.NoBillFileIds = "NO_BILL_CERTIFICATE";
obj3.NoBillReasonId = 3L;
obj3.NoBillReasonOther = "xxxxx";
obj3.GmtModified = DateTime.Parse(2026-01-01 00:00:00");
obj3.ReportId = 212186004L;
obj3.IsPrePay = false;
obj3.OrderStatus = "xxxxx";
obj3.ExpenseTypeTags = "Top,Pub";
obj3.CheckIn = "xxxxx";
obj3.CheckOut = "xxxxx";
obj3.ExpenseTypeFromAIDeduction = true;
obj3.ExpenseChannel = "xxxxx";
obj3.CurrencyAmount = "300";
obj3.ApprovedAmount = "30";
obj3.ReimburseAmount = "30";
obj3.SubmitAmount = "30";
obj3.ExchangeRateSys = "7";
obj3.ExchangeRateManual = "7.01";
obj1.ReportItem= obj3;
obj1.BlockCheckPassed = false;
obj1.TenantKey = "ant";
obj1.AppKey = "ant_group";
obj1.EmployeeNo = "091103";
req.TpRequest_ = obj1;
AlibabaTaeExpenseReportItemSaveResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTaeExpenseReportItemSaveRequest;
$tp_request = new ReportItemSaveOpenRequestDto;
$order = new OrderDto;
$order->report_no="212186004";
$order->apply_type="ER";
$tp_request->order = $order;
$report_item = new TopReportItemDto;
$top_expense_type_data = new TopExpenseTypeDataDto;
$time = new TimestampedValue;
$time->value="2025-08-07";
$time->timestamp="1754496000000";
$top_expense_type_data->time = $time;
$create_date = new TimestampedValue;
$create_date->value="2025-08-07";
$create_date->timestamp="1754496000000";
$top_expense_type_data->create_date = $create_date;
$top_expense_type_data->description="机场往返打车";
$currency = new TextValue;
$currency->text="xxxxx";
$currency->value="xxxxx";
$top_expense_type_data->currency = $currency;
$invoice_type = new TextValue;
$invoice_type->text="xxxxx";
$invoice_type->value="xxxxx";
$top_expense_type_data->invoice_type = $invoice_type;
$benefit_department = new TextValue;
$benefit_department->text="xxxxx";
$benefit_department->value="xxxxx";
$top_expense_type_data->benefit_department = $benefit_department;
$top_expense_type_data->expense_type_from_a_i_deduction="false";
$receipt = new ReceiptInfo;
$receipt->receipt_id="50934701";
$receipt->date="Fri Aug 08 00:00:00 CST 2025";
$receipt->payee_name="杭州某某餐饮管理有限公司";
$receipt->payer_name="阿里巴巴网络技术有限公司";
$receipt->origin="customer_upload";
$receipt->origin_id="20250808001";
$receipt->file_id="77188032";
$receipt->auth_key="aK9f2c1e8b4d";
$receipt->receipt_type_key="ALL_ELECTRONIC_COMMON";
$receipt->amount="22.90";
$top_expense_type_data->receipt = $receipt;
$no_bill_reason = new TextValue;
$no_bill_reason->text="xxxxx";
$no_bill_reason->value="xxxxx";
$top_expense_type_data->no_bill_reason = $no_bill_reason;
$top_expense_type_data->other_reason="发票遗失且商家无法补开";
$attachment = new Attachment;
$attachment->id="3049812";
$attachment->filename="凭证.pdf";
$attachment->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment = $attachment;
$attachment_proof_of_truth = new Attachment;
$attachment_proof_of_truth->id="3049812";
$attachment_proof_of_truth->filename="凭证.pdf";
$attachment_proof_of_truth->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_proof_of_truth = $attachment_proof_of_truth;
$attachment_self_drive = new Attachment;
$attachment_self_drive->id="3049812";
$attachment_self_drive->filename="凭证.pdf";
$attachment_self_drive->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_self_drive = $attachment_self_drive;
$attachment_foreign_exchange = new Attachment;
$attachment_foreign_exchange->id="3049812";
$attachment_foreign_exchange->filename="凭证.pdf";
$attachment_foreign_exchange->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_foreign_exchange = $attachment_foreign_exchange;
$attachment_hotel_certificate = new Attachment;
$attachment_hotel_certificate->id="3049812";
$attachment_hotel_certificate->filename="凭证.pdf";
$attachment_hotel_certificate->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_hotel_certificate = $attachment_hotel_certificate;
$attachment_phone_bill = new Attachment;
$attachment_phone_bill->id="3049812";
$attachment_phone_bill->filename="凭证.pdf";
$attachment_phone_bill->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_phone_bill = $attachment_phone_bill;
$ocr_image = new OcrImage;
$ocr_image->id="60218843";
$ocr_image->filename="invoice_page1.jpg";
$ocr_image->auth_key="aK9f2c1e8b4d";
$ocr_image->receipt_id="50934701";
$ocr_image->angle="0";
$ocr_image->recognized="true";
$slice_info = new SliceInfo;
$slice_info->url="https://expense-file.alibaba-inc.com/slice/60218843.jpg";
$slice_info->angle="90";
$slice_info->dimension_list="1080";
$slice_info->view_full="false";
$ocr_image->slice_info = $slice_info;
$top_expense_type_data->ocr_image = $ocr_image;
$cost_share = new Employee;
$cost_share->name="张三(临安)";
$cost_share->emp_no="123456";
$top_expense_type_data->cost_share = $cost_share;
$check_in = new TimestampedValue;
$check_in->value="2025-08-07";
$check_in->timestamp="1754496000000";
$top_expense_type_data->check_in = $check_in;
$check_out = new TimestampedValue;
$check_out->value="2025-08-07";
$check_out->timestamp="1754496000000";
$top_expense_type_data->check_out = $check_out;
$occupant = new Occupant;
$occupant->name="张三(临安)";
$occupant->emp_no="123456";
$occupant->ht_user_id="88213045";
$top_expense_type_data->occupant = $occupant;
$extra_hotel_attachment_info = new HotelAttachmentInfo;
$extra_hotel_attachment_info->id_list="3049812";
$extra_hotel_attachment_info->ai_parse="true";
$extra_hotel_attachment_info->have_snapshot="true";
$extra_hotel_attachment_info->parse_success="true";
$top_expense_type_data->extra_hotel_attachment_info = $extra_hotel_attachment_info;
$top_expense_type_data->itinerary_id="1069382";
$top_expense_type_data->bucket_id="884213";
$start_city = new CityInfo;
$start_city->id="179";
$start_city->code="杭州";
$start_city->name="杭州";
$top_expense_type_data->start_city = $start_city;
$end_city = new CityInfo;
$end_city->id="179";
$end_city->code="杭州";
$end_city->name="杭州";
$top_expense_type_data->end_city = $end_city;
$top_expense_type_data->start_place="T4-交通中心-B2层K3网约车上客区";
$top_expense_type_data->end_place="杭州西站东广场";
$location_city = new CityInfo;
$location_city->id="179";
$location_city->code="杭州";
$location_city->name="杭州";
$top_expense_type_data->location_city = $location_city;
$is_ride_hailing = new TextValue;
$is_ride_hailing->text="xxxxx";
$is_ride_hailing->value="xxxxx";
$top_expense_type_data->is_ride_hailing = $is_ride_hailing;
$extra_itinerary_attachment_info = new ItineraryAttachmentInfo;
$extra_itinerary_attachment_info->id_list="3049812";
$extra_itinerary_attachment_info->parse_success="true";
$top_expense_type_data->extra_itinerary_attachment_info = $extra_itinerary_attachment_info;
$entertainment_category = new EnumTextValue;
$entertainment_category->id="19928";
$entertainment_category->text="xxxxx";
$entertainment_category->value="xxxxx";
$entertainment_category->enum_setting_id="10209";
$top_expense_type_data->entertainment_category = $entertainment_category;
$eating_with = new Employee;
$eating_with->name="张三(临安)";
$eating_with->emp_no="123456";
$top_expense_type_data->eating_with = $eating_with;
$top_expense_type_data->people_num="5";
$top_expense_type_data->department="中国人民银行";
$is_business_service = new EnumTextValue;
$is_business_service->id="19928";
$is_business_service->text="xxxxx";
$is_business_service->value="xxxxx";
$is_business_service->enum_setting_id="10209";
$top_expense_type_data->is_business_service = $is_business_service;
$er_exist_travel_expense_reason = new EnumTextValue;
$er_exist_travel_expense_reason->id="19928";
$er_exist_travel_expense_reason->text="xxxxx";
$er_exist_travel_expense_reason->value="xxxxx";
$er_exist_travel_expense_reason->enum_setting_id="10209";
$top_expense_type_data->er_exist_travel_expense_reason = $er_exist_travel_expense_reason;
$related_apply_id = new TextValue;
$related_apply_id->text="xxxxx";
$related_apply_id->value="xxxxx";
$top_expense_type_data->related_apply_id = $related_apply_id;
$top_expense_type_data->employee_training_id="Z08010106";
$top_expense_type_data->currency_amount="30";
$top_expense_type_data->exchange_rate_manual="30";
$top_expense_type_data->expense_start_month="2026-04";
$top_expense_type_data->expense_end_month="2026-04";
$ai_model = new TextValue;
$ai_model->text="xxxxx";
$ai_model->value="xxxxx";
$top_expense_type_data->ai_model = $ai_model;
$invoice_for_self_purchased_ai_product = new Attachment;
$invoice_for_self_purchased_ai_product->id="3049812";
$invoice_for_self_purchased_ai_product->filename="凭证.pdf";
$invoice_for_self_purchased_ai_product->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->invoice_for_self_purchased_ai_product = $invoice_for_self_purchased_ai_product;
$select_field_boepk8vb = new TextValue;
$select_field_boepk8vb->text="xxxxx";
$select_field_boepk8vb->value="xxxxx";
$top_expense_type_data->select_field_boepk8vb = $select_field_boepk8vb;
$ai_product_category = new TextValue;
$ai_product_category->text="ai_maas";
$ai_product_category->value="ai_maas";
$top_expense_type_data->ai_product_category = $ai_product_category;
$ai_tool = new TextValue;
$ai_tool->text="GPT";
$ai_tool->value="GPT";
$top_expense_type_data->ai_tool = $ai_tool;
$ai_models = new TextValue;
$ai_models->text="GPT";
$ai_models->value="GPT";
$top_expense_type_data->ai_models = $ai_models;
$flight_departure_date = new TimestampedValue;
$flight_departure_date->value="2025-08-07";
$flight_departure_date->timestamp="1754496000000";
$top_expense_type_data->flight_departure_date = $flight_departure_date;
$oversea_receipt = new Attachment;
$oversea_receipt->id="3049812";
$oversea_receipt->filename="凭证.pdf";
$oversea_receipt->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->oversea_receipt = $oversea_receipt;
$proof_of_payment = new Attachment;
$proof_of_payment->id="3049812";
$proof_of_payment->filename="凭证.pdf";
$proof_of_payment->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->proof_of_payment = $proof_of_payment;
$attachment_market_food = new Attachment;
$attachment_market_food->id="3049812";
$attachment_market_food->filename="凭证.pdf";
$attachment_market_food->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_market_food = $attachment_market_food;
$attachment_reward = new Attachment;
$attachment_reward->id="3049812";
$attachment_reward->filename="凭证.pdf";
$attachment_reward->auth_key="aK9f2c1e8b4d";
$top_expense_type_data->attachment_reward = $attachment_reward;
$country = new TextValue;
$country->text="马来西亚";
$country->value="MY";
$top_expense_type_data->country = $country;
$top_expense_type_data->start_and_end_time="2026-09-21 ~ 2026-09-22";
$place_order_time = new TimestampedValue;
$place_order_time->value="2025-08-07";
$place_order_time->timestamp="1754496000000";
$top_expense_type_data->place_order_time = $place_order_time;
$top_expense_type_data->start_and_end_place="杭州 → 上海";
$is_hcp_entertainment = new TextValue;
$is_hcp_entertainment->id="19928";
$is_hcp_entertainment->text="是";
$is_hcp_entertainment->value="y";
$is_hcp_entertainment->enum_setting_id="10209";
$top_expense_type_data->is_hcp_entertainment = $is_hcp_entertainment;
$select_field_newstaff_project = new TextValue;
$select_field_newstaff_project->text="P01010506 员工招聘项目-新员工入职";
$select_field_newstaff_project->value="P01010506";
$top_expense_type_data->select_field_newstaff_project = $select_field_newstaff_project;
$report_item->top_expense_type_data = $top_expense_type_data;
$report_item->id="77499201";
$report_item->ocr_id="3";
$report_item->gmt_create="2026-01-01 00:00:00";
$report_item->bill_type="electronic_invoice";
$report_item->currency="CNY";
$report_item->time="2026-01-01 00:00:00";
$report_item->location_city="杭州";
$report_item->expense_type_id="724018";
$report_item->expense_type_name="差旅-火车";
$report_item->expense_type_list_formatter="xxxxx";
$report_item->consume_scene_key="train";
$report_item->category_key="traffic";
$report_item->biz_purpose_key="travelling";
$report_item->origin="RECEIPT";
$report_item->expense_id="3";
$report_item->owner_id="17799338";
$report_item->receipt_id="50896823";
$report_item->status="COMPLETE";
$report_item->corp_id="1";
$report_item->line_no="1";
$report_item->expense_bucket_line_id="3";
$report_item->opt_sys_flag="tae";
$report_item->modifier="17799338";
$report_item->creator="17799338";
$report_item->is_deleted="n";
$report_item->description="guixiangTest";
$report_item->no_bill_file_ids="NO_BILL_CERTIFICATE";
$report_item->no_bill_reason_id="3";
$report_item->no_bill_reason_other="xxxxx";
$report_item->gmt_modified="2026-01-01 00:00:00";
$report_item->report_id="212186004";
$report_item->is_pre_pay="false";
$report_item->order_status="xxxxx";
$report_item->expense_type_tags="Top,Pub";
$report_item->check_in="xxxxx";
$report_item->check_out="xxxxx";
$report_item->expense_type_from_a_i_deduction="true";
$report_item->expense_channel="xxxxx";
$report_item->currency_amount="300";
$report_item->approved_amount="30";
$report_item->reimburse_amount="30";
$report_item->submit_amount="30";
$report_item->exchange_rate_sys="7";
$report_item->exchange_rate_manual="7.01";
$tp_request->report_item = $report_item;
$tp_request->block_check_passed="false";
$tp_request->tenant_key="ant";
$tp_request->app_key="ant_group";
$tp_request->employee_no="091103";
$req->setTpRequest(json_encode($tp_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.tae.expense.report.item.save' \
-d 'partner_id=apidoc' \
-d 'sign=7C90BF2A748C8A653A3F63162BD3E517' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-10-25+07%3A37%3A53' \
-d 'v=2.0' \
-d 'tp_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTaeExpenseReportItemSaveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tp_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.tae.expense.report.item.save");
add_param(pRequest,"tp_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.tae.expense.report.item.save', {
'tp_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})