> For the complete documentation index, see [llms.txt](https://docs.mastersindia.co/e-invoicing-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mastersindia.co/e-invoicing-api/generate-e-waybill-by-irn-soap.md).

# Generate E-waybill by IRN (SOAP)

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}

<table><thead><tr><th width="196.33333333333331">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name URL</strong>    </td><td><a href="http://staging-soapapi.mastersindia.co/api.einvoice.php?wsdl">http://staging-soapapi.mastersindia.co/api.einvoice.php?wsdl</a></td></tr><tr><td><strong>Method Type</strong></td><td>Post</td></tr><tr><td><strong>Post Parameters (JSON Format)</strong></td><td>&#x3C;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server"> <a href="soapenv:Header/">soapenv:Header/</a> <a href="soapenv:Body">soapenv:Body</a> <a href="urn:ewaybillGenerateByIrn">urn:ewaybillGenerateByIrn</a> &#x3C;access_token>b29cee2156282be62f51b24fe8b3f07f01c9bff1&#x3C;/access_token> &#x3C;user_gstin>09AAAPG7885R002&#x3C;/user_gstin> 1cb86948a74e0087b9820975d53ab06d356e5c0a85bc79b23bb33342eee84f15 &#x3C;transporter_id>05AAABB0639G1Z8&#x3C;/transporter_id> &#x3C;transportation_mode>1&#x3C;/transportation_mode> &#x3C;transporter_document_number>12/22&#x3C;/transporter_document_number> &#x3C;transporter_document_date>31/05/2021&#x3C;/transporter_document_date> &#x3C;vehicle_number>KA01AB1234&#x3C;/vehicle_number> &#x3C;vehicle_type>R&#x3C;/vehicle_type> &#x3C;transporter_name>Jay Trans&#x3C;/transporter_name> &#x3C;data_source>erp&#x3C;/data_source> &#x3C;/urn:ewaybillGenerateByIrn> &#x3C;/soapenv:Body> &#x3C;/soapenv:Envelope></td></tr><tr><td><strong>Success Response</strong></td><td>&#x3C;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <a href="SOAP-ENV:Body">SOAP-ENV:Body</a> &#x3C;ns1:ewaybillGenerateByIrnResponse xmlns:ns1="urn:server"> 401008738214 2021-06-01 20:36:00 2021-06-03 23:59:00 0 [{"InfCd":"EWBPPD","Desc":"Pin-Pin calc distance: 296KM"}] Success <code>200</code> &#x3C;/ns1:ewaybillGenerateByIrnResponse> &#x3C;/SOAP-ENV:Body> &#x3C;/SOAP-ENV:Envelope></td></tr><tr><td><strong>Error Response</strong></td><td>&#x3C;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">   &#x3C;SOAP-ENV:Body>      &#x3C;ns1:ewaybillGenerateByIrnResponse xmlns:ns1="urn:server">         &#x3C;result>            &#x3C;EwayBillNo/>            &#x3C;EwayBillDate/>            &#x3C;ValidUpto/>            &#x3C;error>1&#x3C;/error>            &#x3C;errorMessage>4002: EwayBill is already Generated For This IRN&#x3C;/errorMessage>            &#x3C;InfoDtls/>            &#x3C;status>Failed&#x3C;/status>            &#x3C;code>204&#x3C;/code>         &#x3C;/result>      &#x3C;/ns1:ewaybillGenerateByIrnResponse>   &#x3C;/SOAP-ENV:Body>&#x3C;/SOAP-ENV:Envelope></td></tr></tbody></table>

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}
