---
title: "Generate XRechnung XML"
method: POST
path: "/api/xrechnung/generate"
tags: ["XRechnung"]
---

# Generate XRechnung XML

`POST /api/xrechnung/generate`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/xrechnung/generate`
- Auth: API key in header `X-API-Key`

Generates a standalone XRechnung XML invoice from structured invoice data. Supports CII (Cross Industry Invoice) and UBL (Universal Business Language) formats. Set 'xrechnungFormat' in the request to choose the output format (default: CII).

## Request body

- JsonNode

## Response `200`

OK

---

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