> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ia-erp.cl/llms.txt
> Use this file to discover all available pages before exploring further.

# PDF térmico 80 mm (POS)

> Descarga boletas y facturas en formato ticket térmico de 80 mm con timbre electrónico PDF417 listo para impresoras POS.

Además del PDF tributario estándar tamaño carta, `GET /v1/dte/{id}/pdf` soporta el parámetro `formato=termico_80mm` para impresoras térmicas de punto de venta (Epson TM-T20, Star TSP143, Bixolon y compatibles de 80 mm).

## Características del ticket 80 mm

* **Ancho exacto de 80 mm** con altura dinámica ajustada al detalle de ítems
* Recuadro oficial SII (RUT emisor, tipo de documento y folio)
* Detalle de ítems, montos formateados en CLP (Neto, IVA 19%, Exento y Total)
* **Timbre electrónico PDF417** generado desde el nodo `<TED>` del documento
* En entorno Sandbox (`sk_test_`), incluye marca visible `SANDBOX - SIN VALIDEZ TRIBUTARIA`

## Ejemplo de descarga

```bash cURL theme={null}
curl -sS "https://dte.ia-erp.cl/v1/dte/{id}/pdf?formato=termico_80mm" \
  -H "Authorization: Bearer sk_test_..." \
  -o boleta-80mm.pdf
```

```ts TypeScript theme={null}
const pdfBytes = await client.dte.pdf(documento.id, { formato: "termico_80mm" });
```

```python Python theme={null}
pdf_bytes = client.dte.pdf(doc_id, formato="termico_80mm")
```

> [!NOTE]
>
> La opción `cedible=true` aplica únicamente al formato `carta`. Si se combinan `formato=termico_80mm` y `cedible=true`, la API responde `422 invalid_pdf_options`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.