WO2022116350A1 - 基于区块链的发票管理方法、系统、设备及存储介质 - Google Patents

基于区块链的发票管理方法、系统、设备及存储介质 Download PDF

Info

Publication number
WO2022116350A1
WO2022116350A1 PCT/CN2020/141545 CN2020141545W WO2022116350A1 WO 2022116350 A1 WO2022116350 A1 WO 2022116350A1 CN 2020141545 W CN2020141545 W CN 2020141545W WO 2022116350 A1 WO2022116350 A1 WO 2022116350A1
Authority
WO
WIPO (PCT)
Prior art keywords
invoice
interface
blockchain platform
invoicing
tax
Prior art date
Application number
PCT/CN2020/141545
Other languages
English (en)
French (fr)
Inventor
陈晓程
Original Assignee
深圳点链科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳点链科技有限公司 filed Critical 深圳点链科技有限公司
Publication of WO2022116350A1 publication Critical patent/WO2022116350A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • the present application relates to the field of blockchain technology, and in particular, to a blockchain-based invoice management method, system, device and storage medium.
  • Electronic invoices are a product of the information age. Like ordinary invoices, they are issued to merchants in the form of unified issuance by the tax bureau. The invoice number adopts a national unified code and adopts unified anti-counterfeiting technology, and is distributed to merchants. Electronic invoices are accompanied by electronic tax bureaus. Signature mechanism.
  • the invoice module and the tax blockchain platform are relatively independent, and data sharing cannot be achieved.
  • corporate users issue invoices, they can only transfer invoicing data to the tax blockchain platform through third-party plug-ins or controls.
  • the process is cumbersome, and the authenticity of invoice information is difficult to distinguish, making it difficult to trace invoice information.
  • the embodiments of the present application aim to solve the cumbersome process of invoicing by enterprise users through third-party plug-ins or controls, the difficulty in distinguishing the authenticity of invoice information, and the problem of invoice information. Tracing difficult problems.
  • the embodiment of the present application provides a blockchain-based invoice management method, and the invoice management method includes:
  • the standardized functional interface includes an invoicing interface
  • the creating a standardized functional interface for transmitting data includes:
  • the functional interface is encrypted by using a preset encryption method to obtain the standardized functional interface.
  • the preset encryption method includes an encryption algorithm and/or an encrypted network security protocol.
  • the standardized functional interface further includes an invoice verification interface, an invoice query interface, and an invoice invalidation interface.
  • the invoice management method further includes:
  • the invoice verification interface is invoked to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be verified according to the invoice verification request information, and verify the invoice information to be verified;
  • the invoice management method further includes:
  • the invoice query interface is invoked to transmit the invoice printing request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be printed according to the invoice printing request information;
  • the invoice management method further includes:
  • the invoice void interface When receiving an invoice void request, the invoice void interface is invoked to transmit the invoice void request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be destroyed according to the invoice void request information, and invalidate the invoice letter to be destroyed;
  • the application also provides a blockchain-based invoice management system, including:
  • an interface creation module for creating a standardized function interface for transmitting data;
  • the standardized function interface includes an invoicing interface;
  • an interface connection module for establishing a connection with the tax blockchain platform by using the invoicing interface
  • a data verification module configured to verify the authenticity of the invoicing data carried in the invoicing request when the invoicing request is received
  • an interface calling module configured to call the invoicing interface to transmit the invoicing data to the tax blockchain platform if the invoicing data is verified, so that the tax blockchain platform generates invoice information according to the invoicing data ;
  • An information receiving module configured to receive and record the invoice information fed back by the tax blockchain platform through the invoicing interface.
  • the present application also provides a blockchain-based invoice management method and device comprising: a memory, a processor, and an invoice management program stored on the memory and running on the processor, When the invoice management program is executed by the processor, the steps of the above-mentioned blockchain-based invoice management method are implemented.
  • the present application also provides a storage medium on which an invoice management program is stored, and when the invoice management program is executed by a processor, implements the steps of the above-mentioned blockchain-based invoice management method.
  • the standardized function interface includes an invoicing interface, which is used to establish a connection with the tax blockchain platform.
  • an invoicing request is received, the authenticity of the invoicing data carried in the invoicing request is verified. Verification, if the billing data is verified, call the billing interface to transmit the billing data to the tax blockchain platform, so that the tax blockchain platform can generate invoice information based on the billing data, receive and record the feedback from the tax blockchain platform through the billing interface.
  • the technical solution of the invoice information based on the company solves the problems of the cumbersome process of invoicing through third-party plug-ins or controls, the difficulty in distinguishing the authenticity of the invoice information and the difficulty in tracing the invoice information.
  • the invention of this method uses the characteristics of the blockchain to ensure the authenticity and credibility of the invoice information, and avoids the tampering of the invoice information, which not only reduces the tedious work of enterprise users when issuing invoices, improves the work efficiency of enterprise users, but also reduces the cost of enterprises. When the tax filing is made.
  • FIG. 1 is a schematic structural diagram of a hardware operating environment involved in a solution according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of the first embodiment of the blockchain-based invoice management method of the application
  • FIG. 3 is a schematic flowchart of the second embodiment of the blockchain-based invoice management method of the application.
  • FIG. 4 is a schematic flowchart of the third embodiment of the blockchain-based invoice management method of the present application.
  • FIG. 5 is a schematic flowchart of the fourth embodiment of the blockchain-based invoice management method of the present application.
  • FIG. 6 is a functional block diagram of the blockchain-based invoice management system of the present application.
  • FIG. 1 is a schematic structural diagram of a hardware operating environment involved in the solution of an embodiment of the present application.
  • FIG. 1 can be a schematic structural diagram of the hardware operating environment of the invoice management device.
  • the invoice management device may include: a processor 1001 , such as a CPU, a memory 1005 , a user interface 1003 , a network interface 1004 , and a communication bus 1002 .
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
  • the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • Invoice management equipment can also include RF (Radio Frequency, radio frequency) circuits, sensors, audio circuits, WiFi modules, etc.
  • RF Radio Frequency, radio frequency
  • the structure of the invoice management device shown in FIG. 1 does not constitute a limitation on the invoice management device, and may include more or less components than the one shown, or combine some components, or arrange different components .
  • the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and an invoice management program.
  • the operating system is a program for managing and controlling the hardware and software resources of the invoice management device, and the operation of the invoice management program and other software or programs.
  • the user interface 1003 is mainly used to connect the terminal and perform data communication with the terminal;
  • the network interface 1004 is mainly used for the background server to perform data communication with the background server;
  • the processor 1001 can be used to call the memory Invoice management program stored in 1005.
  • the invoice management device includes: a memory 1005, a processor 1001, and an invoice management program stored on the memory and executable on the processor, wherein:
  • the standardized functional interface includes an invoicing interface
  • the functional interface is encrypted by using a preset encryption method to obtain the standardized functional interface.
  • the preset encryption method includes an encryption algorithm and/or an encrypted network security protocol.
  • the standardized functional interface further includes an invoice verification interface, an invoice query interface, and an invoice invalidation interface.
  • the invoice verification interface is invoked to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be verified according to the invoice verification request information, and verify the invoice information to be verified;
  • the invoice query interface is invoked to transmit the invoice printing request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be printed according to the invoice printing request information;
  • the invoice void interface When receiving an invoice void request, the invoice void interface is invoked to transmit the invoice void request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice to be destroyed according to the invoice void request information, and invalidate the invoice letter to be destroyed;
  • the embodiments of the present application provide embodiments of the blockchain-based invoice management method. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the execution may be performed in a sequence different from that here.
  • the steps shown or described, the blockchain-based invoice management method can be applied to invoicing, invoice verification, invoice printing and invoice invalidation, and the execution subject of the method can be an industrial blockchain platform, but it is not limited this.
  • the industrial blockchain platform is connected with the national tax blockchain platform through standardized functional interfaces, so as to realize the operations of invoicing, invoice verification, invoice printing and invoice invalidation.
  • the blockchain-based invoice management method of the present application includes the following steps:
  • Step S210 Create a standardized functional interface for transmitting data.
  • the standardized functional interface can connect the industrial blockchain platform and the tax blockchain platform, and is used to transmit the corresponding data to the tax district through the standardized functional interface when the enterprise user invoices, validates the invoice, prints the invoice and voids the invoice.
  • the blockchain platform and the tax blockchain platform transmit the generated invoice information, invoice verification results, invoice information to be printed, and invoice invalidation results to the industrial blockchain platform.
  • step S210 includes the following steps:
  • Step a Generate a functional interface.
  • Step b Encrypting the functional interface using a preset encryption method to obtain the standardized functional interface.
  • the standardized functional interface is obtained by standardizing the functional interface by using a preset encryption method.
  • the preset encryption method includes encryption algorithm and/or encrypted network security protocol; the encryption algorithm has various, such as RSA encryption algorithm, AES encryption algorithm, RSA encryption algorithm, etc.; encrypted network security protocol such as https protocol. It is worth noting that when the standardized function interface performs data transmission, the transmitted data is encrypted data, that is, ciphertext. After the industrial blockchain platform and the tax blockchain platform respectively receive the data sent by one of them, they need to decrypt the received data using a key shared by both parties or matched by both parties.
  • the standardized function interface includes an invoicing interface, and the invoicing interface is used to transmit the relevant data of the enterprise user when invoicing to the tax blockchain platform.
  • Step S220 Use the invoicing interface to establish a connection with the tax blockchain platform.
  • the billing interface in the standardized function interface is used to connect the bill data interface of the industrial blockchain platform and the tax blockchain platform, so that enterprise users can use the industrial blockchain platform to connect the bill data interface.
  • the invoicing interface sends the invoicing data to the tax blockchain platform.
  • Step S230 When the billing request is received, verify the authenticity of the billing data carried in the billing request.
  • the industrial blockchain platform when the industrial blockchain platform receives the invoicing request sent by the enterprise user, it obtains the invoicing data carried in the invoicing request. Then, verify the authenticity of the billing data. If the billing data verification fails, return the prompt message that the verification failed to remind the enterprise user to check the billing data; And execute step S240.
  • Step S240 If the invoicing data is verified successfully, call the invoicing interface to transmit the invoicing data to the tax blockchain platform, so that the tax blockchain platform generates invoice information according to the invoicing data.
  • the industrial blockchain platform calls the invoicing interface to send the invoicing data to the tax blockchain platform in the form of cipher text, and the tax blockchain platform responds to the received cipher text.
  • Decryption to obtain the billing data so as to create the invoice information required by the enterprise user according to the billing data; then, the tax blockchain platform also feeds back the invoice information in the form of ciphertext to the industrial blockchain platform through the billing interface.
  • Step S250 Receive and record the invoice information fed back by the tax blockchain platform through the invoicing interface.
  • the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoicing interface to obtain invoice information, and then records the invoice information, that is, the enterprise user completes the invoicing of the invoice.
  • the standardized function interface since a standardized function interface for data transmission is adopted, the standardized function interface includes an invoicing interface, and the invoicing interface is used to establish a connection with the tax blockchain platform, and when an invoicing request is received, the invoicing request The invoicing data carried in the system is verified for authenticity. If the invoicing data is verified, the invoicing interface is called to transmit the invoicing data to the tax blockchain platform, so that the tax blockchain platform can generate invoice information based on the invoicing data, receive and record the invoice information from the taxpayer.
  • the blockchain platform uses the technical means of the invoice information fed back through the invoicing interface, and uses the characteristics of the blockchain to ensure the authenticity and credibility of the invoice information, avoid the tampering of the invoice information, and not only reduce the tedious work of corporate users when invoicing, It improves the work efficiency of enterprise users and reduces the time for enterprises to file tax declarations.
  • the standardized functional interface further includes an invoice verification interface, an invoice query interface, and an invoice invalidation interface.
  • the invoice verification interface is used to transmit the invoice verification request and the invoice verification result
  • the invoice query interface is used to transmit the invoice printing request and the invoice information to be printed
  • the invoice void interface is used to transmit the invoice void request and the invoice void result.
  • the blockchain-based invoice management method of the present application which is specifically used to verify an invoice, includes the following steps:
  • Step S310 Use the invoice verification interface to establish a connection with the tax blockchain platform.
  • the invoice verification interface in the standardized functional interface is used to connect the industrial blockchain platform and the invoice verification interface of the tax blockchain platform, so that the enterprise user can verify the authenticity of the invoice through the industrial blockchain platform.
  • the invoice verification interface sends an invoice verification request to the tax blockchain platform.
  • Step S320 When an invoice verification request is received, the invoice verification interface is invoked to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains the pending invoice verification request according to the invoice verification request. Verifying the invoice information, and verifying the invoice information to be verified.
  • the invoice verification request is sent by the enterprise user, which carries the invoice information to be verified by the enterprise user.
  • the industrial blockchain platform calls the invoice verification interface to send the invoice verification request to the tax blockchain platform in the form of cipher text, and the tax blockchain platform performs the processing on the received cipher text. Decryption to obtain an invoice verification request, thereby obtaining invoice information according to the invoice verification request, and verifying the authenticity of the invoice information, thereby generating an invoice verification result.
  • the tax blockchain platform feeds back the invoice verification result to the industrial blockchain platform in the form of cipher text through the invoice verification interface.
  • Step S330 Receive the invoice verification result fed back by the tax blockchain platform through the invoice verification interface.
  • the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice verification interface to obtain the invoice verification result, and the enterprise user can determine the authenticity of the invoice information through the invoice verification result.
  • an invoice verification interface is used to establish a connection with the tax blockchain platform
  • the invoice verification interface is invoked to transmit the invoice verification request to the tax blockchain platform, so that the invoice verification request is transmitted to the tax blockchain platform.
  • the tax blockchain platform obtains the invoice information to be verified according to the invoice verification request, verifies the invoice information to be verified, and receives the invoice verification results fed back by the tax blockchain platform through the invoice verification interface, which improves the invoice verification process. execution efficiency.
  • the blockchain-based invoice management method of the present application which is specifically used for invoice printing, includes the following steps:
  • Step S410 Use the invoice query interface to establish a connection with the tax blockchain platform.
  • the invoice query interface in the standardized function interface is used to connect the invoice query interface of the industrial blockchain platform and the tax blockchain platform, so that when enterprise users print electronic invoices through the industrial blockchain platform, The invoice printing request is sent to the tax blockchain platform by the invoice query interface.
  • Step S420 When an invoice printing request is received, the invoice query interface is invoked to transmit the invoice printing request to the tax blockchain platform, so that the tax blockchain platform obtains the pending invoice according to the invoice printing request. Printed invoice information.
  • the invoice printing request is sent by the enterprise user, which carries the invoice query information.
  • the industrial blockchain platform calls the invoice query interface to send the invoice printing request to the tax blockchain platform in the form of cipher text, and the tax blockchain platform processes the received cipher text. Decrypt to get the invoice printing request.
  • the tax blockchain platform uses the invoice query information as the query condition, and obtains the invoice information to be printed that matches the invoice query information from the database; then, the tax blockchain platform uses the invoice query interface to print the invoice information to be printed.
  • the form of ciphertext is fed back to the industrial blockchain platform.
  • Step S430 Generate an electronic invoice according to the invoice information to be printed sent by the tax blockchain platform through the invoice query interface, and print the electronic invoice.
  • the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice query interface to obtain the invoice information to be printed, and then generates an electronic invoice from the invoice information to be printed, and prints the generated invoice information.
  • Electronic Invoice is a code that specifies the invoice information to be printed.
  • an invoice query interface is used to establish a connection with the tax blockchain platform
  • the invoice query interface is invoked to transmit the invoice printing request to the tax blockchain platform, so that the invoice printing request is transmitted to the tax blockchain platform.
  • the tax blockchain platform obtains the invoice information to be printed according to the invoice printing request, generates electronic invoices according to the invoice information to be printed sent by the tax blockchain platform through the invoice query interface, and prints the electronic invoices, realizing electronic invoices. for fast generation and printing.
  • the blockchain-based invoice management method of the present application which is specifically used for voiding invoices, includes the following steps:
  • Step S510 Establish a connection with the tax blockchain platform using the invoice voiding interface.
  • the invoice voiding interface in the standardized functional interface is used to connect the invoice voiding interface of the industrial blockchain platform and the tax blockchain platform, so that when the enterprise user destroys the invoice information through the industrial blockchain platform, The invoice invalidation request is sent to the tax blockchain platform through the invoice invalidation interface.
  • Step S520 When receiving the invoice voiding request, call the invoice voiding interface to transmit the invoice voiding request to the tax blockchain platform, so that the tax blockchain platform obtains pending invoices according to the invoice voiding request. Information of the destroyed invoices, and invalidation of the invoice letter to be destroyed.
  • the invoice invalidation request is sent by the enterprise user, which carries the invoice information to be destroyed by the enterprise user.
  • the industrial blockchain platform calls the invoice invalidation interface to send the invoice invalidation request to the tax blockchain platform in the form of ciphertext, and the taxation blockchain platform decrypts the received ciphertext and obtains the invoice invalidation request, so as to obtain the invoice information to be destroyed by the enterprise user according to the invoice invalidation request. Then further obtain the same target invoice information as the invoice information to be destroyed, and invalidate the target invoice information to generate the invoice invalidation result, and then feed back the invoice invalidation result in ciphertext to the industrial blockchain platform through the invoice invalidation interface.
  • Step S530 Receive an invoice void result fed back by the tax blockchain platform through the invoice void interface.
  • the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice voiding interface, and obtains the invoice voiding result.
  • the enterprise user can determine that the invoice information to be destroyed will no longer exist through the invoice voiding result. .
  • this embodiment adopts the invoice voiding interface to establish a connection with the tax blockchain platform.
  • the invoice voiding interface is invoked to transmit the invoice voiding request to the tax blockchain platform, so that the invoice voiding request is transmitted to the tax blockchain platform.
  • the tax blockchain platform obtains the invoice information to be destroyed according to the invoice invalidation request, and invalidates the invoice letter to be destroyed. timeliness of work.
  • a blockchain-based invoice management system provided by this application includes:
  • an interface creation module 610 configured to create a standardized function interface for transmitting data; the standardized function interface includes an invoicing interface;
  • an interface connection module 620 configured to establish a connection with the tax blockchain platform by using the invoicing interface
  • a data verification module 630 configured to verify the authenticity of the invoicing data carried in the invoicing request when receiving the invoicing request;
  • the interface calling module 640 is configured to call the invoicing interface to transmit the invoicing data to the tax blockchain platform if the invoicing data is verified, so that the tax blockchain platform generates an invoice according to the invoicing data information;
  • the information receiving module 650 is configured to receive and record the invoice information fed back by the tax blockchain platform through the invoicing interface.
  • the interface creation module 610 includes:
  • An interface creation unit for generating functional interfaces
  • An interface encryption unit configured to perform encryption processing on the functional interface by using a preset encryption method to obtain the standardized functional interface.
  • the preset encryption method includes an encryption algorithm and/or an encrypted network security protocol.
  • the standardized functional interface further includes an invoice verification interface, an invoice query interface, and an invoice invalidation interface.
  • the interface connection module 620 is further configured to establish a connection with the tax blockchain platform by using the invoice verification interface;
  • the interface calling module 640 is further configured to, when receiving an invoice verification request, call the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform can request the invoice verification according to the The invoice verification request obtains the invoice information to be verified, and verifies the invoice information to be verified;
  • the information receiving module 650 is further configured to receive the invoice verification result fed back by the tax blockchain platform through the invoice verification interface.
  • interface connection module 620 is further configured to establish a connection with the tax blockchain platform by using the invoice query interface;
  • the interface calling module 640 is further configured to, when receiving an invoice printing request, call the invoice query interface to transmit the invoice printing request to the tax blockchain platform, so that the tax blockchain platform can make the request according to the The invoice printing request obtains the invoice information to be printed;
  • the information receiving module 650 is further configured to generate an electronic invoice according to the invoice information to be printed sent by the tax blockchain platform through the invoice query interface, and print the electronic invoice.
  • the interface connection module 620 is further configured to establish a connection with the tax blockchain platform by using the invoice invalidation interface;
  • the interface calling module 640 is further configured to call the invoice invalidation interface to transmit the invoice invalidation request to the tax blockchain platform when receiving the invoice invalidation request, so that the taxation blockchain platform can make the request according to the
  • the invoice invalidation request obtains the information of the invoice to be destroyed, and invalidates the invoice letter to be destroyed;
  • the information receiving module 650 is further configured to receive an invoice void result fed back by the tax blockchain platform through the invoice void interface.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • An apparatus implements the functions specified in a flow or flows of the flowcharts and/or a block or blocks of the block diagrams.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams.
  • any reference signs placed between parentheses shall not be construed as limiting the claim.
  • the word “comprising” does not exclude the presence of elements or steps not listed in a claim.
  • the word “a” or “an” preceding an element does not preclude the presence of a plurality of such elements.
  • the present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware.
  • the use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

