---
title: "Obtener PDF de factura"
method: GET
path: "/invoices/{invoiceId}/pdf"
tags: ["Facturas"]
---

# Obtener PDF de factura

`GET /invoices/{invoiceId}/pdf`

## Request

- Base URL: `https://www.facture.ar/api`
- URL: `https://www.facture.ar/api/invoices/{invoiceId}/pdf`
- Auth: API key in header `x-api-key`

Genera el PDF de una factura. Por defecto devuelve una URL de descarga; con download=true devuelve el archivo. Si el pedido acepta text/html (un navegador que abre el link), responde 302 directo al PDF.

## Path parameters

- `invoiceId` string, required

## Query parameters

- `download` boolean

## Response `200`

URL de descarga del PDF, o el PDF si download=true

- object
  - `download_url` string
  - `invoice_id` string
  - `invoice_number` string: Punto de venta y número, por ejemplo 0001-00000145
  - `environment` string

## Other responses

- `404`: Factura no encontrada

---

[API](https://skmtc.dev/facture/apis/facturear-api.md) · [All operations](https://skmtc.dev/facture/apis/facturear-api/llms.txt) · [OpenAPI document](https://skmtc.dev/facture/apis/facturear-api/revisions/b572c5908978?raw)
