Get E-invoice PDF#
Given a E-invoice IRN number, this API will generate PDF for the E-invoice, as opposed to its basic counterpart. The output is a byte array of the response PDF file.
Route
/enriched/einv/{flynn-version}/{irp}/invoices/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 |
irp | IRP Provider as per GST registration for e-invoicing | enum (ni1, ni2) |
irn_number | IRN number for which 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 E-Invoice 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"
}
}
}
Notes#
IRP - nic is deprecated. Instead of it please use ni1 or ni2