SmartLedger AI

Generating an e-invoice (IRN)

Last updated Nov 6, 2026

If your business must issue e-invoices, SmartLedger can register a saved sales invoice with the NIC e-invoice portal (IRP). You get an IRN, an acknowledgement number and a signed e-invoice with its QR code, all stored on the invoice.

Before you start

  • E-invoicing is included in the Pro plan and above.
  • Get your e-invoice API credentials from einvoice1.gst.gov.in under API Registration. These are separate from your e-way bill credentials.
  • The client must be a registered business, SEZ or overseas customer. For a consumer or an unregistered business, the invoice shows "e-Invoice not applicable" instead.
  • Save and issue the invoice first. An e-invoice can be generated once the invoice is issued, so a draft has no Generate e-Invoice button.

Generate the e-invoice

  1. Go to Sales → Sales Invoices and click the invoice. It opens in a panel; its e-Invoicing section reads No IRN on this invoice until one is generated.
  2. In the actions bar at the top of the panel, click Edit (Edit payments on a paid invoice). The invoice opens for editing.
  3. In the right-hand panel, find the e-Invoice / EWB card. It reads No e-Invoice issued.
  4. Click Generate e-Invoice, then Yes, Generate.
  5. If SmartLedger doesn't have your credentials yet, the e-Invoice API Credentials dialog opens. Enter your GSTIN, e-Invoice API Username and e-Invoice API Password, then click Save. SmartLedger then carries on and generates the e-invoice.

The card shows Generated, with the IRN, the Ack # and the date it was acknowledged. Under Documents, click Signed e-Invoice to view the signed copy with its QR code.

The menu next to Signed e-Invoice has Copy IRN, Download signed e-Invoice and Cancel IRN.

Back in the list, the invoice panel's e-Invoicing section shows the IRN, Ack no. and Ack date, and the panel's More (⋯) menu has Copy IRN.

If generation fails

The card shows e-Invoice generation failed with the portal's reason. In the invoice panel the e-Invoicing section reads The last attempt failed and asks you to open the invoice to retry.

  • For a temporary problem, click Retry.
  • For a problem with the invoice data, click Edit invoice, fix the invoice, click Update Invoice and generate again.
  • If you see Invoice unchanged, the portal has refused a second IRN for identical data. Change the invoice before trying again.

Cancel an IRN

  1. Open the invoice for editing with Edit (from the panel, or from the row's More actions (⋯) menu).
  2. In the e-Invoice / EWB card, open the menu next to Signed e-Invoice and click Cancel IRN.
  3. Confirm with Yes, Cancel IRN.
  4. Choose a Cancel reason: Duplicate, Data entry mistake, Order Cancelled or Others.
  5. If you like, add a note under Remarks (optional), up to 100 characters.
  6. Click Yes, Cancel IRN.

The portal only allows cancellation within 24 hours of generation. After that, SmartLedger warns you that the request will probably fail. If the invoice has an active e-way bill, SmartLedger asks you to Cancel E-Way Bill first.

A cancelled e-invoice can't be undone. The invoice leaves your books: its journal entries are reversed, it moves back to draft and any stock it took is returned. It can't be edited or given a new IRN, so raise a new invoice instead. In the list it shows as Cancelled.

What happens next

  • The invoice's amounts and line items are locked once it has an IRN. You can still change the order number, project, notes, terms and attachments.
  • Change status → Move to draft is refused while the IRN stands: cancel the IRN first.
  • When you email the invoice, the client receives the signed e-invoice with the IRN and QR code.
  • In the invoice list, show the e-Invoice column to see each invoice's IRN, or Cancelled or Failed.

Related articles

Was this article helpful?

PRIVACY. SECURITY.

Security at Its Core.

Privacy & Security

With SmartLedger AI, accounting teams scale effortless without ever compromising on data security, privacy, or compliance.

Privacy Policy