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’: v1.0
- method: GET
URL Parameters#
Name | Description | Type |
---|---|---|
flynn-version | version of the API for example, v1.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.
404
:#
When the Eway-bill isn’t found.
Sample Response Body
{
"error": {
"message": "err-resource-not-found",
"type": "ResourceNotFound",
"args": {
"ewb-number": "191001611857"
}
}
}
Notes#
Below URL is deprecated now. Instead of it please use New URL.
/enriched/ewb/{flynn-version}/eway-bills/download-pdf/{ewb_number}