一种基于区块链的发票管理方法、系统、设备及存储介质,该方法包括:创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口(S210);采用所述开票接口与税务区块链平台建立连接(S220);当接收到开票请求时,对开票请求中携带的开票数据进行真实性验证(S230);若开票数据验证通过,则调用开票接口将开票数据传输至税务区块链平台,以使得税务区块链平台根据开票数据生成发票信息(S240);接收并记录由税务区块链平台通过开票接口反馈的发票信息(S250)。

Description

基于区块链的发票管理方法、系统、设备及存储介质
本申请要求于2020年12月4日申请的、申请号为202011416353.1的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及区块链技术领域,尤其涉及一种基于区块链的发票管理方法、系统、设备及存储介质。
背景技术
电子发票是信息时代的产物,同普通发票一样,采用税务局统一发放的形式给商家使用,发票号码采用全国统一编码,采用统一防伪技术,分配给商家,在电子发票上附有电子税局的签名机制。
目前,在产业区块链系统中,发票模块和税务区块链平台是相对独立的,无法实现数据共享。企业用户开发票时,只能通过第三方插件或控件来将开票数据传入税务区块链平台,其过程比较繁琐,而且发票信息真伪难辨,追溯发票信息比较困难。
技术问题
本申请实施例通过提供一种基于区块链的发票管理方法、系统、设备及存储介质,旨在解决企业用户通过第三方插件或控件开发票时过程繁琐、发票信息真伪难辨以及发票信息追溯困难的问题。
技术解决方案
本申请实施例提供了一种基于区块链的发票管理方法,所述发票管理方法,包括:
创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
采用所述开票接口与税务区块链平台建立连接;
当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
在一实施例中,所述创建用于传输数据的标准化功能接口,包括:
生成功能接口;
采用预设的加密方式对所述功能接口进行加密处理,得到所述标准化功能接口。
在一实施例中,所述预设的加密方式包括加密算法和/或加密的网络安全协议。
在一实施例中,所述标准化功能接口还包括发票验证接口、发票查询接口以及发票作废接口。
在一实施例中,所述发票管理方法,还包括:
采用所述发票验证接口与所述税务区块链平台建立连接;
当接收到发票验证请求时,调用所述发票验证接口将所述发票验证请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票验证请求获取待验证的发票信息,并对所述待验证的发票信息进行验证;
接收由所述税务区块链平台通过所述发票验证接口反馈的发票验证结果。
在一实施例中,所述发票管理方法,还包括:
采用所述发票查询接口与所述税务区块链平台建立连接;
当接收到发票打印请求时,调用所述发票查询接口将所述发票打印请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票打印请求获取待打印的发票信息;
根据由所述税务区块链平台通过所述发票查询接口发送的待打印的发票信息生成电子发票,并打印所述电子发票。
在一实施例中,所述发票管理方法,还包括:
采用所述发票作废接口与所述税务区块链平台建立连接;
当接收到发票作废请求时,调用所述发票作废接口将所述发票作废请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票作废请求获取待销毁的发票信息,并对所述待销毁的发票信进行作废处理;
接收由所述税务区块链平台通过所述发票作废接口反馈的发票作废结果。
此外,为实现上述目的,本申请还提供了一种基于区块链的发票管理系统,包括:
接口创建模块,用于创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
接口连接模块,用于采用所述开票接口与所述税务区块链平台建立连接;
数据验证模块,用于当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
接口调用模块,用于若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
信息接收模块,用于接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
此外,为实现上述目的,本申请还提供了一种基于区块链的发票管理方法设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的发票管理程序,所述发票管理程序被所述处理器执行时实现上述的基于区块链的发票管理方法的步骤。
此外,为实现上述目的,本申请还提供了一种存储介质,其上存储有发票管理程序,所述发票管理程序被处理器执行时实现上述的基于区块链的发票管理方法的步骤。
有益效果
本申请实施例中提供的一种基于区块链的发票管理方法、系统、设备及存储介质的技术方案,至少具有如下技术效果或优点:
由于采用了创建用于传输数据的标准化功能接口,标准化功能接口包括开票接口,采用开票接口与税务区块链平台建立连接,当接收到开票请求时,对开票请求中携带的开票数据进行真实性验证,若开票数据验证通过,则调用开票接口将开票数据传输至税务区块链平台,以使得税务区块链平台根据开票数据生成发票信息,接收并记录由税务区块链平台通过开票接口反馈的发票信息的技术方案,解决了企业用户通过第三方插件或控件开发票时过程繁琐、发票信息真伪难辨以及发票信息追溯困难的问题。本法发明利用区块链的特性保证了发票信息真实性和可信度,避免了发票信息被篡改,不仅减少了企业用户开票时的繁琐工作,提升了企业用户的工作效率,还减少了企业进行税务申报的时间。
附图说明
图1为本申请实施例方案涉及的硬件运行环境的结构示意图;
图2为本申请基于区块链的发票管理方法第一实施例的流程示意图;
图3为本申请基于区块链的发票管理方法第二实施例的流程示意图;
图4为本申请基于区块链的发票管理方法第三实施例的流程示意图;
图5为本申请基于区块链的发票管理方法第四实施例的流程示意图;
图6为本申请基于区块链的发票管理系统的功能模块图。
本发明的实施方式
为了更好的理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本申请提供一种发票管理设备。如图1所示,图1为本申请实施例方案涉及的硬件运行环境的结构示意图。
需要说明的是,图1即可为发票管理设备的硬件运行环境的结构示意图。
如图1所示,该发票管理设备可以包括:处理器1001,例如CPU,存储器1005,用户接口1003,网络接口1004,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
发票管理设备还可以包括RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。
本领域技术人员可以理解,图1中示出的发票管理设备结构并不构成对发票管理设备限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及发票管理程序。其中,操作系统是管理和控制发票管理设备硬件和软件资源的程序,发票管理程序以及其它软件或程序的运行。
在图1所示的发票管理设备中,用户接口1003主要用于连接终端,与终端进行数据通信;网络接口1004主要用于后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的发票管理程序。
在本实施例中,发票管理设备包括:存储器1005、处理器1001及存储在所述存储器上并可在所述处理器上运行的发票管理程序,其中:
处理器1001调用存储器1005中存储的发票管理程序时,执行以下操作:
创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
采用所述开票接口与税务区块链平台建立连接;
当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
处理器1001调用存储器1005中存储的发票管理程序时,还执行以下操作:
生成功能接口;
采用预设的加密方式对所述功能接口进行加密处理,得到所述标准化功能接口。
其中,所述预设的加密方式包括加密算法和/或加密的网络安全协议。
所述标准化功能接口还包括发票验证接口、发票查询接口以及发票作废接口。
处理器1001调用存储器1005中存储的发票管理程序时,还执行以下操作:
采用所述发票验证接口与所述税务区块链平台建立连接;
当接收到发票验证请求时,调用所述发票验证接口将所述发票验证请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票验证请求获取待验证的发票信息,并对所述待验证的发票信息进行验证;
接收由所述税务区块链平台通过所述发票验证接口反馈的发票验证结果。
处理器1001调用存储器1005中存储的发票管理程序时,还执行以下操作:
采用所述发票查询接口与所述税务区块链平台建立连接;
当接收到发票打印请求时,调用所述发票查询接口将所述发票打印请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票打印请求获取待打印的发票信息;
根据由所述税务区块链平台通过所述发票查询接口发送的待打印的发票信息生成电子发票,并打印所述电子发票。
处理器1001调用存储器1005中存储的发票管理程序时,还执行以下操作:
采用所述发票作废接口与所述税务区块链平台建立连接;
当接收到发票作废请求时,调用所述发票作废接口将所述发票作废请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票作废请求获取待销毁的发票信息,并对所述待销毁的发票信进行作废处理;
接收由所述税务区块链平台通过所述发票作废接口反馈的发票作废结果。
本申请实施例提供了基于区块链的发票管理方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,该基于区块链的发票管理方法可以应用于开发票、发票验证、发票打印以及发票作废,所述方法的执行主体可以是产业区块链平台,但也不局限此。产业区块链平台通过标准化功能接口与国家的税务区块链平台进行连接,从而实现开发票、发票验证、发票打印以及发票作废的操作。
如图2所示,在本申请的第一实施例中,本申请的基于区块链的发票管理方法,具体用于开发票,包括以下步骤:
步骤S210:创建用于传输数据的标准化功能接口。
标准化功能接口能够将产业区块链平台和税务区块链平台进行连接,用于在企业用户进行开发票、验证发票、打印发票以及作废发票时,将相应的数据通过标准化功能接口传输给税务区块链平台,以及由税务区块链平台将生成的发票信息、发票验证结果、待打印的发票信息以及发票作废结果传输给产业区块链平台。具体的,步骤S210包括以下步骤:
步骤a:生成功能接口。
创建用于传输数据的功能接口,该功能接口在进行数据传输时,安全性不高,进一步的需要对创建的功能接口进行标准化处理(也称为加密处理),以使得所述功能接口在进行数据传输时可以保证所传输的数据的安全性。
步骤b:采用预设的加密方式对所述功能接口进行加密处理,得到所述标准化功能接口。
功能接口创建完成后,采用预设的加密方式对功能接口进行标准化处理后,即得到标准化功能接口。其中,预设的加密方式包括加密算法和/或加密的网络安全协议;所述加密算法具有多种,如RSA加密算法、AES加密算法、RSA加密算法等;加密的网络安全协议如https协议。值得说明的是,标准化功能接口在进行数据传输时,所传输的数据均是加密后的数据,即密文。产业区块链平台和税务区块链平台分别接收到其中一方发送的数据后,需要使用双方共有的或双方匹配的密钥对接收到的数据进行解密。
在本实施例中,所述标准化功能接口包括开票接口,开票接口用于传输企业用户开票时的相关数据给税务区块链平台。
步骤S220:采用所述开票接口与税务区块链平台建立连接。
在本实施例中,标准化功能接口创建完成后,采用标准化功能接口中的开票接口将产业区块链平台和税务区块链平台的票据数据接口进行连接,以在企业用户通过产业区块链平台进行开票时,由开票接口发送开票数据给税务区块链平台。
步骤S230:当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证。
在本实施例中,产业区块链平台接收到企业用户发送的开票请求时,获取开票请求中携带的开票数据,开票数据包括有公司名称、税号、地址电话、开户行、账号等。然后,对开票数据的真实性进行验证,如果开票数据验证未通过,则返回验证未通过的提示信息,提醒企业用户对开票数据进行核对;如果开票数据验证通过,则返回验证通过的提示信息,并执行步骤S240。
步骤S240:若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息。
在本实施例中,如果企业用户的开票数据验证通过,产业区块链平台调用开票接口将开票数据以密文的形式发送给税务区块链平台,税务区块链平台对接收到的密文进行解密,得到开票数据,从而根据开票数据创建企业用户所要获得发票信息;然后,税务区块链平台同样通过开票接口将发票信息以密文的形式反馈给产业区块链平台。
步骤S250:接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
在本实施例中,产业区块链平台对税务区块链平台通过开票接口反馈的密文进行解密,得到发票信息,然后对发票信息进行记录,即企业用户完成发票的开票。
本实施例根据上述技术方案,由于采用了创建用于传输数据的标准化功能接口,标准化功能接口包括开票接口,采用开票接口与税务区块链平台建立连接,当接收到开票请求时,对开票请求中携带的开票数据进行真实性验证,若开票数据验证通过,则调用开票接口将开票数据传输至税务区块链平台,以使得税务区块链平台根据开票数据生成发票信息,接收并记录由税务区块链平台通过开票接口反馈的发票信息的技术手段,利用区块链的特性保证了发票信息真实性和可信度,避免了发票信息被篡改,不仅减少了企业用户开票时的繁琐工作,提升了企业用户的工作效率,还减少了企业进行税务申报的时间。
进一步的,所述标准化功能接口还包括发票验证接口、发票查询接口以及发票作废接口。其中,发票验证接口用于传输发票验证请求和发票验证结果;发票查询接口用于传输发票打印请求和待打印的发票信息;发票作废接口用于传输发票作废请求和发票作废结果。
如图3所示,在本申请的第二实施例中,本申请的基于区块链的发票管理方法,具体用于验证发票,包括以下步骤:
步骤S310:采用所述发票验证接口与所述税务区块链平台建立连接。
在本实施例中,采用标准化功能接口中的发票验证接口将产业区块链平台和税务区块链平台的票据验证接口进行连接,以在企业用户通过产业区块链平台进行发票真伪性验证时,由发票验证接口发送发票验证请求给税务区块链平台。
步骤S320:当接收到发票验证请求时,调用所述发票验证接口将所述发票验证请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票验证请求获取待验证的发票信息,并对所述待验证的发票信息进行验证。
在本实施例中,发票验证请求由企业用户发出,其携带有企业用户所要进行真伪性验证的发票信息。产业区块链平台接收到发票验证请求时,产业区块链平台调用发票验证接口将发票验证请求以密文的形式发送给税务区块链平台,税务区块链平台对接收到的密文进行解密,得到发票验证请求,从而根据发票验证请求获取发票信息,并对发票信息进行真伪性验证,进而生成发票验证结果。然后,税务区块链平台通过发票验证接口将发票验证结果以密文的形式反馈给产业区块链平台。
步骤S330:接收由所述税务区块链平台通过所述发票验证接口反馈的发票验证结果。
在本实施例中,产业区块链平台对税务区块链平台通过发票验证接口反馈的密文进行解密,得到发票验证结果,企业用户通过发票验证结果可以确定出发票信息的真伪性。
本实施例根据上述技术方案,由于采用了采用发票验证接口与税务区块链平台建立连接,当接收到发票验证请求时,调用发票验证接口将发票验证请求传输至税务区块链平台,以使得税务区块链平台根据发票验证请求获取待验证的发票信息,并对待验证的发票信息进行验证,接收由税务区块链平台通过发票验证接口反馈的发票验证结果的技术手段,提高了发票验证环节的执行效率。
如图4所示,在本申请的第三实施例中,本申请的基于区块链的发票管理方法,具体用于发票打印,包括以下步骤:
步骤S410:采用所述发票查询接口与所述税务区块链平台建立连接。
在本实施例中,采用标准化功能接口中的发票查询接口将产业区块链平台和税务区块链平台的票据查询接口进行连接,以在企业用户通过产业区块链平台进行电子发票打印时,由发票查询接口发送发票打印请求给税务区块链平台。
步骤S420:当接收到发票打印请求时,调用所述发票查询接口将所述发票打印请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票打印请求获取待打印的发票信息。
在本实施例中,发票打印请求由企业用户发出,其携带有发票查询信息。产业区块链平台接收到发票打印请求时,产业区块链平台调用发票查询接口将发票打印请求以密文的形式发送给税务区块链平台,税务区块链平台对接收到的密文进行解密,得到发票打印请求。进一步的,税务区块链平台将发票查询信息作为查询条件,从数据库中获取与发票查询信息匹配的待打印的发票信息;然后,税务区块链平台通过发票查询接口将待打印的发票信息以密文的形式反馈给产业区块链平台。
步骤S430:根据由所述税务区块链平台通过所述发票查询接口发送的待打印的发票信息生成电子发票,并打印所述电子发票。
在本实施例中,产业区块链平台对税务区块链平台通过发票查询接口反馈的密文进行解密,得到待打印的发票信息,然后将待打印的发票信息生成电子发票,并打印生成的电子发票。
本实施例根据上述技术方案,由于采用了采用发票查询接口与税务区块链平台建立连接,当接收到发票打印请求时,调用发票查询接口将发票打印请求传输至税务区块链平台,以使得税务区块链平台根据发票打印请求获取待打印的发票信息,根据由税务区块链平台通过发票查询接口发送的待打印的发票信息生成电子发票,并打印电子发票的技术手段,实现了电子发票的快速生成和打印。
如图5所示,在本申请的第四实施例中,本申请的基于区块链的发票管理方法,具体用于作废发票,包括以下步骤:
步骤S510:采用所述发票作废接口与所述税务区块链平台建立连接。
在本实施例中,采用标准化功能接口中的发票作废接口将产业区块链平台和税务区块链平台的票据作废接口进行连接,以在企业用户通过产业区块链平台进行发票信息销毁时,由发票作废接口发送发票作废请求给税务区块链平台。
步骤S520:当接收到发票作废请求时,调用所述发票作废接口将所述发票作废请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票作废请求获取待销毁的发票信息,并对所述待销毁的发票信进行作废处理。
在本实施例中,发票作废请求由企业用户发出,其携带有企业用户所要销毁的发票信息。产业区块链平台接收到发票作废请求时,调用发票作废接口将发票作废请求以密文的形式发送给税务区块链平台,税务区块链平台对接收到的密文进行解密,得到发票作废请求,从而根据发票作废请求获取企业用户所要销毁的发票信息。然后进一步获取与所要销毁的发票信息相同的目标发票信息,并对目标发票信息进行作废处理,生成发票作废结果,进而通过发票作废接口将发票作废结果以密文的形式反馈给产业区块链平台。
步骤S530:接收由所述税务区块链平台通过所述发票作废接口反馈的发票作废结果。
在本实施例中,产业区块链平台对税务区块链平台通过发票作废接口反馈的密文进行解密,得到发票作废结果,企业用户通过发票作废结果可以确定所要销毁的发票信息将不再存在。
本实施例根据上述技术方案,由于采用了采用发票作废接口与税务区块链平台建立连接,当接收到发票作废请求时,调用发票作废接口将发票作废请求传输至税务区块链平台,以使得税务区块链平台根据发票作废请求获取待销毁的发票信息,并对待销毁的发票信进行作废处理,接收由税务区块链平台通过发票作废接口反馈的发票作废结果的技术手段,保证了发票作废环节工作的及时性。
如图6所示,本申请提供的一种基于区块链的发票管理系统,包括:
接口创建模块610,用于创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
接口连接模块620,用于采用所述开票接口与所述税务区块链平台建立连接;
数据验证模块630,用于当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
接口调用模块640,用于若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
信息接收模块650,用于接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
进一步的,所述接口创建模块610包括:
接口创建单元,用于生成功能接口;
接口加密单元,用于采用预设的加密方式对所述功能接口进行加密处理,得到所述标准化功能接口。
进一步的,所述预设的加密方式包括加密算法和/或加密的网络安全协议。
进一步的,所述标准化功能接口还包括发票验证接口、发票查询接口以及发票作废接口。
进一步的,所述接口连接模块620,还用于采用所述发票验证接口与所述税务区块链平台建立连接;
所述接口调用模块640,还用于当接收到发票验证请求时,调用所述发票验证接口将所述发票验证请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票验证请求获取待验证的发票信息,并对所述待验证的发票信息进行验证;
所述信息接收模块650,还用于接收由所述税务区块链平台通过所述发票验证接口反馈的发票验证结果。
进一步的,所述接口连接模块620,还用于采用所述发票查询接口与所述税务区块链平台建立连接;
所述接口调用模块640,还用于当接收到发票打印请求时,调用所述发票查询接口将所述发票打印请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票打印请求获取待打印的发票信息;
所述信息接收模块650,还用于根据由所述税务区块链平台通过所述发票查询接口发送的待打印的发票信息生成电子发票,并打印所述电子发票。
进一步的,所述接口连接模块620,还用于采用所述发票作废接口与所述税务区块链平台建立连接;
所述接口调用模块640,还用于当接收到发票作废请求时,调用所述发票作废接口将所述发票作废请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票作废请求获取待销毁的发票信息,并对所述待销毁的发票信进行作废处理;
所述信息接收模块650,还用于接收由所述税务区块链平台通过所述发票作废接口反馈的发票作废结果。
本申请基于区块链的发票管理系统具体实施方式与上述基于区块链的发票管理方法各实施例基本相同,在此不再赘述。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (10)

  1. 一种基于区块链的发票管理方法,其中,所述发票管理方法,包括:
    创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
    采用所述开票接口与税务区块链平台建立连接;
    当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
    若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
    接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
  2. 如权利要求1所述的方法,其中,所述创建用于传输数据的标准化功能接口,包括:
    生成功能接口;
    采用预设的加密方式对所述功能接口进行加密处理,得到所述标准化功能接口。
  3. 如权利要求2所述的方法,其中,所述预设的加密方式包括加密算法和/或加密的网络安全协议。
  4. 如权利要求1或2所述的方法,其中,所述标准化功能接口还包括发票验证接口、发票查询接口以及发票作废接口。
  5. 如权利要求4所述的方法,其中,所述发票管理方法,还包括:
    采用所述发票验证接口与所述税务区块链平台建立连接;
    当接收到发票验证请求时,调用所述发票验证接口将所述发票验证请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票验证请求获取待验证的发票信息,并对所述待验证的发票信息进行验证;
    接收由所述税务区块链平台通过所述发票验证接口反馈的发票验证结果。
  6. 如权利要求4所述的方法,其中,所述发票管理方法,还包括:
    采用所述发票查询接口与所述税务区块链平台建立连接;
    当接收到发票打印请求时,调用所述发票查询接口将所述发票打印请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票打印请求获取待打印的发票信息;
    根据由所述税务区块链平台通过所述发票查询接口发送的待打印的发票信息生成电子发票,并打印所述电子发票。
  7. 如权利要求4所述的方法,其中,所述发票管理方法,还包括:
    采用所述发票作废接口与所述税务区块链平台建立连接;
    当接收到发票作废请求时,调用所述发票作废接口将所述发票作废请求传输至所述税务区块链平台,以使得所述税务区块链平台根据所述发票作废请求获取待销毁的发票信息,并对所述待销毁的发票信进行作废处理;
    接收由所述税务区块链平台通过所述发票作废接口反馈的发票作废结果。
  8. 一种基于区块链的发票管理系统,其中,包括:
    接口创建模块,用于创建用于传输数据的标准化功能接口;所述标准化功能接口包括开票接口;
    接口连接模块,用于采用所述开票接口与所述税务区块链平台建立连接;
    数据验证模块,用于当接收到开票请求时,对所述开票请求中携带的开票数据进行真实性验证;
    接口调用模块,用于若所述开票数据验证通过,则调用所述开票接口将所述开票数据传输至税务区块链平台,以使得所述税务区块链平台根据所述开票数据生成发票信息;
    信息接收模块,用于接收并记录由所述税务区块链平台通过所述开票接口反馈的所述发票信息。
  9. 一种发票管理设备,其中,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的发票管理程序,所述发票管理程序被所述处理器执行时实现如权利要求1-7中任一项所述的基于区块链的发票管理方法的步骤。
  10. 一种存储介质,其中,其上存储有发票管理程序,所述发票管理程序被处理器执行时实现权利要求1-7中任一项所述的基于区块链的发票管理方法的步骤。
