Generate EWB by IRN

Generate an e-Way Bill against a previously-generated IRN. NIC IRP returns the EWB linkage; we persist it on the IRN row so subsequent Get-by-IRN returns the combined shape without another live NIC hit.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Body for POST /v1/einvoices/ewaybill. Mirrors the NIC IRP "Generate EWB by IRN" payload.

string
required
length between 64 and 64

The 64-character IRN to attach the EWB to.

integer
required
0 to 4000
Defaults to 0

Consignment distance in km, used by NIC to compute EWB validity. Pass 0 to let NIC auto-calculate the pin-to-pin road distance from the source and destination pincodes (recommended when the exact road distance is unknown). Any non-zero value is validated against NIC's pin-to-pin reference and is rejected if it deviates beyond NIC's tolerance (≈10% above the calculated value) with "The distance between the pincodes given is too high". For a small number of pincode pairs NIC has not mapped, 0 is rejected with "The distance between the given pincodes are not available in the system. Please provide distance". Retry with the actual road distance (a positive value up to 4000 km; NIC accepts your value on these unmapped routes). The field is mandatory; omitting it returns "Invalid Approximate Distance". The applied distance is returned on generation and on Get E-Way Bill.

string | null
enum

1=Road, 2=Rail, 3=Air, 4=Ship.

Allowed:
string | null

Transporter GSTIN or NIC TRANSIN. Required when vehicleNumber is not supplied (Part-A only).

string | null
string | null
date | null
string | null

Vehicle number — required for road movements when generating Part-B in the same call.

string | null
enum

R Regular or O Over-Dimensional Cargo.

Allowed:
Headers
string
required
length between 15 and 15

GSTIN whose NIC IRP / EWB-portal credential authorizes the call.
Seed each GSTIN's credential through the Developer Console.

uuid

Optional client-supplied UUID for correlation across logs and dashboards. If omitted, OneFinOps mints one and echoes it back on the response.

Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json