e-Waybill and e-invoice
Generate, update and cancel e-waybills from the desk, and what is not built yet.
What is built
| Feature | Status |
|---|---|
| e-Waybill through NIC's e-waybill API | Built. Tested against recorded NIC answers; not yet run against NIC's sandbox, since no sandbox login is set up |
| e-Waybill offline JSON for the portal | Built, works without API access |
| e-Invoice (IRN) | Not built. It needs a paid GST Suvidha Provider, and none is chosen yet |
| e-Waybill on Stock Entry and subcontracting | Not built |
e-Waybills work on Sales Invoice, Delivery Note, Purchase Receipt and Purchase Invoice. Sales Invoice has them by default. Turn the other three on in GST Settings.
When an invoice needs one
On submit, a Sales Invoice gets e-Waybill Status Pending when all of these hold:
- Enable e-Waybill Features is on in GST Settings.
- The customer's GSTIN differs from the company's.
- The invoice has goods, not only services.
- The grand total is at or above the threshold. The default threshold is 50,000. For a sale within the state, the state's row in e-Waybill Threshold for Intrastate wins, if there is one.
An invoice with an e-waybill number typed in gets Manually Generated. The Pending e-Waybills number card on the GST India workspace counts the Pending ones.
Without API access
On the submitted invoice, choose e-Waybill: Download JSON. From the Sales Invoice list you can select several invoices and download one file.
Upload the file on the e-waybill portal.
Back on the invoice, choose e-Waybill: Mark as Generated and enter the number, date and validity from the portal.
To record a cancel made on the portal, use e-Waybill: Mark as Cancelled.
With API access
Set these in the workspace's .env, then turn on Enable API Features in GST Settings and add a GST Credential for the company GSTIN.
GST_NIC_CLIENT_ID=...
GST_NIC_CLIENT_SECRET=...
GST_NIC_SANDBOX_GSTIN=...
GST_NIC_SANDBOX_USER=...
GST_NIC_SANDBOX_PASSWORD=...Use API in Sandbox Mode sends calls to NIC's sandbox. Production reads GST_NIC_PRODUCTION_URL and GST_NIC_PRODUCTION_PUBLIC_KEY, which NIC gives you at onboarding.
The invoice then shows these buttons:
| Button | When it shows |
|---|---|
| e-Waybill: Generate | Submitted, no e-waybill yet |
| e-Waybill: Fetch if Generated | Submitted, no e-waybill yet; finds one made on the portal for this invoice number |
| e-Waybill: Update Vehicle Info, Update Transporter | While the e-waybill is valid |
| e-Waybill: Extend Validity | Until 8 hours after the validity ends. NIC takes an extension only within 8 hours of the end, so an earlier request is scheduled for the app's 01:00 job |
| e-Waybill: Cancel | Within 24 hours of generation |
| e-Waybill: Fetch Data, Attach | After generation |
With Automatically Generate e-Waybill on Invoice Submission on, a Pending invoice's e-waybill is generated by a background job after submit. With Automatically Cancel e-Waybill on Cancellation on, cancelling an invoice within 24 hours also cancels its e-waybill, with the default reason from GST Settings. Otherwise, the app refuses to cancel an invoice with a live e-waybill until you cancel it or mark it cancelled.
Each e-waybill is an Ewaybill Log record, named by its number, with its validity, transport details and cancel reason. It prints with the e-Waybill and e-Waybill Detailed formats, which carry a QR code and a barcode. Every API call is logged as an Integration Request, kept for 90 days.