E-way bill from e-invoice: simultaneous generation

You can generate an e-way bill from an e-invoice simultaneously on the Invoice Registration Portal (IRP) by including transport details directly in the invoice payload. When both invoice data and vehicle particulars are submitted together, the portal returns both the Invoice Reference Number (IRN) and the 12-digit e-way bill number in a single call. If vehicle details are not yet known, entering the Transporter ID creates Part A, allowing the transporter to complete Part B before goods leave.

Taxpayers covered under Rule 48(4) of the CGST Rules must upload invoice details to the common portal to obtain an IRN. Under Rule 48(5) of the CGST Rules, any invoice issued without an IRN is not treated as a valid tax invoice. Businesses moving taxable consignments exceeding ₹50,000 must also issue an e-way bill under Rule 138. Managing these two requirements separately duplicates data entry and risks mismatch errors. The IRP architecture allows you to integrate both steps into a single workflow.

How simultaneous generation works on the IRP

The standard e-invoice JSON schema (FORM GST INV-01) contains optional sections for transport and vehicle details (EwbDtls). When your accounting or ERP software posts invoice data to the IRP, you have three options:

  • Complete e-way bill generation (Part A and Part B): You pass distance, mode of transport, transporter document number, and vehicle registration number. The IRP validates the document, generates the IRN, assigns a signed QR code, and issues a complete 12-digit e-way bill with full validity.
  • Partial e-way bill generation (Part A only): You pass transport details and the Transporter ID (GSTIN or TRANSIN), but omit vehicle details. The IRP issues the IRN and generates Part A of FORM GST EWB-01. The transporter then completes Part B on the e-way bill portal before dispatch.
  • IRN only: You pass invoice items without transport details. You can generate the e-way bill later on the e-way bill portal using the generated IRN as the document reference.

Common mistake: Moving goods with only an IRN printout when consignment value exceeds ₹50,000. An IRN proves invoice registration under Rule 48(4), but it does not substitute for a valid e-way bill with updated Part B vehicle details during physical transit.

Part B vehicle details and transit transfers

A consignment cannot legally move on highway transit solely on Part A. Under Rule 138(5) of the CGST Rules, where goods are transferred from one conveyance to another in transit, the consignor, recipient, or transporter must update conveyance particulars in Part B of FORM GST EWB-01 on the portal before initiating further movement.

Validity begins from the time the e-way bill is generated with Part B details. Under Rule 138(10) of the CGST Rules, validity for regular cargo is one day for up to 200 km, plus one additional day for every 200 km or part thereof thereafter. For Over Dimensional Cargo or multimodal shipments involving ships, validity is one day for up to 20 km, plus one day for every 20 km thereafter.

Worked example: invoice and e-way bill calculation

Consider Precision Forge Pvt Ltd in Pune (GSTIN 27AAACP0123A1Z1) dispatching machine components to a registered buyer in Ahmedabad (GSTIN 24AAACQ4567B1Z2) over a road distance of 650 km. Precision Forge enters transport data into its billing software to trigger simultaneous IRN and e-way bill creation.

Item description Taxable value IGST rate IGST amount Total invoice value
Hydraulic Valves (HSN 8481) ₹2,50,000 18% ₹45,000 ₹2,95,000
Mounting Flanges (HSN 7307) ₹1,50,000 18% ₹27,000 ₹1,77,000
Consignment total ₹4,00,000 18% ₹72,000 ₹4,72,000

The total invoice value is calculated as follows:

Taxable Value: ₹2,50,000 + ₹1,50,000 = ₹4,00,000.
IGST at 18%: ₹4,00,000 × 18% = ₹72,000.
Total Consignment Value: ₹4,00,000 + ₹72,000 = ₹4,72,000.

Validity calculation under Rule 138(10):
Road distance = 650 km.
First 200 km = 1 day.
Remaining 450 km = 3 days (450 km ÷ 200 km = 2.25, rounded up to 3 days).
Total e-way bill validity = 1 + 3 = 4 days from generation timestamp.

Resolving common error codes

When requesting an e-way bill along with an IRN, the IRP validates both invoice schema fields and e-way bill parameters. Familiarity with the official error codes prevents dispatch delays:

Error code Portal error message Cause and resolution
2230 This IRN cannot be cancelled because e-way bill has been generated Occurs when attempting to cancel an IRN while an active e-way bill is linked to it. You must cancel the active e-way bill first on the portal, then cancel the IRN. See details on the 24-hour e-invoice cancellation deadline.
2150 Duplicate IRN The document number has already been registered on the IRP. Re-check your ERP transmission log to capture the existing IRN rather than resending.
2265 Recipient GSTIN state code does not match with the state code passed in recipient details The first two digits of the recipient GSTIN must match the POS or buyer state code passed in the JSON payload. Correct the state master data in your billing software.
4043 You cannot generate e-waybill with document date earlier than {0} days Under the e-way bill system rules, e-way bill generation is restricted to documents dated within 180 days from the date of generation. Verify the document date before submitting.

Blocking under Rule 138E: Under Rule 138E of the CGST Rules, outward e-way bill generation is blocked if a taxpayer defaults on filing GSTR-3B or CMP-08 returns for two consecutive tax periods. Once pending returns are filed, access unblocks automatically per the GSTN unblocking portal process.

Step-by-step workflow for simultaneous generation

  1. Prepare invoice data: Generate the tax invoice in your ERP with verified HSN codes, correct tax rates, and exact buyer GSTIN.
  2. Capture dispatch parameters: Enter transporter details, transporter ID, document number, transport mode (Road, Rail, Air, Ship), and vehicle number if dispatching immediately.
  3. Submit JSON to IRP: Post the payload to the IRP endpoint. The system validates the schema and checks return filing compliance.
  4. Receive IRN and e-way bill: The IRP returns a 64-character IRN, signed QR code, signed invoice JSON, and the 12-digit e-way bill number.
  5. Print and hand over: Print the invoice with the mandatory QR code and carry the e-way bill number or printout during vehicle movement.

Frequently asked questions

Can you generate an e-way bill directly during IRN generation?

Yes. When you provide transport details like Transporter ID or vehicle number in the e-invoice JSON payload, the Invoice Registration Portal creates both the Invoice Reference Number and the e-way bill number simultaneously in a single API response.

What happens if Part B vehicle details are missing during e-invoice creation?

If you supply only the Transporter ID without vehicle registration details, the portal creates Part A of the e-way bill. The transporter or consignor must update vehicle details in Part B on the e-way bill portal under Rule 138(5) before goods move.

Why does error code 2230 occur when cancelling an e-invoice?

Error 2230 occurs when you attempt to cancel an IRN that has an active e-way bill linked to it. You must cancel the active e-way bill first on the portal within its permitted window before cancelling the IRN.

Check your purchase register against GSTR-2B

When suppliers generate e-invoices, invoices flow to your GSTR-2B automatically. Reconcile purchase registers against GSTR-2B in seconds to detect missing bills and protect ITC. Your GSTR-2B and purchase register files are read in your browser and never uploaded to any server.

Reconcile GSTR-2B →

Last checked: 1 November 2026. Sources: CBIC CGST Rule 48, CBIC CGST Rule 138, NIC e-Invoice Error Codes, GSTN E-Way Bill Portal User Guide.