---
title: "Shkarko PDF-në e e-faturës sipas EIC"
operation_id: "api.v2.einvoice.pdf"
method: GET
path: "/api/v2/invoice/print-eic/{eic}"
group: "Faturat"
api_version: "v2"
authenticated: true
canonical: "https://fature.al/api-reference/endpoints/api-v2-einvoice-pdf.html"
---

# Shkarko PDF-në e e-faturës sipas EIC

Pjesë e dokumentacionit [fature.al API](/api-reference/index.html).

## GET /api/v2/invoice/print-eic/{eic}

Kthen PDF-në zyrtare të e-faturës nga platforma e e-faturave, sipas kodit EIC që ju ktheu
lëshimi.

Kontrolloni `Content-Type` para se ta ruani si PDF: një EIC që nuk gjendet kthen tekstin
`Document not found.` me statusin `200` dhe `text/html`, jo një PDF.

URL-ja e plotë: `https://fature.al/api/v2/invoice/print-eic/{eic}`

Versioni i API-t: `v2`.

Identifikimi: i detyrueshëm (bearer token, plus the `X-Client-Id` and `X-Client-Secret` headers).

### Parametrat në path

| Fusha | Tipi | E detyrueshme | Përshkrimi |
| --- | --- | --- | --- |
| `eic` | string | po | Kodi EIC i e-faturës, një UUID. |

### Shembull kërkese

```bash
curl -X GET 'https://fature.al/api/v2/invoice/print-eic/2e9b6f31-d712-4c45-8cc0-9faf24c805a3' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Client-Id: YOUR_CLIENT_ID' \
  -H 'X-Client-Secret: YOUR_CLIENT_SECRET' \
  -H 'Accept: application/json'
```

### Përgjigjet

**200**: PDF-ja e e-faturës. Kontrolloni `Content-Type` para se ta ruani: një EIC që nuk gjendet kthehet po me statusin 200, por si `text/html`.

```json
example
```

**401**: Unauthenticated

| Fusha | Tipi | Përshkrimi |
| --- | --- | --- |
| `message` | string |  |

```json
{
    "message": "Unauthenticated."
}
```
