# Download PDF of a Document

## Request URL

```
GET: {{HOST}}/invoicing/v1/invoice/{{identifier}}/download
```

## Request Headers

| PARAMETER             | DESCRIPTION                                                             | EXAMPLE VALUE                         |
| --------------------- | ----------------------------------------------------------------------- | ------------------------------------- |
| X-Cleartax-Auth-Token | Mandatory. The auth token generated from ClearTax user id and password. | 208c5df0-b252-4271-a23d- 61b384b58bfc |
| gstin                 | Mandatory. GSTIN number                                                 | 29AAFCD5862R000                       |
| pan                   | Optional. PAN number                                                    | AAFCD5862R                            |
| branch                | Optional. GSTIN number                                                  | Bangalore                             |

### Request Query Params

| Paramter  | Data Type | Field Validations | Description                                 |
| --------- | --------- | ----------------- | ------------------------------------------- |
| enableDsc | Boolean   | Enum: true, false | This parameter will digitally sign the pdf. |

## Sample Response

{% tabs %}
{% tab title="JSON - SUCCESS RESPONSE" %}

```
{
 "downloadUrl": "URL to download PDF with an expiry time"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="JSON - FAILURE RESPONSE" %}

```
{
 "errorDetails": [
 {
 "errorCode": "6002",
  "errorMessage": "Invalid Document Identifier. Send the correct the
value and try again",
 "errorSource": "CLEARTAX",
 "path": null
 }
 ]
}
```

{% endtab %}
{% endtabs %}
