E-invoicing in India (IRN) and e-way bills
GST e-invoices registered on the Invoice Registration Portal (IRN, acknowledgement and signed QR on the invoice), HSN and SAC codes, the checks before posting, the direct IRP connection, cancelling an IRN within 24 hours, e-way bills (also for stock transfers), and TDS sections on supplier bills.
What it is
Businesses with an annual turnover above ₹5 crore must register every B2B invoice, credit note and debit note, and every export invoice, on the government's Invoice Registration Portal (IRP) before giving it to the customer. The IRP checks the invoice JSON and returns an IRN (invoice reference number), an acknowledgement number and date, and a QR code signed by the IRP. An invoice without an IRN is not a valid tax invoice. Above ₹10 crore turnover, invoices must reach the IRP within 30 days of the invoice date. Sales to unregistered buyers (B2C) need no IRN; they go to GSTR-1 only. Thresholds change: confirm yours with your adviser.
What OmniBooks does
- Every posted sales invoice, credit note and debit note to a buyer with a GSTIN, and every invoice to a buyer outside India, gets its e-invoice in NIC's JSON format (schema version 1.1), built from the posted document.
- The E-invoice panel on the document shows OmniBooks' checks before the IRP's own: the company's and customer's GSTIN (format, state code and check character), PIN codes, the HSN or SAC code on every line, and whether the tax heads fit the place of supply (CGST + SGST within your state, IGST across states, no CGST/SGST on exports). Each problem has a link to fix it.
- The JSON is checked against NIC's schema v1.1 and the IRP's main arithmetic rules. Download JSON gives the file (for the IRP's bulk upload or an offline tool).
- With strict e-invoicing on (Settings → Company), a B2B invoice that fails these checks cannot be posted. B2C sales post as usual.
What each document becomes:
| Document | IRP document type | Supply type |
|---|---|---|
| Invoice to a registered buyer | INV | B2B |
| Credit note / debit note against an invoice | CRN / DBN, naming the invoice | B2B |
| Invoice to a buyer abroad with IGST | INV | Export with payment (EXPWP) |
| Invoice to a buyer abroad under a LUT (tax code Export — zero-rated) | INV | Export without payment (EXPWOP) |
The state of a party comes from its GSTIN; for an unregistered party, type the state in the address's state/district field (for example Gujarat or 24). The place of supply is the delivery address's state when goods go elsewhere in India, else the buyer's.
HSN and SAC codes
Sales lines of an Indian company have Goods / services and an HSN code (goods: 4, 6 or 8 digits; 6 digits above ₹5 crore turnover) or SAC code (services: 6 digits starting 99). Set the code once on the item (Inventory → item → HSN code) and it is copied to invoice lines; you can change it on a line. The codes also feed the e-way bill and GSTR-1's HSN summary.
Registering invoices on the IRP
OmniBooks connects directly to NIC's IRP through its e-invoice API for taxpayers.
- On the e-invoice portal, register for API access (direct integration). You receive a client ID and client secret; create an API user name and password; download the IRP's public key (sandbox and production have different keys).
- Open Settings → Tax connections, choose NIC Invoice Registration Portal, pick Sandbox or Production, enter the GSTIN, client ID and secret, API user and password, and paste the public key. Test connection signs in without sending an invoice. Secrets are never shown again after saving.
- From then on each posted B2B invoice, credit note, debit note and export is sent in the background. The panel says Waiting for clearance until the IRP answers; then it shows the IRN and acknowledgement, and the printed invoice carries the IRN, acknowledgement number and date, and the signed QR code. Until the IRN arrives, OmniBooks does not email the invoice to the customer.
- If the IRP refuses an invoice, its error codes are shown. The invoice stays in the books: fix the cause and issue a credit note and a new invoice.
Honest status: this connection follows NIC's published API (the AppKey and session key encryption, Generate IRN, Get IRN, Cancel IRN, e-way bill by IRN) but has been tested only against a simulation of the IRP, because no sandbox credentials were available when it was built. Try it in the sandbox with your own API credentials before switching to production. For production NIC gives you the API host when it approves access; if it differs from the default, enter it in API host.
Cancelling an IRN
The IRP lets you cancel an IRN within 24 hours of registration, and only in full. On the invoice's e-invoice panel, Cancel IRN asks for the reason (duplicate, data entry mistake, order cancelled, other) and a remark, cancels the IRN at the IRP and then voids the invoice in OmniBooks, because an invoice whose IRN is cancelled is no longer a valid tax invoice. The same number cannot be registered again: raise a new invoice if the sale still stands.
- If the invoice cannot be voided (a payment is applied, or its period is closed), the IRN stays cancelled and the message tells you; remove the payment or issue a credit note.
- After 24 hours an IRN cannot be cancelled: issue a credit note instead.
- An invoice with an active IRN cannot be voided until its IRN is cancelled.
E-way bills
Goods worth more than ₹50,000 moved by road, rail, air or ship need an e-way bill: Part A from the invoice, Part B with the vehicle or transport document.
- With the IRP connection: on a registered invoice, E-way bill asks for the distance, mode and the vehicle number (or the transporter's ID) and generates the e-way bill by IRN through the IRP. Its number and validity show on the panel and the e-way bill number prints on the invoice.
- Without it, or for invoices to unregistered buyers (no IRN): E-way bill JSON on the E-way bill card of every posted sales invoice downloads Part A in NIC's bulk-upload format for Generate bulk on the e-way bill portal (ewaybillgst.gov.in); complete Part B (vehicle or transport document) on the portal. It is checked against NIC's e-way bill schema first. Credit and debit notes have no e-way bill.
Stock transfers
Moving goods between your own warehouses needs an e-way bill too when the consignment is worth more than ₹50,000. Some states set their own limit for movements within the state. Within one GSTIN this is not a supply, so it travels on a delivery challan with no tax.
On a stock transfer (Inventory → Adjustments, open the transfer), the E-way bill card:
- shows the consignment's value at cost and whether it is above ₹50,000;
- downloads E-way bill JSON for Generate bulk on the e-way bill portal. The file is outward, sub-type For own use, document Delivery challan (the transfer number), with the company's GSTIN on both sides and each item's HSN code, quantity and cost.
You can type the distance, mode and vehicle number for Part B, or complete Part B on the portal.
Each place's address, PIN code and state come from the warehouse (Inventory → Warehouses: address, town, PIN code and state). A warehouse with no address of its own uses its branch's address, and the head office's uses the company's address. The card lists what is missing first, such as a PIN code, a state or an item's HSN code.
Transfers to another state are refused. Your places in two states are two GST registrations, so the movement is a supply between them that needs a tax invoice, which OmniBooks does not make for transfers yet. OmniBooks does not connect to the e-way bill system for transfers: the file is uploaded by hand.
TDS on supplier bills
On an Indian company's supplier bill, TDS section offers the common sections (194C contractors, 194J professional and technical services, 194I rent, 194H commission, 194A interest, 194Q purchase of goods) and fills in the usual rate; change the rate for a lower-deduction certificate. The TDS is withheld from the supplier and credited to 2230 TDS payable, and the section is recorded on the bill. Deposits and the quarterly return are prepared on Tax → TDS return (see TDS return (Form 26Q)); OmniBooks does not file the return or issue Form 16A. From 1 April 2026 the Income-tax Act 2025 renumbers these provisions; the familiar section numbers are kept until Form 26Q changes. TCS on sales is not built.