OpenCart 2.3–4.1 extension

Supreme E-Invoice and E-Way Bill

Supreme E-Invoice and E-Way Bill (GST IRN, QR code)

$20
Supreme E-Invoice and E-Way Bill — overview

Requires

Supreme GST / VAT Invoice and Credit Notes 1.1 or later (it makes the invoices and credit notes; this module registers them).

Detailed description

Indian businesses above the e-invoicing turnover limit must register every B2B invoice with the Invoice Registration Portal (IRP) and print the IRN and the signed QR code on it. This module does that from your OpenCart admin.

What it does

  • Lists your B2B invoices and credit notes (buyer with a GSTIN) and exports of the last 60 days, with their e-invoice state. Sales to consumers (no GSTIN) are left out, as the rules say.
  • Generate IRN: builds the e-invoice JSON (schema 1.1) and sends it to the IRP. The IRN, acknowledgement number and date and the signed QR code come back and are printed on the GST invoice PDF.
  • Credit notes are sent as CRN with the invoice they belong to.
  • Cancel IRN within 24 hours, with the reason (duplicate, data entry mistake, order cancelled, other). The PDF then says "IRN CANCELLED". After 24 hours the module tells you to issue a credit note instead.
  • E-way bill from the IRN, with a transporter ID or a vehicle number and the distance. Invoices above the e-way bill limit (50,000 by default) are marked "e-way bill needed". The e-way bill number and validity are printed on the invoice.
  • Optional cron address: new B2B invoices and credit notes of the last 7 days get their IRN automatically (20 per run).
  • A JSON button shows exactly what would be sent, and what is missing, before anything is sent.

Correct values

  • CGST and SGST for sales in your state, IGST for other states, place of supply from GST VAT Invoice.
  • HSN per product (from GST VAT Invoice); taxed shipping and fees become a service line with your SAC code; coupons and discounts are spread over the products; untaxed charges go as other charges.
  • Tax rates are matched to the GST rates the IRP accepts; the total always equals your invoice total (small differences as round off).
  • Exports are sent as EXPWP or EXPWOP with the country code.

Checks before sending

Missing HSN codes, a wrong PIN code, a missing buyer address or city, a document number the IRP will not take (more than 16 characters) and totals that do not add up are explained in plain words, and nothing is sent until they are fixed.

Safe with the irp

  • The real NIC protocol: your password and a new app key are encrypted with the IRP public key, the invoice data with the session key (AES-256).
  • If an answer is lost after the IRP took the invoice, the next try fetches the IRN that was already given, instead of failing on "duplicate IRN".
  • An IRN is never asked for twice; a cancelled document cannot be registered again; an IRN with an active e-way bill cannot be cancelled.
  • Your password and client secret are never shown again on the settings page.
  • IRNs and e-way bills are kept when the module is uninstalled (they are tax records).

What you need

  • API access to the e-invoice system: an API user from the e-invoice portal and a client ID and secret from NIC (direct API access) or from a GSP that offers the NIC API, plus the IRP public key. Works with the NIC sandbox for testing.
  • PHP with cURL and OpenSSL.

Not included

  • Cancelling or extending an e-way bill: do that on the e-way bill portal.
  • B2C dynamic QR codes.

Important note

Tested against a stand-in of the IRP that follows the NIC API, not against a live GSP account. Please test with the NIC sandbox before going live. This module is not tax advice.

Screenshots

Supreme E-Invoice and E-Way Bill — Admin settings part 1
Admin settings part 1
Supreme E-Invoice and E-Way Bill — Admin settings part 2
Admin settings part 2
Supreme E-Invoice and E-Way Bill — Admin settings part 2b
Admin settings part 2b

More modules

You May Also Need.

Supreme Dispatch Countdown

On every product page: "Order within 3h 20m to dispatch today" with a live countdown, and an estimated delivery range counted in working days. Built from the days you work and the days you are closed. Sold-out products show nothing. No monthly fee, no outside service, no core files changed.

Supreme AI Shopping Assistant

A chat button for your shop. Visitors ask about products, delivery and returns and get a short answer based on YOUR catalogue and YOUR policy text, using your own OpenAI or Anthropic API key. Anything the assistant cannot answer is handed to a real person on WhatsApp or e-mail.

Supreme Gift Wrap

Shoppers tick "Gift wrap this order" on the cart page, write a gift message and the name for the card, and can ask for no prices on the slip in the parcel. The fee is a normal line in the order totals, and the message shows on the admin order page, the invoice and the shipping list (the packing slip). The box is added to the cart page by an event, so no theme file is edited.

See all OpenCart modules