# Germany XRechnung 3.0 UBL XML Generator (Leitweg-ID Ready)

**Use case:** 

Create valid German XRechnung 3.0 UBL e-invoices with mandatory BuyerReference (Leitweg-ID), BR-DE-1..21 business rules, and 19%/7%/0% German Umsatzsteuer totals.

## Input

```json
{
  "format": "xrechnung-3.0-ubl",
  "invoiceNumber": "INV-2026-1001",
  "issueDate": "2026-11-16",
  "dueDate": "2026-11-30",
  "currency": "EUR",
  "buyerReference": "04011000-12345-03",
  "seller": {
    "name": "TechSolutions GmbH",
    "vatId": "DE123456789",
    "street": "Friedrichstr. 100",
    "city": "Berlin",
    "postalCode": "10115",
    "country": "DE",
    "iban": "DE89370400440532013000"
  },
  "buyer": {
    "name": "EuroTrade NV",
    "vatId": "BE0123456789",
    "street": "Rue de la Loi 42",
    "city": "Brussels",
    "postalCode": "1000",
    "country": "BE"
  },
  "lines": [
    {
      "description": "Cloud FinOps Subscription",
      "quantity": 10,
      "unitPrice": "125.00",
      "vatRate": 19
    }
  ],
  "includeInlineXml": true
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "invoiceNumber": {
    "label": "Invoice number",
    "format": "string"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "netTotal": {
    "label": "Net total",
    "format": "string"
  },
  "vatTotal": {
    "label": "Vat total",
    "format": "string"
  },
  "grossTotal": {
    "label": "Gross total",
    "format": "string"
  },
  "xmlDownloadUrl": {
    "label": "Xml download url",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The EU E-Invoice XML Generator (Peppol, XRechnung & Factur-X) Actor is ready to run with the inputs already set for "Germany XRechnung 3.0 UBL XML Generator (Leitweg-ID Ready)". [Sign up or log in](https://console.apify.com/create-task-from-example/sUIWAeXuihLOvOJhk) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Germany XRechnung 3.0 UBL XML Generator (Leitweg-ID Ready)" task

The EU E-Invoice XML Generator (Peppol, XRechnung & Factur-X) Actor will start running based on the input automatically. You can also change all the input fields, like e-invoice xml standard, invoice number, and more, to match your specific use case.

### 3. Receive the "Germany XRechnung 3.0 UBL XML Generator (Leitweg-ID Ready)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, format, invoice number, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Germany XRechnung 3.0 UBL XML Generator (Leitweg-ID Ready)" task via API](https://apify.com/finops_studio/eu-einvoice-xml-generator.md).

## FAQ

### Does it support German Leitweg-ID BuyerReference?

Yes. Pass Leitweg-ID in buyerReference and it populates cbc:BuyerReference in XRechnung 3.0.

### Does it handle mixed 19% and 7% VAT lines?

Yes. VAT subtotals are grouped accurately by tax category and rate.

## About this Actor

This example demonstrates how to use [EU E-Invoice XML Generator (Peppol, XRechnung & Factur-X)](https://apify.com/finops_studio/eu-einvoice-xml-generator.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/finops_studio/eu-einvoice-xml-generator.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/finops_studio/eu-einvoice-xml-generator.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
