Skip to main content
GST & compliance

Generate an e-invoice (IRN) and cancel it within 24 hours

Connect your e-Invoice portal login once, check each invoice before you send it, get the IRN in one click and cancel it within 24 hours if something is wrong.

9 steps4 min readChecked in the app on 18 Nov 2026рд╣рд┐рдВрджреА рдореЗрдВ рдкрдврд╝реЗрдВ

Quick answer

How do I generate an e-invoice (IRN) in LekhaBooks? Under COMPLIANCE, in the GST group, click e-Invoice. Connect your e-Invoice API user once in Setup (through the GSP WhiteBooks), run the pre-flight on the invoice, then pick the invoice on the Invoices tab and click Generate IRN. LekhaBooks returns the IRN, Ack no. and signed QR code. You can cancel the IRN within 24 hours with Cancel IRN.

  • Test mode uses the government sandbox: nothing is filed and no GST credits are used.
  • Live mode files real e-invoices; each request to the government uses 1 GST credit.
  • An IRN can be cancelled only within 24 hours, after its e-way bill (if any) is cancelled.

Video

Video coming soon

The English and рд╣рд┐рдВрджреА videos will be added here. Until then, follow the written steps below.

Connect once

  1. Open the e-Invoice page

    In the left menu, under COMPLIANCE in the GST group, click e-Invoice. The page is called e-Invoice & e-Way Bill and opens on the e-Invoice Pre-flight card.

  2. Create your e-Invoice API user on the portal

    This is a one-time step on the government portal. Sign in to einvoice1.gst.gov.in with your GST login, open API Registration > User Credentials > Create API User, choose Through GSP, select BVM IT Consulting Services (WhiteBooks) and set a username and password.

  3. Connect it in Setup

    Back in LekhaBooks, click ЁЯз╛ Generate a real IRN (WhiteBooks GSP) to open the e-Invoice panel, then the Setup tab and Start setup. Choose Test mode to practise on the sandbox or Live mode to file real e-invoices. Enter Your GSTIN (the seller on your invoices), the API username and API password, add the e-Way Bill API user or click Skip, tick Turn on e-Invoice filing for this account and click Save and test connection.

    Passwords are stored encrypted They are never shown again. In live mode, filing works only for a GSTIN that is added to your LekhaBooks account.

Check and file an invoice

  1. Run the pre-flight

    On the e-Invoice Pre-flight card, enter the invoice in Existing invoice id and click Run on invoice (or paste e-invoice JSON and click Run pre-flight). The Checklist shows each NIC schema and GST rule as pass or fail. Fix every FAIL in the invoice and run it again. The pre-flight only checks the document; nothing is sent.

  2. Generate the IRN

    In the e-Invoice panel, open the Invoices tab, search by invoice number or customer and pick the invoice. Click Generate IRN. In live mode confirm the 1 GST credit. LekhaBooks files the invoice exactly as saved and shows the IRN, Ack no., Ack date and the signed QR code. The status changes to IRN generated.

    Check this The portal does not accept the same invoice number twice. Correct the invoice before you generate the IRN, not after.

  3. Print the invoice

    Open and print the invoice as usual. For an active live IRN the PDF prints the IRN, Ack No and Ack Date. Sandbox IRNs are never printed.

  4. Add the e-way bill (if goods move)

    In the same panel, click Generate e-way bill. Choose the Transport mode, enter Distance (km, 0 = auto from PIN codes) and the Vehicle number (or a Transporter ID), then generate. See Generate an e-way bill for the details.

Cancel or look up

  1. Cancel the IRN within 24 hours

    Pick the invoice and click Cancel IRNтАж. Choose the Reason (Duplicate, Data mistake, Order cancelled or Other), type a short Remark and click Confirm cancel. Cancel its e-way bill first if it has one.

    After 24 hours The portal no longer allows cancellation. Correct the sale with a credit note instead (see Issue a credit note for a sales return). A cancelled IRN cannot be reused: issue a new invoice number.

  2. See history and verify a GSTIN

    The History tab lists recent e-invoices and e-way bills. The Verify GSTIN tab checks a customer or supplier GSTIN against the GST network before you invoice them; each check uses 1 GST credit.

Frequently asked questions

Do I have to issue e-invoices?

