---
title: "Export Invoices Archive"
method: GET
path: "/api/v1/export/invoices/archive/"
tags: ["export", "export"]
---

# Export Invoices Archive

`GET /api/v1/export/invoices/archive/`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/export/invoices/archive/`
- Auth: none declared

Stream a ZIP of invoices for the authenticated user.

``format`` selects what each invoice contributes: ``pdf`` (default),
``ubl`` (UBL 2.1 / Peppol BIS XML), or ``both``. Optionally filtered by
?year=YYYY or ?invoice_ids=1,2,3. Stored PDFs are served directly; UBL is
generated on the fly. Individual failures are skipped with a log warning.
UBL is only produced for numbered invoices (BT-1). Returns 404 if empty.

## Query parameters

- `year` integer, nullable
- `invoice_ids` string, nullable: Comma-separated invoice IDs
- `format` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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