---
title: "Transform XRechnung between CII and UBL"
method: POST
path: "/api/xrechnung/transform"
tags: ["XRechnung"]
---

# Transform XRechnung between CII and UBL

`POST /api/xrechnung/transform`

## Request

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

Transforms an XRechnung XML file from CII to UBL format. The source format is auto-detected. Currently supports CII → UBL transformation.

## Query parameters

- `targetFormat` 'CII' | 'UBL': XRechnung XML syntax format

## 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)
