Electronic contract generation method, system and device, medium and program product
By establishing an encryption API interface between the business system and the electronic signature system, the automated processing of contract data and electronic signing are realized, which solves the problem of inefficient traditional contract management and improves the efficiency and accuracy of contract processing.
Patent Information
- Application Number
- CN202411689713.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-11
AI Technical Summary
In the existing technology, contract management is inefficient and errors occur frequently. The post-entry method of traditional paper contracts is not suitable for the diversified business needs of large enterprises.
By obtaining contract business data on the business system side, generating contract structured business data, and sending it to the electronic signature system using the encryption API interface. The system generates electronic contracts based on contract templates and structured data, and is safely verified and signed through integrated electronic signature technology.
It realizes an automated process of contract generation, approval, signing and archiving, improves the efficiency and accuracy of contract processing, reduces manual intervention, and ensures the legal effect of the contract.
Smart Images

Figure CN119599839A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic contract technology, and in particular to an electronic contract generation method, system, device, medium and program product. Background Art
[0002] Currently, large enterprises are facing the challenge of diversified business contracts. The traditional paper contract post-entry method has become inadequate, and the traditional contract management method is inefficient and prone to errors.
[0003] Therefore, it is urgent to invent an electronic contract generation method to solve the problems of low efficiency and frequent errors in contract management and electronic contract generation in the prior art. Summary of the invention
[0004] In view of this, embodiments of the present invention provide an electronic contract generation method, system, device, medium and program product, which at least partially solve the problems existing in the prior art.
[0005] Other features and advantages of the present invention will become apparent from the following detailed description, or may be learned in part by practice of the present invention.
[0006] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
[0007] According to a first aspect of an embodiment of the present invention, there is provided a method for generating an electronic contract, the method comprising:
[0008] On the business system side, obtain contract business data;
[0009] Generating contract structured business data according to the contract business data;
[0010] The contract structured business data is sent to the electronic signature system using an encrypted API interface;
[0011] On the electronic signature system side, according to the contract document type corresponding to the contract structured business data, a corresponding contract template is matched from a contract template library;
[0012] Generate a first electronic contract using the contract template and the contract structured business data;
[0013] Initiating a contract signing invitation to the contract signatory based on the first electronic contract;
[0014] Security verification is performed based on the social data and corporate credit data of the signatory. Once the verification is passed, a second electronic contract with signature is obtained based on the signing result.
[0015] Furthermore, the method comprises:
[0016] On the business system side, the contract business data is approved and processed to obtain the approved contract business data.
[0017] Further, the contract template is a pre-set template or a customized template based on business requirements and contract metadata pulled using an encrypted API interface;
[0018] The contract metadata includes contract type, contract interface, contract fields and serialization information.
[0019] Further, initiating a contract signing invitation to the contract signatory based on the first electronic contract includes:
[0020] Based on the first electronic contract, generate a contract signing address;
[0021] The contract signing address is sent to the contract signing party.
[0022] Furthermore, security verification is performed based on the social data and corporate credit data of the signatory. After the verification is passed, a signed second electronic contract is obtained based on the signing result, including:
[0023] Performing user identity verification and enterprise identity verification respectively according to the signatory's social data and the signatory's enterprise unified social credit code to obtain a double verification result, wherein the social data includes communication data and real-name data;
[0024] Determine whether the double verification result is passed;
[0025] If the double verification result is passed, receiving the contract signing result, and generating a signed second electronic contract according to the contract signing result;
[0026] If the result of the two-factor verification is failure, the signatory's identity verification fails and the signing of the contract is prohibited.
[0027] Furthermore, the method comprises:
[0028] The signed second electronic contract is archived to obtain the archived electronic contract, and a corresponding access address is generated for the archived electronic contract, and the access address is pushed to the business system end.
[0029] According to a second aspect of an embodiment of the present invention, there is provided an electronic contract generation system, the system comprising:
[0030] The business module is used to obtain contract business data, review and approve the contract business data, obtain the approved contract business data, generate contract structured business data based on the approved contract business data, and send the contract structured business data to the electronic signature module using an encrypted API interface; and receive the electronic contract access address fed back by the electronic signature module;
[0031] The electronic signature module is used to receive contract structured business data, match the corresponding contract template from the contract template library according to the contract document type corresponding to the contract structured business data, and the contract template is a pre-set template or a customized template based on business needs and contract metadata pulled using an encrypted API interface; generate a first electronic contract using the contract template and the contract structured business data; initiate a contract signing invitation to the contract signatory based on the first electronic contract; perform security verification based on the signatory's social data, and after the verification is passed, obtain a signed second electronic contract based on the signing result, and push the access address of the second electronic contract to the business module.
[0032] According to a third aspect of an embodiment of the present invention, there is provided an electronic contract generation device, the device comprising: a processor and a memory;
[0033] The memory is used to store one or more program instructions;
[0034] The processor is used to run one or more program instructions to execute an electronic contract generation method or steps of an electronic contract generation method as described in any one of the above items.
[0035] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of an electronic contract generation method as described in any one of the above items are implemented.
[0036] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which, when executed by a computer, enable the computer to implement an electronic contract generation method or steps of an electronic contract generation method as described in any one of the above items.
[0037] The embodiments of the present invention have the following advantages:
[0038] The electronic contract generation method, system, device, medium and program product provided by the embodiment of the present invention realize the integration of the business system end and the electronic signature system end through the encrypted API interface, can seamlessly connect the enterprise business data, and automatically generate electronic contracts using preset or customized templates. Through the integrated electronic signature technology, the efficiency and accuracy of contract processing are greatly improved. The embodiment of the present invention has a universal standard interface, which perfectly adapts to the electronic contract requirements in the current business scenario, covers the entire business process of sales, procurement, collection, payment, etc., and has a high degree of scalability, and can efficiently support the electronic contract of new business scenarios in the future. The electronic contract generation method, system, device, medium and program product provided by the embodiment of the present invention greatly improve the efficiency and accuracy of contract signing and generation of electronic contracts between information systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0040] Figure 1 A flowchart of a method for generating an electronic contract provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of the structure of an electronic contract generation system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] The embodiment of the present invention provides a method for generating an electronic contract. Figure 1 The figure shows a flow chart of a method for generating an electronic contract according to an embodiment of the present invention.
[0045] like Figure 1 As shown, an electronic contract generation method according to an embodiment of the present invention may include step S100, step S200, step S300, step S400, step S500, step S600 and step S700.
[0046] In step S100, contract business data is obtained at the business system end.
[0047] The contract business data is then approved and processed to obtain the approved contract business data.
[0048] Next, in step S200, contract structured business data is generated according to the contract business data.
[0049] In step S300, the contract structured business data is sent to the electronic signature system using an encrypted API interface.
[0050] Specifically, the above-mentioned encryption API interface is an interface for data interaction between the business system and the electronic signature system. It is an API with encryption requirements and a set of standardized universal interfaces that have been verified in practice. The encryption API interface is the core of integrating existing business systems and electronic signature systems.
[0051] Next, in step S400, on the electronic signature system side, the contract document type corresponding to the contract structured business data is matched with the corresponding contract template from the contract template library.
[0052] Specifically, the above-mentioned contract template is a pre-set template or a customized template based on business needs and contract metadata pulled using an encrypted API interface (such as a sales contract, a procurement contract, a collection contract, a payment contract, etc.), and the template allows automatic filling based on business data.
[0053] The above-mentioned contract metadata includes the contract type (aggregate entity or monomer), the interface implemented by the contract, and the type, precision, permissions, and serializability of the contract fields; the contract metadata describes the dependencies of the contract template and electronic signature generation.
[0054] In step S500, a first electronic contract is generated using a contract template and contract structured business data.
[0055] Then, in step S600, a contract signing invitation is initiated to the contract signatory based on the first electronic contract.
[0056] Specifically, the above steps include:
[0057] Based on the first electronic contract, a contract signing address is generated, and the contract signing address is sent to the contract signatory.
[0058] Finally, in step S700, security verification is performed based on the social data and corporate credit data of the signatory. After the verification is passed, a signed second electronic contract is obtained based on the signing result.
[0059] Specifically, the above steps include:
[0060] Perform user identity verification and enterprise identity verification based on the signatory's social data and the signatory's enterprise unified social credit code, and obtain a double verification result. Social data includes communication data (mobile phone number) and real-name data (real-name authentication);
[0061] Determine whether the double verification result is passed;
[0062] If the double verification result is passed, the contract signatory will sign the legally recognized electronic signature and seal at the contract signing address through the integrated third-party electronic certification service to obtain the contract signing result, and generate a signed second electronic contract based on the contract signing result, thereby ensuring the legal effect of the contract;
[0063] If the result of the two-factor verification is failure, the signatory's identity verification fails and the signing of the contract is prohibited, thereby ensuring the authenticity of the identity of the contract signatory.
[0064] Finally, the signed second electronic contract is archived to obtain the archived electronic contract, and a corresponding access address is generated for the archived electronic contract, and the access address is pushed to the business system end.
[0065] The following is an example of generating a sales contract:
[0066] 1) Add a new sales contract on the business system side, including complete business data and sales target customers, and complete the approval process of the business system.
[0067] 2) The structured business data of the sales contract is sent to the electronic signature system through the API interface.
[0068] 3) The electronic signature system calls the API interface to pull the metadata of the sales contract and designs the contract template of the sales contract based on the metadata.
[0069] 4) Electronic contract synthesis: The electronic signature system generates an electronic version of the contract based on the contract template and contract structured data.
[0070] 5) The electronic signature system sends a signing invitation message to Party A and Party B who sign the electronic contract.
[0071] 6) The signatory accesses the electronic signature system to sign the electronic contract, using an electronic seal or handwritten signature.
[0072] 7) Push the signed electronic contract data to the business system and provide the access address for viewing the signed electronic contract.
[0073] 8) The business system accesses the data of the electronic signature system and checks the electronic contract as needed.
[0074] It can be seen from the above examples that the electronic contract generation method provided by the embodiment of the present invention can efficiently and concisely complete the signing of electronic contracts, unify the information barriers of internal business data of the enterprise and suppliers or customers, and has the legal effect of electronic signatures, forming a set of standardized integration solutions.
[0075] In addition, the embodiment of the present invention also provides an electronic contract generation system, referring to Figure 2 , the above system specifically includes:
[0076] The business module is used to obtain contract business data, review and approve the contract business data, obtain the approved contract business data, generate contract structured business data based on the approved contract business data, and send the contract structured business data to the electronic signature module using the encrypted API interface; receive the electronic contract access address fed back by the electronic signature module;
[0077] The electronic signature module is used to receive contract structured business data, match the corresponding contract template from the contract template library according to the contract document type corresponding to the contract structured business data, and the contract template is a pre-set template or a customized template based on business needs and contract metadata pulled using the encrypted API interface; generate a first electronic contract using the contract template and the contract structured business data; initiate a contract signing invitation to the contract signatory based on the first electronic contract; perform security verification based on the signatory's social data, and after the verification is passed, obtain a signed second electronic contract based on the signing result, and push the access address of the second electronic contract to the business module.
[0078] The above-mentioned electronic signature module specifically includes:
[0079] The electronic signature and signature system information configuration unit is used to configure the access configuration of the electronic signature system, support the electronic signature activation switch configuration, support the configuration and system testing of the trusted signature system information, and provide an interface for querying the activation status of the electronic signature service.
[0080] The single sign-on unit is used to provide single sign-on capabilities for business contracts to sign into the signing system.
[0081] The electronic signature business scope setting unit is used to support the setting of electronic signature business scope according to document type and transaction type (setting business scope); it is used to provide an interface for the signature system to obtain the signature-enabled document type and transaction type data (data acquisition interface); it is used to provide an interface for whether the document type enables electronic signature and the display and hiding of the field button group (determining whether to enable electronic signature); it is used to support the definition of contract document fields required by contract templates; it is used to support the connection with the trusted signature contract template setting function according to the setting results.
[0082] The contract template matching unit is used to provide an interface for the signature system to query the contract template according to the document type and transaction type; it is used to provide a contract template selection page, and the contract template display content on the page is the contract template information queried by the signature system.
[0083] The attachment contract unit is used to provide the "attachment contract" function. It can be used to manage attachment-type contracts when uploading attachment contracts to contract documents; it is used to support uploading, downloading, previewing, and deleting attachment contracts; it is used to support uploading multiple attachment contracts to one contract document.
[0084] The contract initiation and signing unit, for standard contracts: generates a formal contract document by calling the signature system capability through the interface and enters the signing process; for attachment contracts: receives the attachment contract through the interface and uploads it to the signature system to generate a formal contract document and enter the signing process.
[0085] The contract browsing and downloading unit is used for browsing and downloading formal attachment contracts (signed and transmitted for trusted signature); for browsing and downloading informal attachment contracts (not signed); and for supporting browsing and downloading of standard contracts.
[0086] The contract signing unit includes the contract signing function: used for the business system to log in to the signature system for single-point signing; used for users to visit the signing address sent by the signing invitation to sign the contract.
[0087] The signature withdrawal and signature cancellation unit is used to connect to the signature system and provide a standard interface for contract signature withdrawal capability; it is used to connect to the signature system and provide a standard interface for contract signature cancellation capability.
[0088] The electronic signature process query unit is used to connect to the signature system and provide a standard interface for electronic signature query capabilities.
[0089] The signing completion write-back status unit is used to write the contract signing completion status back to the contract document after the contract signing in the signature system is completed.
[0090] The electronic signature system configurable unit is used to configure the enabled signature system and the implementation class of the corresponding signature standard interface through the configuration file.
[0091] The electronic contract generation system provided by the embodiment of the present invention realizes the integration of the business system and the electronic signature system through the encrypted API interface; by setting up an automated process for contract generation, approval, signing, and archiving, it reduces manual intervention and improves the efficiency of contract management; through the API interface, the electronic signature system is connected with the company's ERP, CRM, financial system and other core business systems to achieve real-time data synchronization; the existing business processes are redesigned or optimized to ensure that electronic signatures can be smoothly embedded in various links such as sales, procurement, and finance, thereby realizing the optimization of the contract management process; the embodiment of the present invention also manages the entire process of contract creation, approval, signing, execution, and archiving to ensure the traceability of the contract status and realize the full life cycle management of the contract; uses contract data to perform business analysis, such as contract type distribution, signing efficiency, contract performance, etc., to provide decision support for management.
[0092] In addition, an embodiment of the present invention also provides an electronic contract generation device, which includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute an electronic contract generation method or steps of an electronic contract generation method as described above.
[0093] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the electronic contract generation method described above are implemented.
[0094] In addition, an embodiment of the present invention further provides a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, an electronic contract generation method or steps of an electronic contract generation method as described above are implemented.
[0095] In summary, the electronic contract generation method, system, device, medium and program product provided by the embodiments of the present invention can seamlessly connect to enterprise business data, automatically generate electronic contracts using preset or custom templates, and greatly improve the efficiency and accuracy of contract processing through integrated electronic signature technology. The embodiments of the present invention have a universal standard interface, which perfectly adapts to the electronic contract requirements in the current business scenarios, covering the entire business process of sales, procurement, collection, payment, etc. It is highly scalable and can efficiently support the electronic contract of new business scenarios in the future. The embodiments of the present invention greatly improve the efficiency and accuracy of contract signing between information systems.
[0096] In the embodiment of the present invention, the processor may be an integrated circuit chip with signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware. The storage medium may be a memory, for example, a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).The storage medium described in the embodiment of the present invention is intended to include but is not limited to these and any other suitable types of memory. Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by a combination of hardware and software. When the software is applied, the corresponding function can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access. Although the present invention has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to it on the basis of the present invention. Therefore, these modifications or improvements made on the basis of not departing from the spirit of the present invention all belong to the scope of protection claimed in the present invention.
Claims
1. A method for generating an electronic contract, characterized in that: The method comprises: On the business system side, obtain contract business data; Generating contract structured business data according to the contract business data; The contract structured business data is sent to the electronic signature system using an encrypted API interface; On the electronic signature system side, according to the contract document type corresponding to the contract structured business data, a corresponding contract template is matched from a contract template library; Generate a first electronic contract using the contract template and the contract structured business data; Initiating a contract signing invitation to the contract signatory based on the first electronic contract; Security verification is performed based on the social data and corporate credit data of the signatory. Once the verification is passed, a second electronic contract with signature is obtained based on the signing result.
2. The electronic contract generation method according to claim 1, characterized in that: The method comprises: On the business system side, the contract business data is approved and processed to obtain the approved contract business data.
3. The electronic contract generation method according to claim 1, characterized in that: The contract template is a pre-set template or a customized template based on business requirements and contract metadata pulled using an encrypted API interface; The contract metadata includes contract type, contract interface, contract fields and serialization information.
4. The electronic contract generation method according to claim 1, characterized in that: Initiating a contract signing invitation to the contract signatory based on the first electronic contract, including: Based on the first electronic contract, generate a contract signing address; The contract signing address is sent to the contract signing party.
5. The electronic contract generation method according to claim 1, characterized in that: The security verification is carried out based on the social data and corporate credit data of the signatory. After the verification is passed, the second electronic contract signed is obtained according to the signing result, including: Performing user identity verification and enterprise identity verification respectively according to the signatory's social data and the signatory's enterprise unified social credit code to obtain a double verification result, wherein the social data includes communication data and real-name data; Determine whether the double verification result is passed; If the double verification result is passed, receiving the contract signing result, and generating a signed second electronic contract according to the contract signing result; If the result of the two-factor verification is failure, the signatory's identity verification fails and the signing of the contract is prohibited.
6. The electronic contract generation method according to claim 1, characterized in that: The method comprises: The signed second electronic contract is archived to obtain the archived electronic contract, and a corresponding access address is generated for the archived electronic contract, and the access address is pushed to the business system end.
7. An electronic contract generation system, characterized in that: The system comprises: The business module is used to obtain contract business data, review and approve the contract business data, obtain the approved contract business data, generate contract structured business data based on the approved contract business data, and send the contract structured business data to the electronic signature module using an encrypted API interface; and receive the electronic contract access address fed back by the electronic signature module; The electronic signature module is used to receive contract structured business data, match the corresponding contract template from the contract template library according to the contract document type corresponding to the contract structured business data, and the contract template is a pre-set template or a customized template based on business needs and contract metadata pulled using an encrypted API interface; generate a first electronic contract using the contract template and the contract structured business data; initiate a contract signing invitation to the contract signatory based on the first electronic contract; perform security verification based on the signatory's social data, and after the verification is passed, obtain a signed second electronic contract based on the signing result, and push the access address of the second electronic contract to the business module.
8. An electronic contract generation device, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of an electronic contract generation method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of an electronic contract generation method as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product includes computer program instructions, which, when executed by a processor, implement the steps of an electronic contract generation method as described in any one of claims 1 to 6.