PCT/CN2020/141545 2020-12-04 2020-12-30 基于区块链的发票管理方法、系统、设备及存储介质 WO2022116350A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011416353.1 2020-12-04
CN202011416353.1A CN112529642B (zh) 2020-12-04 2020-12-04 基于区块链的发票管理方法、系统、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022116350A1 true WO2022116350A1 (zh) 2022-06-09

Family

ID=74997847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141545 WO2022116350A1 (zh) 2020-12-04 2020-12-30 基于区块链的发票管理方法、系统、设备及存储介质

Country Status (2)

Country Link
CN (1) CN112529642B (zh)
WO (1) WO2022116350A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113469758B (zh) * 2021-06-11 2024-03-22 深圳前海星际同辉科技有限公司 区块链与税务系统的开票方法、装置、设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089209A1 (en) * 2007-09-28 2009-04-02 The Western Union Company Methods and systems for generating invoices
CN110738471A (zh) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 一种基于区块链网络的票据管理方法及相关设备
CN110852816A (zh) * 2019-11-13 2020-02-28 深圳前海星际同辉科技有限公司 基于区块链的自动开具发票方法、终端设备及存储介质
CN111967923A (zh) * 2020-07-28 2020-11-20 厉风英 一种基于区块链技术的电子发票管理系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089209A1 (en) * 2007-09-28 2009-04-02 The Western Union Company Methods and systems for generating invoices
CN110738471A (zh) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 一种基于区块链网络的票据管理方法及相关设备
CN110852816A (zh) * 2019-11-13 2020-02-28 深圳前海星际同辉科技有限公司 基于区块链的自动开具发票方法、终端设备及存储介质
CN111967923A (zh) * 2020-07-28 2020-11-20 厉风英 一种基于区块链技术的电子发票管理系统

