Skip to content

Generate E-way Bill#

This API is Deprecated. Please use VERSION TWO OH (v2.0)

Generate E-way Bill API is used to generate an E-way Bill using the given request payload.

API Route#

Route

/basic/eway/{flynn-version}/{ewb_provider}/{ewb-api-version}/gen-ewb

  • active ‘flynn-version’: v1.0
  • method: POST

URL Parameters#

Name Description Type
flynn-version version of the API
for example, v1.0
string
ewb-api-version E-invoice API version
for example, v1.03
string
ewb_provider Eway bill provider
for example, ew1
enum(ew1, ew2)

Headers#

All headers are mentioned in common EWB headers

Request#

Body consists of the payload guided by E-way Bill documentation present on this page

Please refer the following request body for reference-

Sample request body

    {
        "supplyType":"O",
        "subSupplyType":"1",
        "subSupplyDesc":"",
        "docType":"INV",
        "docNo":"7001-8",
        "docDate":"15/12/2017",
        "fromGstin":"29AKLPM8755F1Z2",
        "fromTrdName":"welton",
        "fromAddr1":"2ND CROSS NO 59  19  A",
        "fromAddr2":"GROUND FLOOR OSBORNE ROAD",
        "fromPlace":"FRAZER TOWN",
        "fromPincode":560090,
        "actFromStateCode":29,
        "fromStateCode":29,
        "toGstin":"02EHFPS5910D2Z0",
        "toTrdName":"sthuthya",
        "toAddr1":"Shree Nilaya",
        "toAddr2":"Dasarahosahalli",
        "toPlace":"Beml Nagar",
        "toPincode":560090,
        "actToStateCode":29,
        "toStateCode":27,
        "transactionType":4,
        "otherValue":"-100",
        "totalValue":56099,
        "cgstValue":0,
        "sgstValue":0,
        "igstValue":300.67,
        "cessValue":400.56,
        "cessNonAdvolValue":400,
        "totInvValue":68358,
        "transporterId":"",
        "transporterName":"",
        "transDocNo":"",
        "transMode":"1",
        "transDistance":"100",
        "transDocDate":"",
        "vehicleNo":"PVC1234",
        "vehicleType":"R",
        "itemList":[{
            "productName":"Wheat",
            "productDesc":"Wheat",
            "hsnCode":1001,
            "quantity":4,
            "qtyUnit":"BOX",
            "cgstRate":0,
            "sgstRate":0,
            "igstRate":3,
            "cessRate":3,
            "cessNonadvol":0,
            "taxableAmount":5609889
        }]
    }

Response#

200:#

Successful response will have the generated E-way bill entry in “data” attribute as a String.

Sample response body

{
  "data": "{\"ewayBillNo\":\"161001727997\",\"ewayBillDate\":\"31/07/2020 06:25:00 AM\",\"validUpto\":\"01/08/2020 11:59:00 AM\",\"alert\":\"The distance between the given pincodes are not available in the system., Total invoice value is more than the sum of total assessible value and tax values, \"}"
}

E-way Bill errors are mentioned under common errors

Notes#

Below URL is deprecated now. Instead of it please use New URL.
/basic/ewb/{flynn-version}/{ewb-api-version}/gen-ewb