---
title: "Download e-invoice XML"
method: GET
path: "/v1/invoices/{invoiceId}/xml"
tags: ["Invoices"]
---

# Download e-invoice XML

`GET /v1/invoices/{invoiceId}/xml`

## Request

- Base URL: `https://api.frihet.io`
- URL: `https://api.frihet.io/v1/invoices/{invoiceId}/xml`
- Auth: API key in header `X-API-Key`

Download the Facturae 3.2.2 XML for an invoice. The XML is generated
when the invoice is saved or sent. Returns 404 if the e-invoice XML
has not yet been generated for this invoice.

## Path parameters

- `invoiceId` string, required

## Response `200`

E-invoice XML document

## Other responses

- `401`: Authentication required or invalid API key
- `404`: Resource not found
- `429`: Rate limit exceeded (100 requests per minute)
- `500`: Internal server error

---

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