Skip to content

Get e-way bill PDF#

Given a E-invoice IRN number, this API will generate the PDF for it’s corresponding e-way bill, as opposed to its basic counterpart. The output is a byte array of the response PDF file.
The E-way bill will also have an IRN number.

Route

/enriched/einv/{flynn-version}/nic/ewayapi/download-pdf/{irn_number}

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

URL Parameters#

Name Description Type
flynn-version version of the API
for example, v1.0
string
irn_number IRN number for which ewb PDF should be generated string

Headers#

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

Tip

The only valid values for the header keys Content-Type and accept must have to be application/pdf.

Request#

There is no request body for this API.

Response#

200:#

Successful response will have the byte array of the PDF response file.

404:#

When the Eway-bill isn’t found.

Sample Response Body

{
  "error": {
    "message": "err-resource-not-found",
    "type": "ResourceNotFound",
    "args": {
      "irn-number": "123341234123321"
    }
  }
}
400:#

Any other user error with specific message

Sample Response Body

{
  "error": {
    "message": "err-content-type-not-set-correctly",
    "type": "ClientRequest",
    "args": {
      "content-type": "application/json"
    }
  }
}