IP Library › Granted Patent US 11,386,426
Granted Patent B2
US 11,386,426 · App. 17/159,062 · Granted Jul 12, 2022

Invoice invalidation method and apparatus based on blockchain, and electronic device

Inventors: Hansong Xiao (Zhejiang, CN); Dongxu Li (Zhejiang, CN); Wenhu Kan (Zhejiang, CN); Ping Zhang (Zhejiang, CN); Zhen Sun (Zhejiang, CN); Jinming Duan (Zhejiang, CN); Liangrong Lin (Zhejiang, CN); Wei Chen (Zhejiang, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06Q20/389H04L9/0618H04L9/0643H04L2209/38H04L2209/56
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,386,426
App. No.
17/159,062
Granted
Jul 12, 2022
Kind
B2
Abstract

One or more implementations of the present specification provide an invoice invalidation method and apparatus based on a blockchain, and an electronic device. The method includes: receiving an invalidation request that is initiated by an invoice invalidation party for a target invoice recorded in the blockchain; in response to the invalidation request, determining whether the invoice invalidation party has authority to invalidate the target invoice; and in response to that the invoice invalidation party has the authority to invalidate the target invoice, invoking an invoice invalidation logic provided in a smart contract deployed in a blockchain network of the blockchain to invalidate the target invoice.

Claims (76)

1. An invoice invalidation method based on a blockchain, comprising:

receiving an invalidation request that is initiated by an invoice invalidation party for a target invoice recorded in the blockchain;

in response to the invalidation request, determining whether the invoice invalidation party has authority to invalidate the target invoice; and

in response to that the invoice invalidation party has the authority to invalidate the target invoice, invoking an invoice invalidation logic provided in a smart contract deployed in a blockchain network of the blockchain to invalidate the target invoice by updating a state of the target invoice from a valid state to an invalid state via a state identifier that is set for the target invoice.

2. The method according to claim 1 , wherein:

the smart contract further provides an authority verification logic for the invoice invalidation party; and

the determining whether the invoice invalidation party has authority to invalidate the target invoice includes:

invoking the authority verification logic provided in the smart contract to determine whether the invoice invalidation party has authority to invalidate the target invoice.

3. The method according to claim 1 , wherein:

the invalidation request includes a user identifier of the invoice invalidation party; and

the determining whether the invoice invalidation party has authority to invalidate the target invoice includes:

determining, based on the user identifier, whether the invoice invalidation party is an issuer of the target invoice or a trusted third party; and

in response to that the invoice invalidation party is an issuer of the target invoice or a trusted third party, determining that the invoice invalidation party has the authority to invalidate the target invoice.

4. The method according to claim 1 , wherein:

the invalidation request includes an invoice identifier of the target invoice; and

the method further includes:

determining, based on the invoice identifier, whether an invoice corresponding to the invoice identifier is stored in the blockchain; and

in response to that the invoice corresponding to the invoice identifier is stored in the blockchain, determining the invoice as the target invoice.

5. The method according to claim 4 , wherein the invoice identifier includes:

a hash value obtained through hash calculation based on an invoice content; or

a hash value obtained through hash calculation based on a piece of uniqueness information in the invoice content.

6. An invoice invalidation method based on a blockchain, comprising:

obtaining a transaction that has been recorded in the blockchain;

determining whether the transaction is a refund transaction corresponding to a payment transaction that has been recorded in the blockchain; and

in response to the transaction is a refund transaction corresponding to the payment transaction, invoking an invoice invalidation logic provided in a smart contract deployed in a blockchain network of the blockchain to invalidate a target invoice that is related to the payment transaction and recorded in the blockchain by updating a state of the target invoice from a valid state to an invalid state via a state identifier that is set for the target invoice.

7. The method according to claim 6 , wherein:

the smart contract further provides a transaction matching logic; and

the determining whether the transaction is a refund transaction corresponding to the payment transaction that has been recorded in the blockchain includes:

invoking the transaction matching logic provided in the smart contract to determine whether the transaction matches the payment transaction that has been recorded in the blockchain.

8. The method according to claim 6 , comprising:

determining, based on an invoice identifier corresponding to the payment transaction, whether an invoice corresponding to the invoice identifier is stored in the blockchain; and

in response to that the invoice corresponding to the invoice identifier is stored in the blockchain, determining the invoice as the target invoice.

9. The method according to claim 8 , wherein the invoice identifier includes:

a hash value obtained through hash calculation based on an invoice content; or

a hash value obtained through hash calculation based on a piece of uniqueness information in the invoice content.

10. An electronic device, comprising:

a processor; and

a memory storing machine-executable instructions,

wherein by reading and executing the machine-executable instructions stored in the memory and corresponding to control logic for invoice invalidation based on a blockchain, the processor is enabled to perform acts including:

receiving an invalidation request that is initiated by an invoice invalidation party for a target invoice recorded in the blockchain;

in response to the invalidation request, determining whether the invoice invalidation party has authority to invalidate the target invoice; and

in response to that the invoice invalidation party has the authority to invalidate the target invoice, invoking an invoice invalidation logic provided in a smart contract deployed in a blockchain network of the blockchain to invalidate the target invoice by updating a state of the target invoice from a valid state to an invalid state via a state identifier that is set for the target invoice.

11. The electronic device according to claim 10 , wherein:

the smart contract further provides an authority verification logic for the invoice invalidation party; and

the determining whether the invoice invalidation party has authority to invalidate the target invoice includes:

invoking the authority verification logic provided in the smart contract to determine whether the invoice invalidation party has authority to invalidate the target invoice.

12. The electronic device according to claim 10 , wherein:

the invalidation request includes a user identifier of the invoice invalidation party; and

the determining whether the invoice invalidation party has authority to invalidate the target invoice includes:

determining, based on the user identifier, whether the invoice invalidation party is an issuer of the target invoice or a trusted third party; and

in response to that the invoice invalidation party is an issuer of the target invoice or a trusted third party, determining that the invoice invalidation party has the authority to invalidate the target invoice.

13. The electronic device according to claim 10 , wherein:

the invalidation request includes an invoice identifier of the target invoice; and

the acts further include:

determining, based on the invoice identifier, whether an invoice corresponding to the invoice identifier is stored in the blockchain; and

in response to that the invoice corresponding to the invoice identifier is stored in the blockchain, determining the invoice as the target invoice.

14. The electronic device according to claim 13 , wherein the invoice identifier includes:

a hash value obtained through hash calculation based on an invoice content; or

a hash value obtained through hash calculation based on a piece of uniqueness information in the invoice content.

15. An electronic device, comprising:

a processor; and

a memory storing machine-executable instructions,

wherein by reading and executing the machine-executable instructions stored in the memory and corresponding to control logic for invoice invalidation based on a blockchain, the processor is enabled to perform acts including:

obtaining a transaction that has been recorded in the blockchain;

determining whether the transaction is a refund transaction corresponding to a payment transaction that has been recorded in the blockchain; and

in response to the transaction is a refund transaction corresponding to the payment transaction, invoking an invoice invalidation logic provided in a smart contract deployed in a blockchain network of the blockchain to invalidate a target invoice that is related to the payment transaction and recorded in the blockchain by updating a state of the target invoice from a valid state to an invalid state via a state identifier that is set for the target invoice.

16. The electronic device according to claim 15 , wherein:

the smart contract further provides a transaction matching logic; and

the determining whether the transaction is a refund transaction corresponding to the payment transaction that has been recorded in the blockchain includes:

invoking the transaction matching logic provided in the smart contract to determine whether the transaction matches the payment transaction that has been recorded in the blockchain.

17. The electronic device according to claim 15 , wherein the acts include:

determining, based on an invoice identifier corresponding to the payment transaction, whether an invoice corresponding to the invoice identifier is stored in the blockchain; and

in response to that the invoice corresponding to the invoice identifier is stored in the blockchain, determining the invoice as the target invoice.

18. The electronic device according to claim 17 , wherein the invoice identifier includes:

a hash value obtained through hash calculation based on an invoice content; or

a hash value obtained through hash calculation based on a piece of uniqueness information in the invoice content.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 10, 2021
From: XIAO, HANSONG; LI, DONGXU; KAN, WENHU; ZHANG, PING; SUN, ZHEN; DUAN, JINMING; LIN, LIANGRONG; CHEN, WEI
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 057133/0079 →
Priority Claims (1)
CN 201811607413.0 · Dec 27, 2018 · national
Continuity (2)
Continuation PCTCN2019115846 · Nov 6, 2019
Related Publication 20210150517A1 · May 20, 2021