> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-clear-schema/get-e-invoice-pdf.md).

# Get E-Invoice PDF

### Request Method

#### GET

### Request URL

```
{{HOST}}/einv/v2/eInvoice/download
```

<mark style="color:$danger;">**Note**</mark><mark style="color:$danger;">: The IRNs list provided in the request query parameters must contain IRNs belonging to the same invoiceType.</mark>

#### Request Headers

<table><thead><tr><th>PARAMETER</th><th width="214">PARAMTER TYPE</th><th width="150">TYPE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>X-Cleartax-Auth-Token</td><td>Header</td><td>String</td><td>Mandatory. The auth token generated from ClearTax user id and password. <a href="https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/authentication-token">Know how.</a></td></tr><tr><td>Content-Type</td><td>Header</td><td>String</td><td>Mandatory. This will always be <br>"application/json" for JSON </td></tr><tr><td>gstin</td><td>Header</td><td>String</td><td>Mandatory. GSTIN number for the user</td></tr><tr><td>invoiceType</td><td>Header</td><td>String</td><td>PURCHASE </td></tr></tbody></table>

### Request Path Params

This API has no path parameters.

### Request Query Params

<table><thead><tr><th width="175.77551020408163">KEY</th><th width="186">PARAM TYPE</th><th width="150">TYPE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>template</td><td>query</td><td>String</td><td><p>Optional.</p><p>CRN Template 1 - e281c115-dc47-467a-83c8-1b66c70de13e</p><p>DBN Template 1 - 9dba2d0a-eba9-4d55-8fed-c03bf8b23435</p><p>INV Template 1 - 6f376678-3cc0-4bea-a9e0-ff92a60a7b00</p><p>INV Template 2 - 179471da-fcc9-4a1e-bf17-33b57c5f445c </p><p>INV Template 3 - 6e351b87-35b4-48a5-bc5f-d085685410f7</p><p>Export - b91a628f-11e7-47a8-8eeb-833b5bd9a660</p></td></tr><tr><td>format</td><td>query</td><td>String</td><td><p>Optional.Accepted values include: PDF, ZIP</p><p>Default: PDF</p></td></tr><tr><td>irns</td><td>query</td><td>List</td><td>Required. List of IRNs generated. Multiple accepted</td></tr><tr><td>enableDsc</td><td>query</td><td>Boolean</td><td>Optional. If the user doesn’t send a value, the default value will be False. If the user sends a value, DSC will be enabled for the user.</td></tr></tbody></table>

### Sample Request & Response

#### Request

There is no request body for this API.

**HTTP Status Code : 200 OK**

Sample file containing IRN and QR Code-&#x20;

{% file src="/files/IQEX1XQ6ACgc3tulospQ" %}

Sample file containing IRN and QR Code along with Digital Signature-

{% file src="/files/TdIrusfGJA3LxOh9J48F" %}

**Response - Failure:**

```json
{
  "error_code": "107",
  "error_message": "Number of valid irn numbers in the request should be between 1 and 5. Please provide valid irn numbers and try again.",
  "error_source": "CLEARTAX"
}

```