B2B invoices must be e-invoiced when your aggregate annual turnover in any year from 2017-18 is above тВ╣5 crore. If your company is marked as not required, LekhaBooks shows e-invoicing as optional.

Does the pre-flight file anything?

No. The pre-flight checks the invoice locally against the NIC e-invoice schema and GST business rules. Nothing is sent to the IRP.

What does an IRN cost?

In test mode nothing, because it uses the government sandbox. In live mode each request to the government (IRN, e-way bill, GSTIN check) uses 1 GST credit.

рд╣рд┐рдВрджреА рдореЗрдВ: рдИ-рдЗрдирд╡реЙрдЗрд╕ (IRN) рдмрдирд╛рдПрдВ рдФрд░ 24 рдШрдВрдЯреЗ рдореЗрдВ рд░рджреНрдж рдХрд░реЗрдВ

e-Invoice рдкреЛрд░реНрдЯрд▓ рдХрд╛ API рдпреВрдЬрд╝рд░ рдПрдХ рдмрд╛рд░ рдЬреЛрдбрд╝реЗрдВ, рд╣рд░ рдЗрдирд╡реЙрдЗрд╕ рдХреЛ рднреЗрдЬрдиреЗ рд╕реЗ рдкрд╣рд▓реЗ рдЬрд╛рдВрдЪреЗрдВ, рдПрдХ рдХреНрд▓рд┐рдХ рдореЗрдВ IRN рдкрд╛рдПрдВ рдФрд░ рдЧрд▓рддреА рд╣реЛ рддреЛ 24 рдШрдВрдЯреЗ рдХреЗ рдЕрдВрджрд░ рд░рджреНрдж рдХрд░реЗрдВред рдмрдЯрди рдФрд░ рдореЗрдиреВ рдХреЗ рдирд╛рдо рдРрдк рдХреА рддрд░рд╣ рдЕрдВрдЧреНрд░реЗрдЬрд╝реА рдореЗрдВ рджрд┐рдП рдЧрдП рд╣реИрдВред

  1. e-Invoice рдкреЗрдЬ рдЦреЛрд▓реЗрдВ

    рдмрд╛рдПрдВ рдореЗрдиреВ рдореЗрдВ COMPLIANCE рдХреЗ GST рдЧреНрд░реБрдк рдореЗрдВ e-Invoice рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред рдкреЗрдЬ рдХрд╛ рдирд╛рдо e-Invoice & e-Way Bill рд╣реИ рдФрд░ рдпрд╣ e-Invoice Pre-flight рдХрд╛рд░реНрдб рдкрд░ рдЦреБрд▓рддрд╛ рд╣реИред

  2. рдкреЛрд░реНрдЯрд▓ рдкрд░ рдЕрдкрдирд╛ e-Invoice API рдпреВрдЬрд╝рд░ рдмрдирд╛рдПрдВ

    рдпрд╣ рд╕рд░рдХрд╛рд░реА рдкреЛрд░реНрдЯрд▓ рдкрд░ рдПрдХ рдмрд╛рд░ рдХрд╛ рдХрд╛рдо рд╣реИред einvoice1.gst.gov.in рдкрд░ рдЕрдкрдиреЗ GST рд▓реЙрдЧрд┐рди рд╕реЗ рд╕рд╛рдЗрди рдЗрди рдХрд░реЗрдВ, API Registration > User Credentials > Create API User рдЦреЛрд▓реЗрдВ, Through GSP рдЪреБрдиреЗрдВ, BVM IT Consulting Services (WhiteBooks) рдЪреБрдиреЗрдВ рдФрд░ рдпреВрдЬрд╝рд░рдиреЗрдо рд╡ рдкрд╛рд╕рд╡рд░реНрдб рдмрдирд╛рдПрдВред

  3. Setup рдореЗрдВ рдЬреЛрдбрд╝реЗрдВ

    LekhaBooks рдореЗрдВ ЁЯз╛ Generate a real IRN (WhiteBooks GSP) рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ, рдлрд┐рд░ Setup рдЯреИрдм рдФрд░ Start setupред рдЕрднреНрдпрд╛рд╕ рдХреЗ рд▓рд┐рдП Test mode (рд╕реИрдВрдбрдмреЙрдХреНрд╕, рдХреБрдЫ рдлрд╝рд╛рдЗрд▓ рдирд╣реАрдВ рд╣реЛрддрд╛, рдХреНрд░реЗрдбрд┐рдЯ рдирд╣реАрдВ рд▓рдЧрддреЗ) рдпрд╛ рдЕрд╕рд▓реА рдлрд╝рд╛рдЗрд▓рд┐рдВрдЧ рдХреЗ рд▓рд┐рдП Live mode рдЪреБрдиреЗрдВред рдЕрдкрдирд╛ GSTIN, API username рдФрд░ API password рдбрд╛рд▓реЗрдВ, e-Way Bill API рдпреВрдЬрд╝рд░ рдЬреЛрдбрд╝реЗрдВ рдпрд╛ Skip рдХрд░реЗрдВ, Turn on e-Invoice filing for this account рдкрд░ рдЯрд┐рдХ рдХрд░реЗрдВ рдФрд░ Save and test connection рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред рдкрд╛рд╕рд╡рд░реНрдб рдПрдиреНрдХреНрд░рд┐рдкреНрдЯ рдХрд░рдХреЗ рд░рдЦреЗ рдЬрд╛рддреЗ рд╣реИрдВред

  4. рдкреНрд░реА-рдлрд╝реНрд▓рд╛рдЗрдЯ рдЬрд╛рдВрдЪ рдЪрд▓рд╛рдПрдВ

    e-Invoice Pre-flight рдХрд╛рд░реНрдб рдкрд░ Existing invoice id рдореЗрдВ рдЗрдирд╡реЙрдЗрд╕ рдбрд╛рд▓реЗрдВ рдФрд░ Run on invoice рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ (рдпрд╛ JSON рдкреЗрд╕реНрдЯ рдХрд░рдХреЗ Run pre-flight)ред Checklist рдореЗрдВ рд╣рд░ рдирд┐рдпрдо рдкрд╛рд╕ рдпрд╛ рдлрд╝реЗрд▓ рджрд┐рдЦрддрд╛ рд╣реИред рд╣рд░ FAIL рдХреЛ рдЗрдирд╡реЙрдЗрд╕ рдореЗрдВ рдареАрдХ рдХрд░реЗрдВ рдФрд░ рдлрд┐рд░ рдЪрд▓рд╛рдПрдВред рдкреНрд░реА-рдлрд╝реНрд▓рд╛рдЗрдЯ рд╕реЗ рдХреБрдЫ рднреА рднреЗрдЬрд╛ рдирд╣реАрдВ рдЬрд╛рддрд╛ред

  5. IRN рдмрдирд╛рдПрдВ

    e-Invoice рдкреИрдирд▓ рдореЗрдВ Invoices рдЯреИрдм рдЦреЛрд▓реЗрдВ, рдЗрдирд╡реЙрдЗрд╕ рдирдВрдмрд░ рдпрд╛ рдЧреНрд░рд╛рд╣рдХ рд╕реЗ рдЦреЛрдЬреЗрдВ рдФрд░ рдЗрдирд╡реЙрдЗрд╕ рдЪреБрдиреЗрдВред Generate IRN рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ; Live mode рдореЗрдВ 1 GST рдХреНрд░реЗрдбрд┐рдЯ рдХреА рдкреБрд╖реНрдЯрд┐ рдХрд░реЗрдВред LekhaBooks рдЗрдирд╡реЙрдЗрд╕ рдХреЛ рдЬреИрд╕рд╛ рд╕реЗрд╡ рд╣реИ рд╡реИрд╕рд╛ рд╣реА рдлрд╝рд╛рдЗрд▓ рдХрд░рддрд╛ рд╣реИ рдФрд░ IRN, Ack no., Ack date рд╡ рд╕рд╛рдЗрди рдХрд┐рдпрд╛ рд╣реБрдЖ QR рдХреЛрдб рджрд┐рдЦрд╛рддрд╛ рд╣реИред рдкреЛрд░реНрдЯрд▓ рдПрдХ рд╣реА рдЗрдирд╡реЙрдЗрд╕ рдирдВрдмрд░ рджреЛрдмрд╛рд░рд╛ рдирд╣реАрдВ рд▓реЗрддрд╛, рдЗрд╕рд▓рд┐рдП IRN рд╕реЗ рдкрд╣рд▓реЗ рдЗрдирд╡реЙрдЗрд╕ рдареАрдХ рдХрд░ рд▓реЗрдВред

  6. рдЗрдирд╡реЙрдЗрд╕ рдкреНрд░рд┐рдВрдЯ рдХрд░реЗрдВ

    рдЗрдирд╡реЙрдЗрд╕ рд╣рдореЗрд╢рд╛ рдХреА рддрд░рд╣ рдЦреЛрд▓реЗрдВ рдФрд░ рдкреНрд░рд┐рдВрдЯ рдХрд░реЗрдВред рдЪрд╛рд▓реВ (live) IRN рд╡рд╛рд▓реЗ рдЗрдирд╡реЙрдЗрд╕ рдХреА PDF рдкрд░ IRN, Ack No рдФрд░ Ack Date рдЫрдкрддреЗ рд╣реИрдВред рд╕реИрдВрдбрдмреЙрдХреНрд╕ IRN рдХрднреА рдирд╣реАрдВ рдЫрдкрддреЗред

  7. рдИ-рд╡реЗ рдмрд┐рд▓ рдЬреЛрдбрд╝реЗрдВ (рдорд╛рд▓ рдЬрд╛ рд░рд╣рд╛ рд╣реЛ рддреЛ)

    рдЙрд╕реА рдкреИрдирд▓ рдореЗрдВ Generate e-way bill рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред Transport mode, рджреВрд░реА (0 = PIN рдХреЛрдб рд╕реЗ рдЕрдкрдиреЗ-рдЖрдк) рдФрд░ Vehicle number рдпрд╛ Transporter ID рдбрд╛рд▓рдХрд░ рдмрдирд╛рдПрдВред

  8. 24 рдШрдВрдЯреЗ рдХреЗ рдЕрдВрджрд░ IRN рд░рджреНрдж рдХрд░реЗрдВ

    рдЗрдирд╡реЙрдЗрд╕ рдЪреБрдирдХрд░ Cancel IRNтАж рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ, Reason (Duplicate, Data mistake, Order cancelled рдпрд╛ Other) рдЪреБрдиреЗрдВ, рдЫреЛрдЯрд╛ Remark рд▓рд┐рдЦреЗрдВ рдФрд░ Confirm cancel рдХрд░реЗрдВред рдЕрдЧрд░ рдИ-рд╡реЗ рдмрд┐рд▓ рдмрдирд╛ рд╣реИ рддреЛ рдкрд╣рд▓реЗ рдЙрд╕реЗ рд░рджреНрдж рдХрд░реЗрдВред 24 рдШрдВрдЯреЗ рдХреЗ рдмрд╛рдж рд░рджреНрдж рдирд╣реАрдВ рд╣реЛрддрд╛, рддрдм рдХреНрд░реЗрдбрд┐рдЯ рдиреЛрдЯ рдЬрд╛рд░реА рдХрд░реЗрдВред рд░рджреНрдж IRN рдХрд╛ рдирдВрдмрд░ рджреЛрдмрд╛рд░рд╛ рдЗрд╕реНрддреЗрдорд╛рд▓ рдирд╣реАрдВ рд╣реЛрддрд╛ред

  9. рдЗрддрд┐рд╣рд╛рд╕ рджреЗрдЦреЗрдВ рдФрд░ GSTIN рдЬрд╛рдВрдЪреЗрдВ

    History рдЯреИрдм рдореЗрдВ рд╣рд╛рд▓ рдХреЗ рдИ-рдЗрдирд╡реЙрдЗрд╕ рдФрд░ рдИ-рд╡реЗ рдмрд┐рд▓ рджрд┐рдЦрддреЗ рд╣реИрдВред Verify GSTIN рдЯреИрдм рд╕реЗ рдЧреНрд░рд╛рд╣рдХ рдпрд╛ рд╕рдкреНрд▓рд╛рдпрд░ рдХрд╛ GSTIN рдЬрд╛рдВрдЪреЗрдВ; рд╣рд░ рдЬрд╛рдВрдЪ рдореЗрдВ 1 GST рдХреНрд░реЗрдбрд┐рдЯ рд▓рдЧрддрд╛ рд╣реИред

What's next

Was this helpful? Still stuck?