Professional Documents
Culture Documents
APFFB Cohort 7 Group 1 Capstone Project - Integrated Blockchain For E-Invoice TReDS and GST For B2B Transactions
APFFB Cohort 7 Group 1 Capstone Project - Integrated Blockchain For E-Invoice TReDS and GST For B2B Transactions
Blockchain for E-
Invoice, TReDS and
GST for B2B
transactions
Anand Thareja
Livya Maria Wilson
Nasser Khan Ghazi
Priyesh Mummidi
Roja Naidu
Siddhesh Prakash Kadam
20 April 2023
Table of Contents
1. Executive Summary ..................................................................................................................... 2
2. Problem Statement....................................................................................................................... 3
1|PAGE
1. Executive Summary
In recent times, with the dramatic economic growth India, the volumes of B2B invoices
have skyrocketed. The Government’s emphasis on ‘make in India’ has spurred local
in our country.
The Indian government has always been supportive and has nurtured the MSME
stages of business and through various subsidized finance schemes. This has led to a
Also post liberalization there was a flock of foreign banks seen entering the Indian
banking space, however these banks still remain servicing the metros. As a result,
they lack lending to MSME which the Indian Central Bank RBI classifies as priority
sector lending. As a result, such Banks have to purchase priority sector lending
The government brought in a landmark reform in 2017 to replace various indirect taxes
in the system with one uniform taxation system called the Goods and Services tax.
With the advent of time separate systems of recording and computing the invoices and
taxes were developed, however these systems never spoke to each other and the
2|PAGE
The unification of the E-invoicing, Trade Receivables electronic Discounting System
(TReDS) and Goods and Services Tax Network (GSTN) is a task of orchestrating the
Through our study we have identified the key pain points in the existing system and
have designed a process based on the Blockchain technology which would carry out
the herculean task of orchestrating the process of Invoice registration, easy financing
2. Problem Statement
The management and settlement of B2B invoices, its financing and subsequently
Duplicate invoices.
Delay in settlement.
3|PAGE
No historical payment data.
The process of capturing Invoice in an electronic form was made mandatory to entities
above a threshold of volume from 1st April 2023 The process involves the seller
uploading an invoice file which is the output file of his ERP software which is preferred
to be in a JSONS format. This file is then uploaded to the IRP Invoice Recognition
Portal. The IRP system checks with the GSTN system for de-duplication and
generates an Invoice Recognition Number IRN which is unique along with a QR code
attached to the invoice which has information about the Seller, Buyer, Invoice date,
This JSON file along with QR code and IRN is received by the Seller, which she
further uses for sending it to the buyer, financing it on TReDS, Tax and Audit
purposes.
The TReDS is offered on three platforms which are built on blockchain. A TReDS, M1
Exchange and RXIL all three are owned by Private banks or jointly with Stock
Exchanges.
4|PAGE
The Seller has access to affordable finances from Banks and NBFC’s who participate
on these platforms to purchase Bills without collateral and without recourse on the
seller.
Every time the Seller intends to get his bills discounted he has to separately login to
Based on the credit worthiness of the buyer which is determined by credit rating
agencies. Each bank arrives at financing rates thereby creating a price ladder. From
Once the seller appoints the discounting bank the title to the invoice gets transferred
as per the agreement signed at inception which covers this clause. The Financier
credits the discounted value of the invoice to the seller on T+1. On maturity the Buyer
The system also offers financing at the buyers request in the form of reverse factoring
wherein the Buyer accepts the bids and the seller gets the money. On maturity the
The current GSTN process allows sellers to file their monthly sales statement
(GSTR1) to arrive at the tax liability and then make the tax payment on the due date.
Also, the buyers who have already settled their invoices or are going to settle the
invoices on the agreed due date can file a claim for tax.
5|PAGE
On the GSTN system the process like registration, payment and returns along with
Refund processing is all done online. The advent of this system has freed up tax
The Government's effort in unifying the identity, payments, e docs and user consent in
the form of India Stack has achieved great success. We believe that integrating or
We propose to build a unified, integrated and frictionless system which will unify the
invoice management process, discounting (TReDS) and GST filing and management.
The proposed solution is built on Open source blockchain network called the
‘Hyperledger’
Owing to the properties of the network which suits well with the consensus mechanism
We propose the E-invoice Consortium Blockchain (ECB) and applications that will
interact with the Native systems. The ECB ensures that the information is available to
all the relevant stakeholders in a secure, immutable, trusted, traceable and verifiable
manner.
The unification of all the three processes will streamline the processes in terms of
6|PAGE
5. Our Proposed E-Invoice Module
The Seller uses his ERP system to generate the invoice at his end in a standardized
format as prescribed by the GST office. The output file of this ERP is a JSONs format
file uploaded by the user through his web-based application on the ECB.
The smart contract on the ECB will direct the invoice outbound to the IRP system
which in turn speaks with the GSTN system which checks for duplication. Once it is
approved by the GSTN the IRP generates the Invoice Recognition Number (IRN),
adds digital signature of the IRP and adds a QR code to the Invoice payload. The QR
code contains information pertaining to the Buyer, Seller, Invoice amount, date,
A Smart contract notifies the buyer and seller about the Updated Invoice with IRN and
QR code.
Buyers accept the notified invoice on the ECB which is notified to the Seller through a
smart contract. Buyers and sellers can view their individual invoices any time through
7|PAGE
Fig 1. Explains the E-Invoice Module of the ECB
The TReDS module gets its feeds from the E Invoice module wherein the buyer accepts
the E-invoice and it is notified to the seller. At times the Buyer pays the invoice
The buyer then updated the chain with the payment reference number manually.
In case of the buyer accepting the usance bill. A similar notification is sent to the
financiers through a smart contract which checks if the invoice is accepted or not.
8|PAGE
Upon receiving notification of acceptance, the financiers on the basis of their prudence
and credit worthiness of the buyer provide their quotes for discounting the invoice.
The chain has a provision wherein every time the buyer makes payment either to the
seller or to the financier on the due date. Updates the chain with the relevant payment
reference no. This allows financiers on the chain to extract payment data of the buyer,
which brings out the payment pattern of the buyer in terms of aging. This data is crucial
in pricing the invoice discounting. Buyers with larger ageing will attract a risk premium
in the pricing.
The seller can, through his web-based application see quotes from various financiers
for a particular invoice. The seller then makes a choice and selects a quote. A smart
contract notifies the financier that his quote has been accepted. A smart contract then
transfers the ownership of the invoice from the seller to the buyer on the blockchain
9|PAGE
The Buyer then settles the invoice with the financier on due date and updates the
The GST Chain module on ECB: The approach that we have taken to tackle the GST
part is hybrid; the chain often talks with the native GST network because our application
at present covers only the B2B space. With there being a lot for the GST apart from the
B2B, the off chain GSTN should run parallel. All the activities pertaining to the GST
ecosystem are computed and settled on the GSTN with a copy of the transaction being
posted to the GST chain module. Activities such as registration, self-assessment, audit,
tax liability, Returns and Refunds take place on the GSTN and are notified on the GST
chain. The computation of tax liability becomes easier as the invoice is registered on the
GSTN as well as the GST chain so the tax liability is easily ascertained on the GSTN
10 | P A G E
Fig 3. GST Chain Module
platform hosted by the Linux foundation and is designed for enterprise use cases
11 | P A G E
Fabric brings numerous advantages to the table and is almost tailor-made for this
application that spans multiple domains and required integration with existing
enterprise systems and requires for stronger privacy and control of members – this is
1. Endorsement
2. Ordering
3. Validation
12 | P A G E
Fig 5. Hyperledger Fabric Transaction Flow
1. A Client initiates a transaction proposal, signs the proposal with its certificate
2. Each Endorsing Peer verifies User’s identity and authorization from the
proposal payload. After this has been validated, the Endorsing Peer simulates
together with a read-write set and endorses the generated response using its
certificate.
13 | P A G E
3. The Client consolidates and then checks the endorsed proposal responses
4. The Client then sends the transaction attached with the endorsed proposal
5. The Orderer orders the received transactions, generates a new block of ordered
6. The Orderer then broadcasts the generated block to all Peers (to
certifications and version issues and the update each of their ledgers with the
service.
1. Modular Architecture
Blockchains do not usually come with plugin components and developers therefore
14 | P A G E
Most businesses, and especially ones dealing with financial transactions would be
unwilling to expose all their critical information on a public blockchain. Fabric which
Fabric provides a Membership Service that governs user registrations and certificates
to ensure authentication and identity integrity. Fabric provides tools such as cryptogen
public blockchains, Fabric is highly scalable and provides for fast transactions.
Businesses and especially Financial Institutions cannot rely solely on the encryption
processes for both near and long-term security of their data. Fabric provides ‘channels’
that provide for secure exchange of data which is isolated from other data and limited
to authorized parties.
Fabric stores key-value pairs with each transaction. These are stored into a database
digital keys.
15 | P A G E
7. Strong Community Support
important consideration.
The E-invoice module of the chain enables storing registered invoices on the chain for
all future references. This invoice can be shared with the chain participants to carry out
various financing functions apart from the receivables discounting to the GST
functions. The same can also be downloaded from the chain for further submission to
Since the Government is a part of the chain most of the government agencies can be
dealt with using the chain reference instead of taking paper records.
The TReDS module enables buyers and sellers to see real time quotes for their
invoices from the financiers even if they wish or do not wish to discount the invoice.
This implies that the service is ready to be delivered, no need to separately plan and
apply for it. This solves for the working capital GAP which is the major concern for the
MSEME’s.
As more businesses realize the benefits of discounting on chain it will induce cross
side network effects and will bring more banks to aggressively compete against each
16 | P A G E
Banks can also use invoices or sales data available on the chain to offer existing as
well customized structured products to the client without the client even applying for it.
The GST chain enables the seller and buyers to find all their invoices on the chain.
The chain also enables the client to better understand his running tax liabilities and
The chain ensures that everybody has the same data thus preventing disputes in
The proposed solution is a one stop shop for all the participants of the chain. This will
All the above benefits are over and above the benefits of doing business on the
17 | P A G E