Also Published As

Publication number Publication date
CN112529642A (zh) 2021-03-19
CN112529642B (zh) 2024-03-22

Similar Documents

Publication Publication Date Title
US10715334B2 (en) Methods and apparatus for validating a digital signature
US11138608B2 (en) Authorizing multiparty blockchain transactions via one-time passwords
CN110601816B (zh) 一种区块链系统中轻量级节点控制方法及装置
CN108933667B (zh) 一种基于区块链的公钥证书的管理方法及管理系统
US7434252B2 (en) Role-based authorization of network services using diversified security tokens
CN112005236A (zh) 区块链网络上的文档访问
CN111292041B (zh) 一种电子合同生成方法、装置、设备及存储介质
CN108256340B (zh) 数据采集方法、装置、终端设备及存储介质
WO2021082340A1 (zh) 数据处理方法、装置、系统和存储介质
US20210067344A1 (en) Cryptographically securing data files in a collaborative environment
US20050235150A1 (en) Bi-directionally verifying measurable aspects associated with modules, pre-computing solutions to configuration challenges, and using configuration challenges along with other authentication mechanisms
CN110189184B (zh) 一种电子发票存储方法和装置
CN107528877B (zh) 基于区块链结构的安全性电子文件处理系统及方法
US20230273979A1 (en) Cryptographically managing license compatibility
CN113422686B (zh) 网关层鉴权方法、系统、电子设备及存储介质
KR20200085095A (ko) 블록체인 기반으로 데이터를 관리하는 전자 장치 및 데이터 관리 방법
CN111429191A (zh) 基于区块链的电子发票流转管理方法、装置及系统
WO2022151888A1 (zh) 数据共享方法及装置
WO2022088710A1 (zh) 一种镜像管理方法及装置
KR20210103615A (ko) 블록체인 기반 사용자 인증 방법
WO2022116350A1 (zh) 基于区块链的发票管理方法、系统、设备及存储介质
CN114329538A (zh) 一种单点登录方法及装置
CN114143306A (zh) 基于区块链的投标文件的传递方法及传递装置
US20100030805A1 (en) Propagating information from a trust chain processing
US10853898B1 (en) Method and apparatus for controlled messages

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20964195

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.09.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20964195

Country of ref document: EP

Kind code of ref document: A1