# Download invoice PDF

`GET /v1/invoice/@id/pdf` · scope `billing:read`

PDF file of the invoice, as a base64 string.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/invoice/@id/pdf` |
| Method | `GET` |
| Scope | `billing:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Invoice ID |

## Example request

```bash
curl "https://api.tino.vn/v1/invoice/300001/pdf" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `billing:read`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.billing.get_invoice_pdf(id)`, Node.js `await client.billing.getInvoicePdf(id);`, PHP `$client->billing->getInvoicePdf($id);`.

## Example response

```json
{
 "invoice": "JVBERi0xLjQK…"
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
