### Incremental Employee Query Example Source: https://opendocs.huilianyi.com/implement/master-data/staff/select-employee.html?h=%E4%BA%BA%E5%91%98 This example demonstrates how to construct a GET request to query employee data within a specified date range. It includes parameters for filtering and pagination. ```HTTP {{serviceURL}}/api/open/user?startDate=2015-03-27 14:33:38&endDate=2016-03-04 12:13:15&showBankInfo=true&showCardInfo=true&showCustomValues=true&page=0&size=10&companyOID=2ec774f5-7aba-486c-bd48-cf2ae74c9d9f ``` -------------------------------- ### Example Train Order Query URL Source: https://opendocs.huilianyi.com/implement/business-data/train/order.html This is an example of a GET request URL for querying train orders, including parameters for date range, integration, pagination, payment type, and company OID. ```bash /api/open/train/orders?startDate=2016-09-29 11:25:14&endDate=2016-09-29 11:25:15&integration=CTRIP&page=0&size=1&companyOID=cf2b3694-b4f8-4aca-b233-111748eb025b ``` -------------------------------- ### Request Example for Expense Type Detail Source: https://opendocs.huilianyi.com/implement/master-data/expense-type/detail-expense-type.html Example of a GET request to retrieve a specific expense type's details using its OID and set of books code. ```http /api/open/expenseType/ec92af2c-7af8-48b6-94fc-a77d6bb7eb8c?setOfBooksCode=DEFAULT_SOB ``` -------------------------------- ### Paginated Cost Center Query URL Example Source: https://opendocs.huilianyi.com/implement/master-data/costcenter/query-costcenter.html Example of a GET request URL for paginated cost center queries, specifying page number, size, and set of books code. ```http /api/open/costCenter?page=1&size=10&setOfBooksCode="ZT0001" ``` -------------------------------- ### AI Parameter Extraction Request Example Source: https://opendocs.huilianyi.com/implement/business-data/auto-audit/ai-extract-parameter.html Example of parameters to be sent in a multipart/form-data request for AI parameter extraction. Choose between 'file' and 'base64File'. ```json "file":"" "base64File":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ", "fileName":"123.jpg", "extractParameterConfigCode":1000000000000000001, "extractParameterAttachmentType":"report", "attachmentTypeCode":"ITINERARY_RECEIPT", "otherMaterial":"", "sourceSystem":"test" ``` -------------------------------- ### Budget Item Query Response Example Source: https://opendocs.huilianyi.com/implement/business-data/budget/queryItem.html Example of a successful response when querying budget items. Includes message, error code, and a list of budget item data. ```json { "message": "success", "errorCode": "0000", "data": [ { "organizationCode":"001", "budgetItemCode":"002", "budgetItemName":"预算项目名称", "budgetItemTypeCode":"001", "budgetItemTypeName":"默认预算项目类型", "parentBudgetItemCode":"001", "parentBudgetItemName":"父级预算项目名称", "responsibleDepartmentCode":"0001", "responsibleDepartmentName":"归口部门名称", "remark":"备注信息", "enabled":true, "allCompanyFlag": true, "allDepartmentFlag": true, "allBudgetUnitFlag": true, "i18n": { "budgetItemName": [ { "language": "zh_cn", "value": "预算项目名称" } ] } } ] } ``` -------------------------------- ### Send Message Request Example Source: https://opendocs.huilianyi.com/implement/third-party-application/message-push.html This is an example of the JSON payload for sending a message. Ensure all required fields like 'toUser', 'appId', 'title', and 'url' are provided. ```json { "title": "推送00000000000000", "description": "测试推送452345", "toUser": "yi01", "url": "http://www.baidu.com", "appId": 999893230606635000 } ``` -------------------------------- ### Add Budget Project Response Example Source: https://opendocs.huilianyi.com/implement/business-data/budget/addItem.html This is an example of a response when a budget project code is duplicated within the same organization. It returns an error message and a specific error code. ```json { "message": "同一预算组织下的预算项目代码不能重复!", "errorCode": "12100051" } ``` -------------------------------- ### Add Budget Project Request Example Source: https://opendocs.huilianyi.com/implement/business-data/budget/addItem.html This is an example of a POST request to add a new budget project. It includes organization details, project codes, names, and internationalization settings. ```json { "organizationCode":"001", "budgetItemCode":"002", "budgetItemName":"预算项目名称", "budgetItemTypeCode":"001", "remark":"测试备注2", "isEnabled":true, "enterFlag":true, "authCompanyCodes":["001","002"], "budgetJournalTypeCodes":["001","002"], "i18n": { "budgetItemName": [ { "language": "zh_cn", "value": "预算项目A-默认类型" } ] } } ``` -------------------------------- ### Callback Message Body Example Source: https://opendocs.huilianyi.com/callback/business-data/loan-bill/third_info_show.html This is an example of the callback message body structure for the loan bill detail external information display. ```json { "businessCode":"LA00366956", "employeeId":"001" } ``` -------------------------------- ### Batch Query API Response Example Source: https://opendocs.huilianyi.com/implement/business-data/vendor/vendor-info/open-batch-query.html This is an example of a successful response from the batch query API, showing a list of batch objects with their details. ```JSON { "errorCode": "00000", "data": [ { "batchNo": "TieHang_vendor1128254537784378087_Flight_20250101", "batchNoMappingTime": "2025-01-15 18:10:00", "createTime": "2025-01-15 18:10:00", "closeTime": "-", "statusBol": true, "confirmStatusBol": false }, { "batchNo": "AoXiang_vendor1128254537784378087_Flight_20231201", "batchNoMappingTime": "2023-12-07 18:10:00", "createTime": "2023-12-07 18:10:00", "closeTime": "-", "statusBol": true, "confirmStatusBol": false } ], "spanId": "7edce63123f3e53f" } ``` -------------------------------- ### Payment Withdrawal Callback Return Example Source: https://opendocs.huilianyi.com/callback/business-data/payment-service/paying_withdraw.html This is an example of the return body for the payment withdrawal callback. It indicates the status of the push operation and provides details for each item processed. ```json { "code": "SUCCESS", "message": "推送成功", "body": [ { "id": 1115896396588064770, "detailRtnCode": "Error", "detailMessage": "重复推送" } ] } ``` -------------------------------- ### Budget Organization Query Response Example Source: https://opendocs.huilianyi.com/implement/business-data/budget/queryOrganization.html Example of a successful response from the budget organization query API. It includes a success message, error code, and a list of budget organization data. ```json { "message": "success", "errorCode": "0000", "data": [ { "organizationCode": "001", "organizationName": "财务部", "setOfBooksCode": "GL001", "setOfBooksName": "总账账套", "enabled": true, "tenantFlag": true, "levelOrgName": "总部/财务部" } ] } ``` -------------------------------- ### Expense Report Subsidy Detail Response Example Source: https://opendocs.huilianyi.com/implement/business-data/expense-report/query-expense-report-subsidy-detail.html This is an example of the JSON response when querying for expense report subsidy details. It includes subsidy information, user details, and expense types. ```json { "businessCode": "ER00803551", "expenseReportSubsidyViewList": [ { "openSubsidyDTOS": [ { "expenseReportSubsidyOID": "adcf8a3a-a68f-48e8-b115-b05a80687980", "expenseReportOID": "ea3eae03-3d3c-4b87-ae07-ca9ee0cad917", "international": false, "startDate": "2019-08-09T16:00:00Z", "endDate": "2019-08-14T15:59:00Z", "cityCode": "CHN011000000", "cityName": "北京市", "dpCityInternational": false, "remark": "测试测试", "expenseTypes": [ { "expenseTypeCategoryOID": "0a648be1-eea2-4063-97c8-4aa0cc28a10b", "expenseTypeOID": "60479447-bae0-4bd3-a2fe-ae8da3b72f91", "name": "差补费用类型-火车", "allowanceDeductionNumberDTOList": [ { "fieldName": "扣减数量1", "fieldOID": "54b00afb-2ca5-11ea-8de1-98039b3ed17e", "messageKey": "allowance.deduction.01", "number": 1 }, { "fieldName": "扣减数量2", "fieldOID": "552900d3-2ca5-11ea-8de1-98039b3ed17e", "messageKey": "allowance.deduction.02", "number": 2 }, { "fieldName": "扣减数量3", "fieldOID": "55a08972-2ca5-11ea-8de1-98039b3ed17e", "messageKey": "allowance.deduction.03", "number": 1 } ] }, { "expenseTypeCategoryOID": "93a7d61f-d44e-4686-9a19-e678217a885d", "expenseTypeOID": "a5934c6b-9412-40bb-a99d-8236d5fd8876", "name": "差补费用类型", "allowanceDeductionNumberDTOList": [ { "fieldName": "扣减数量1", "fieldOID": "54b00afb-2ca5-11ea-8de1-98039b3ed17e", "messageKey": "allowance.deduction.01", "number": 1 } ] } ], "formOID": "845de4d1-9570-47d5-b01a-51028c388e7a", "openExpRptSubsidyEnumDTOS": [], "openExpenseReportSubsidyDetailDTOS": [ { "id": "1214469741784682498", "subsidyDate": "2019-08-10T22:07:00Z", "amount": 109.0, "baseCurrencyAmount": 109.0, "currencyRate": 1.0, "baseCurrencyRate": 1.0 } ] } ], "subsidyStartDate": "2019-08-09T16:00:00Z", "subsidyEndDate": "2019-08-14T15:59:00Z", "userSimpleDTOS": [ { "userOID": "8b0b25dd-4a45-47fc-9082-223f5c09130f", "fullName": "UAT-测试员", "employeeID": "0001", "department": { "departmentOID": "bfba3182-0c05-4703-aa64-df2f4759692f", "name": "销售部", "path": "销售部", "custDeptNumber": "dep001" } } ], "expenseReportOID": "ea3eae03-3d3c-4b87-ae07-ca9ee0cad917" } ] } ``` -------------------------------- ### Budget Item Query Parameters Source: https://opendocs.huilianyi.com/implement/business-data/budget/queryItem.html Example of parameters used for querying budget items. Includes date range, pagination, and size. ```json { "startDate": "2021-10-01 00:00:00", "endDate": "2021-10-02 00:00:00", "page": 1, "size": 100 } ``` -------------------------------- ### Success Response Example Source: https://opendocs.huilianyi.com/callback/business-data/external-user/externalUserPassCallback.html This snippet shows the structure of a successful callback response. ```json { "code": "SUCCESS", "message": "OK" } ``` -------------------------------- ### Receipt Report API Request Example Source: https://opendocs.huilianyi.com/implement/report-data/ReceiptReport.html Example of a POST request to the Receipt Report API. Specifies date range, language, and filtering options. ```json { "language": "zh_cn", "page": 0, "size": 1000, "startDate": "2017-11-01", "endDate": "2018-02-01", "useLastModifiedDate": "Y", "useReimbAuditApprovalDate": "Y" } ``` -------------------------------- ### Repayment Report API Response Example Source: https://opendocs.huilianyi.com/implement/report-data/RepaymentReport.html This is an example of a successful response from the Repayment Report API. It contains a list of repayment records, each with detailed information. ```json { "message": "operation completed", "errorCode": "0000", "data": [ { "businessCode": "RP00000001", "loanBusinessCode": "LA00000001", "loanLineSeq": "1", "setOfBooksName": "默认账套", "companyName": "测试公司", "payeeName": "张三", "repaymentCurrency": "CNY", "repaymentValue": "1000.00", "repaymentUserName": "李四", "submittedByName": "李四", "submittedDate": "2024-01-15 10:30:00", "statusDesc": "已核销", "reviewedByName": "王五", "reviewedDate": "2024-01-16 14:20:00", "typeDesc": "现金还款", "aerBusinessCode": "", "expPaymentSeq": "", "payAccountName": "李四", "payAccount": "6222021234567890123", "payBankName": "中国工商银行", "bankReceiptNumber": "BR20240115001", "remark": "借款还款", "acceptAccountName": "测试公司", "acceptAccount": "1234567890123456789", "acceptBankName": "中国建设银行", "entityName": "测试法人", "applicantDeptPath": "总部/财务部", "departmentPath": "总部/财务部", "origDocumentSequence": "JV20240116001", "costCenterItemName": "成本中心1", "loanTypeName": "差旅借款", "bookDate": "2024-01-16", "repaymentEmployeeId": "EMP002", "loanEmployeeId": "EMP001", "loanLineAmount": "1000.00", "loanLineCurrencyCode": "CNY" } ] } ``` -------------------------------- ### Response Example for Loan Bill Detail Source: https://opendocs.huilianyi.com/callback/business-data/loan-bill/third_info_show.html This is a sample response structure returned after processing a request to display external information on a loan bill detail. ```json { "code" : "SUCCESS", "message" : "OK", "body" : "2019单据提交需发邮件" } ``` -------------------------------- ### Loan Bill Detail Response Example 4 (Partial) Source: https://opendocs.huilianyi.com/implement/business-data/loan-bill/query-loan-bill-detail.html This is a partial example of a loan bill detail response, showing the beginning of a JSON object. It includes fields like 'id' and 'acceptAccount'. ```json { "id": 4219, "acceptAccount": null, "acceptAccountName": null, ``` -------------------------------- ### Notified Approval History Example Source: https://opendocs.huilianyi.com/implement/business-data/approval/approval-history.html Example of an approval history record for a notification event. Includes entity and operation details, along with node information. ```json { "entityType": 1001, "entityOID": "bd6e0286-ff1c-4a63-86c6-4fa51d4f17a4", "operation": 2017, "operationDetail": "张三 12301", "ruleApprovalNodeOID": "b435646e-45ea-4bae-8d09-fca4259c94cc", "ruleApprovalNodeName": "知会", "ruleApprovalNodeCode": "1212", "createdDate": "2016-09-18T07:48:59Z", "lastModifiedDate": "2016-09-18T07:48:59Z" } ``` -------------------------------- ### Rejected Approval History Example Source: https://opendocs.huilianyi.com/implement/business-data/approval/approval-history.html Example of an approval history record when an item is rejected. Shows operation, node details, and the specific rejection detail. ```json { "entityType": 1002, "entityOID": "a4ce6bb0-c576-4a71-9225-bbb4cefe11a9", "operation": 2002, "operatorOID": "047cc5bf-c849-468d-8183-a77d50199094", "operator": { "userOID": "047cc5bf-c849-468d-8183-a77d50199094", "fullName": "张三", "employeeID": "12301", "email": "179584@test.com" }, "operationDetail": "审批驳回", "ruleApprovalNodeOID": "b47cb371-fabd-4af3-b202-16348aa4de75", "ruleApprovalNodeName": "审批节点", "ruleApprovalNodeCode": "4343", "createdDate": "2016-09-18T07:48:59Z", "lastModifiedDate": "2016-09-18T07:48:59Z" } ``` -------------------------------- ### Submit Approval History Example Source: https://opendocs.huilianyi.com/implement/business-data/approval/approval-history.html Example of an approval history record when an item is submitted. This includes entity details, operation type, and operator information. ```json { "entityType": 1002, "entityOID": "a4ce6bb0-c576-4a71-9225-bbb4cefe11a9", "operation": 1001, "operatorOID": "047cc5bf-c849-468d-8183-a77d50199094", "operator": { "userOID": "047cc5bf-c849-468d-8183-a77d50199094", "fullName": "张三", "employeeID": "12301", "email": "179584@test.com" }, "createdDate": "2016-09-18T07:48:59Z", "lastModifiedDate": "2016-09-18T07:48:59Z" } ``` -------------------------------- ### Loan Bill Detail Response Example 2 Source: https://opendocs.huilianyi.com/implement/business-data/loan-bill/query-loan-bill-detail.html This example shows another loan bill detail response, differing in payment schedule ID and repayment values. It maintains the same overall structure as other responses. ```json { "id": 4104, "acceptAccount": null, "acceptAccountName": null, "acceptBankName": null, "expenseReportOid": "193fbb37-802f-4a34-8268-a93a836c28c2", "loanApplicationOid": "e423988c-aaa9-4282-8f6c-275255f2d913", "loanBillOid": "e423988c-aaa9-4282-8f6c-275255f2d913", "loanLineId": 1081194410133950466, "paymentScheduleId": 1082211107129663490, "loanLineNumber": 2, "payAccount": null, "payAccountName": null, "payBankName": null, "repaymentOid": "e4656fa8-e811-4b3b-8b27-4ce86a51876b", "repaymentValue": 17, "status": "1001", "type": "2", "updateBy": "68259c89-5e7e-49ce-9ebc-07397bdd976d", "updateDate": "2019-01-07T09:45:28Z", "createBy": "68259c89-5e7e-49ce-9ebc-07397bdd976d", "createDate": "2019-01-07T09:45:00Z", "userOid": "68259c89-5e7e-49ce-9ebc-07397bdd976d", "remark": "报销单提交", "businessCode": "XX00004104", "curreny": "CNY", "actRepayAmount": 17, "isFinance": false, "origDocumentSequence": null, "currencyRate": 1, "baseCurrency": "CNY", "baseRepaymentValue": 17, "baseActRepayAmount": 17, "bankReceiptNumber": null, "tenantId": 1060202689347342338 } ```