Skip to content

Get EWB PDF#

Given a e-way bill number, this API will generate PDF for the E-way bill, as opposed to its basic counterpart. The output is a byte array of the response PDF file.

API Route#

Route

/enriched/eway/{flynn-version}/{ewb_provider}/eway-bills/download-pdf/{ewb_number}

  • active ‘flynn-version’: v3.0
  • method: GET

URL Parameters#

Name Description Type
flynn-version version of the API
for example, v3.0
string
ewb_provider Eway bill provider
for example, ew1
enum(ew1, ew2)
ewb_number E-way bill number for which PDF should be generated string

Headers#

All headers as mentioned in the Enriched E-way bill API introduction.

Tip

The only valid values for the header keys Content-Type and accept must have either application/pdf or application/json.

Content-Type Accept Result
application/pdf application/pdf Will Give PDF
application/json application/json Base64 string of PDF in Json

Request#

There is no request body for this API.

Response#

200:#

Successful response will have the PDF response file or json of Base64 string based on Content-Type and Accept.

Sample Json Response Body

{
  "status": "1",
  "data": "JVBERi0xLjQKJfbk/N8KMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovVmVyc2lvbiAvMS40Ci9QYWdlcyAyIDAgUgo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0tpZHMgWzMgMCBSXQovQ291bnQgMQo+PgplbmRvYmoKMyAwIG9iago8PAovVHlwZSAvUGFnZQovTWVkaWFCb3ggWzAuMCAwLjAgNTk1LjI3NTYzIDg0MS44ODk4XQovQ29udGVudHMgNCAwIFIKL1Jlc291cmNlcyA1IDAgUgovUGFyZW50IDIgMCBSCj4+CmVuZG9iago0IDAgb2JqCjw8Ci9MZW5ndGggMTY2MAovRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0NCnictVldd9pGEH3Xr9inNKlPhPZb6zfA2OXEOImhdpuTFxmUhgYQAZHE/76zwEpitVqRntY+B9tj3bmzd2ZnR1LnKv02n6b3Nz003QZRSHikYmT/3E6DTnlhfxxESH+P+wEOOfoe9CYBiVBMcBjHSko0mQU4QpPboHONEfz5KXiJWSeSHRIR+gpN/g4mvwaDyR4nZCiojAmSsQNOkP4N8BXU1wC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jU0IDAwMDAwIG4NCjAwMDAwMDE5ODkgMDAwMDAgbg0KMDAwMDAwMjA1OSAwMDAwMCBuDQowMDAwMDAyMTAxIDAwMDAwIG4NCjAwMDAwMDQwODkgMDAwMDAgbg0KMDAwMDAwNTY1MCAwMDAwMCBuDQowMDAwMDA1NzQ3IDAwMDAwIG4NCjAwMDAwMDU4NTAgMDAwMDAgbg0KMDAwMDAwNTkyOSAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9Sb290IDEgMCBSCi9JRCBbPDQ0RjE1MTE1REY1ODIxQzAwODBEQzA3REFFNTBDQTUxPiA8NDRGMTUxMTVERjU4MjFDMDA4MERDMDdEQUU1MENBNTE+XQovU2l6ZSAxMwo+PgpzdGFydHhyZWYKNjAwOAolJUVPRgo=",
  "error": null,
  "info": null,
  "additionalInfo": null,
  "alert": null
}
502:#

When the Eway-bill isn’t found.

Sample Response Body

{
  "status": "0",
  "data": null,
  "error": {
    "message": "err-ewb-returned-error",
    "type": "Ewb",
    "args": {
      "details": [
        {
          "ErrorCode": "325",
          "ErrorMessage": null
        }
      ]
    }
  },
  "info": null,
  "additionalInfo": null,
  "alert": null
}

Notes#

Below URL is deprecated now. Instead of it please use New URL.
/enriched/ewb/{flynn-version}/eway-bills/download-pdf/{ewb_number}