Generate E-Way Bill by IRN
Generate an E-Way Bill for an e-Invoice by passing the IRN and transportation details.
NIC validations
View NIC validations
View NIC validations
- E-waybill can be generated only if E-way Bill related details are passed where distance is mandatory.
- E-way Bill is not generated for document types of Debit Note and Credit Note and Services.
- E Way Bill can be generated provided at least HSN of one item belongs to goods.
- If only Transporter Id is provided, then only Part-A is generated. Transport Mode, Vehicle Type, Vehicle No, Transportation document number and date should be null or attributes should not have been passed.
- If mode of transportation is “Road”, then the Vehicle number and vehicle type should be passed. If mode of transportation is Ship, Air, Rail, then the transport document number and date should be passed. Vehicle type and vehicle number should be null or attributes should not have been passed.
- The Vehicle no. should match with specified format and exist in Vahan database.
- E-Waybill will not be generated if the Supplier or Recipient GSTIN is blocked due to non-filing of Returns.
- Pincode of Recipient GSTIN is mandatory if Ship-To details are not entered.
- The distance of transportation is validated against the auto-calculated PIN-PIN distance stored in the system. The allowed distance for transportation should be between +/- 10 % of auto-calculated PIN-PIN distance. . If the auto-calculated distance is less than 100 KMs, then The allowed distance for transportation should be between 1 and +10 % of auto-calculated PIN-PIN distance.
- If the distance of transportation is passed as 0 (zero), then the system will consider it as request made by the tax payer, to consider the auto-calculated PIN-PIN distance for the generation of e-way bill and generate the e-way bill along with IRN. The actual distance is passed in “Info. Message” Column for reference.
- If the PIN-PIN distance is not available in the system, the passed value of distance will be taken for generation of e-way bill and distance value can not be more than 4000.
- The actual distance has to be passed in case the source and destination PIN codes are same and the allowed range of value is from 1 to 100.
- In case of export of goods, if e-way bill has to be generated, then the address of port should have been passed as shipping address during generation of IRN.
- During generation of IRN for export, the shipping address of the port can be updated here for generating the e-Way Bill.
- If the dispatching address and/or shipping address have not been passed during generation of IRN, then the respective addresses can be passed here.
- If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN.
Request body schema
View request body schema
Authorizations
E-invoice taxpayer access token returned by Authenticate.
Sandbox API key from your Sandbox account.
Headers
NIC server for the session used by this request. primary selects NIC1. secondary selects NIC2. Defaults to primary. See NIC1 and NIC2 routing.
primary, secondary "primary"
NIC server that receives the request. If omitted, the request goes to the server selected by x-source. When specified, selects the other server. See NIC1 and NIC2 routing.
primary, secondary "secondary"
API version
Path Parameters
Query Parameters
Supplier GSTIN when an e-commerce operator acts on behalf of the supplier. For reverse charge mechanism (RCM) invoices, this is the recipient GSTIN.
Body
Invoice Reference Number
64Distance between source and destination PIN codes. Pass 0 to auto calculate
0 <= x <= 4000Transporter number/GSTIN
15([0-9]{2}[0-9A-Z]{13})Transporter name
3 - 100^([^\"])*$Mode of transport. Possible values: 1 - Road, 2 - Rail, 3 - Air, 4 - Ship
See transport modes.
1, 2, 3, 4 1^([1-4]{1})?$Transport Document Number
1 - 15^([a-zA-Z0-9/-]{1,15})$Transport Document Date
10^[a-zA-Z0-9]{1}[a-zA-Z0-9-/]*$Vehicle Number
4 - 20^([A-Z|a-z|0-9]{4,20})$Vehicle type. Possible values: O - ODC, R - Regular
See vehicle types.
O, R 1^([O|R]{1})$Response
4002 EWB already generated / 2302 Status of IRN is not active / 200 EWB generated (road) / 4009 EWB cannot be generated for Services / 200 Distance auto-calculated / 5002 Invalid distance / 4038 Distance too high / 4012 Transport document number missing / 4039 Vehicle cannot be regular in ship mode / 4020 Invalid vehicle type / 200 EWB generated (ship)
- Successful E-Way Bill by IRN response
- NIC e-Invoice business error
A successful NIC response or a NIC business-error response. Both variants use HTTP 200.
HTTP-compatible Sandbox response code.
200 200
Unix timestamp in milliseconds.
1763446641000
Request transaction identifier.
"21f0d4c6-678b-473c-84f4-3c8849a08f1f"