Skip links
Table of Contents
    E-Way Bill Generation in ERPNext_ Setup & Workflow

    Generating e-Way Bills Directly from ERPNext

    e-way bill generation in ERPNext runs through the India Compliance app, which connects ERPNext to the government e-way bill system over an API. Once GST details, addresses and transporter data are set up correctly, your team generates, updates, cancels and prints e-way bills from the Sales Invoice or Delivery Note itself, with no re-entry on the portal.

    That is the short answer. The longer one is that the feature is rarely the problem. The data feeding it is. This guide covers how the workflow runs, what has to be configured first, and where e-way bills tend to fail once a dispatch team starts using them daily.

    How e-way bill generation in ERPNext works

    An e-way bill has two parts. Part A carries the document details: supplier and recipient GSTINs, place of dispatch and delivery (with PIN codes), invoice number and date, HSN codes, taxable value and tax. Part B carries the transport details: vehicle number, or the transporter’s ID and transport document.

    In ERPNext, nearly all of Part A already exists on a submitted Sales Invoice. The India Compliance app reads it, validates it against what the portal expects, and sends it through the API. The portal returns an e-way bill number and validity date, which are stored against the document.

    If you also generate e-invoices, the e-way bill can be created alongside the IRN, since the e-invoice already carries the Part A data. Teams that issue both from one screen avoid the mismatch of an e-invoice saying one thing and an e-way bill saying another.

    Setup checklist before your first e-way bill

    Most early failures trace back to setup, not to the API. Before going live, confirm the following:

    India Compliance app installed and API access active

    Generation happens through the app's API connection, not by scraping the portal. Credentials and API access need to be configured in the app's settings.

    Company GSTIN and addresses complete

    Each dispatch location needs its own address with the correct GSTIN, state and PIN code.

    Customer addresses with valid PIN codes

    The portal checks PIN code against state. A Gujarat GSTIN with a Maharashtra PIN code will be rejected.

    HSN codes on every item

    Missing or incorrectly formatted HSN codes are a common blocker, especially on items migrated from older systems.

    Transporters set up as suppliers

    with their GST Transporter ID, so Part B can be filled by selecting the transporter instead of typing an ID.

    Distance handling agreed

    The portal calculates PIN-to-PIN distance and allows a limited tolerance. Decide whether users enter distance or let the portal compute it.

    Roles and permissions

    Decide who can generate, who can cancel, and who can update vehicle details. Cancellation rights in particular should not sit with every user.

    If you are setting this up as part of a wider rollout, it belongs inside the GST configuration phase of a tailored ERPNext implementation rather than as a bolt-on after go-live.

    If half of this list is already uncertain in your current setup, a short review usually surfaces it faster than a week of rejected requests.

    The day-to-day workflow

    Once setup is right, the routine for a dispatch user looks like this:

    Submit the Sales Invoice (or Delivery Note, where goods move before invoicing).

    Fill in transporter, vehicle number and mode of transport on the document, or choose to add Part B later.

    Generate the e-way bill from the document's actions menu.

    Print the e-way bill and send it with the consignment.

    If the vehicle changes in transit, update Part B from the same document. No new e-way bill is needed.

    If the shipment is called off, cancel within 24 hours of generation. After that, the portal does not allow cancellation and the record stays.

    Validity is calculated by distance: one day for every 200 km or part of it, for regular cargo. Extensions can be requested in a window around expiry. Since 1 January 2025, e-way bills cannot be generated for documents older than 180 days, and total extended validity is capped at 360 days from generation. Older backlog invoices therefore cannot be used for late dispatches.

    Non-sale movements: where setups often fall short

    E-way bills are not only for sales. Goods sent for job work, stock transferred between branches, and returns to suppliers can all need one when the value crosses the threshold.

    This is where many ERPNext setups have gaps. The sales flow gets configured carefully, while branch transfers and job work challans are left to the portal. Depending on your India Compliance app version, e-way bills can be generated from documents beyond the Sales Invoice, such as Delivery Notes and some purchase and stock documents. Check which document types your version supports before assuming manual entry is the only route.

    For manufacturers sending material out for dyeing, machining or packing, this is often the single biggest source of manual e-way bill work left after go-live.

    Common reasons e-way bill requests fail

    FailureWhat usually causes itFix inside ERPNext
    Invalid PIN code for stateAddress migrated with wrong or missing PINCorrect address master; add validation on new addresses
    GSTIN mismatchCustomer GSTIN not updated after a changeRefresh party GSTIN; validate before submit
    HSN code rejectedItem imported with incomplete HSNClean item master in bulk
    Distance out of toleranceManually entered distance far from PIN-to-PIN distanceLeave distance blank or enter realistic values
    Cannot cancelMore than 24 hours since generationAgree a same-day cancellation process
    Document too oldInvoice dated more than 180 days agoPlan dispatch against current documents

    ERPNext vs standalone e-way bill software

    Standalone e-way bill software and GSP portals work, but they sit outside your ERP. Someone exports invoice data, uploads it, and copies the e-way bill number back. Each handoff is a chance for a mismatch.

    Generating from ERPNext keeps the e-way bill tied to the document it came from. Audit trails, reports and reconciliation all start from one record. The tradeoff is that ERPNext’s master data has to be clean, because the portal will reject what your ERP sends just as quickly as what a person types.

    Frequently Asked Questions

    No. It is required when the consignment value exceeds ₹50,000, with some states applying different rules for movement within the state. Certain goods are exempt. Your finance team should confirm the rules for your products and states.
    The India Compliance app has settings that tie e-way bill generation to e-invoice generation or to submission. Whether to automate it depends on whether transport details are known at the time of invoicing.
    Yes. Part A can be generated first, and vehicle details updated from the same document once the vehicle is assigned.
    It can be extended in a window around expiry, subject to the 360-day cap. If it is not extended, goods in transit are exposed to penalties.
    Yes, provided each company address carries its own GSTIN and the API credentials are set up for each registration you dispatch from.

    Get your e-way bill setup reviewed

    If your team is still re-keying invoices into the portal, or rejected e-way bills are holding trucks at the gate, the fix is usually in configuration and master data rather than in new software. Aavatto has worked on ERPNext for Indian manufacturers and distributors since 2020, and GST, e-invoicing and e-way bill setup is a routine part of that work.

    Book a free ERPNext consultation and we will walk through your current e-way bill flow, including the non-sale movements that are easy to miss.

    Niraj Gohel
    Meet Niraj Gohel, the “Problem Solver”, and occasionally the problem creator at Aavatto. When he’s not traveling, watching a film, or having a cup of tea, he spends his days solving problems, debating ideas, and occasionally distracting the team with completely unrelated conversations. His philosophy is simple: technology is important, but being a good human is more important.
    gohel-niraj
    This can be a new journey !

    Related Posts

    Have a Project in Mind?

    This can be a new journey !

    leaf