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 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 |
Request#
There is no request body for this API.
Response#
200
:#
Successful response will have the PDF response file.
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}