Generate E-Way Bill by IRN
Generate an E-Way Bill for an e-Invoice by passing the IRN and transportation details.
Request body schema
View request body schema
Headers
E-Invoice access token. For token-generation steps, refer to the Generate E-Invoice Session recipe, then pass the token in the authorization header.
Specifies the source to access, either primary (NIC 1) or secondary (NIC 2)
primary, secondary "primary"
Enables criss-cross operations by routing requests through the specified source (e.g., access primary via secondary if primary is unavailable)
primary, secondary "secondary"
API version
API key for identification
Path Parameters
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
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
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)
- Option 1
- Option 2
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"