# EU E-Invoice Generator (UBL 2.1)

> EU E-Invoice Generator (UBL 2.1) is a paid API for AI agents from api.wsystem.dev, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-30).

Converts simple JSON invoice data into a validated EU e-invoice in UBL 2.1 format (EN 16931, XRechnung, or Peppol BIS 3), with auto-computed totals and VAT breakdown

## Facts

- Endpoint: POST https://api.wsystem.dev/einvoice/create?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-e-invoice-generator-ubl-2-1-153736fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__SQUmGmuti3JJb7WQPGhT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability eu-e-invoice-generator-ubl-2-1-153736fe -d '<json body>'
```

Example prompt: Create a Peppol BIS 3 e-invoice for invoice number INV-2024-0042, issued today, from seller Acme GmbH (VAT DE123456789) to buyer Schmidt AG (VAT DE987654321), with two line items: 10 units of 'Consulting Services' at €150 each and 5 units of 'Software License' at €200 each, both at 19% VAT.

## When to prefer this

Choose this endpoint when you need to programmatically generate standards-compliant EU e-invoices (EN 16931, XRechnung for German public sector, or Peppol BIS 3 for pan-European B2B) with automatic VAT computation from simple JSON — especially in agentic workflows where invoice generation must be fully automated without manual XML authoring. Ideal when the invoicing party is EU-based or must comply with EU e-invoicing mandates.

## Known failure modes

- Invalid or missing VAT numbers for seller/buyer causing validation failure
- Unsupported format value outside the allowed enum (en16931, xrechnung, peppol-bis3)
- Missing required fields such as seller, buyer, lines, invoice_number, or issue_date
- Malformed issue_date format causing parsing error
- Empty or zero-value line items causing computation errors
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Create a validated EU e-invoice (UBL 2.1: EN 16931, XRechnung or Peppol BIS 3 structure) from simple JSON; totals and VAT breakdown computed

## Output

A validated UBL 2.1 XML e-invoice document in the requested format (EN 16931, XRechnung, or Peppol BIS 3), with all line items, automatically computed subtotals, per-rate VAT breakdown, and grand total included and conformant to EU e-invoicing standards.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "buyer": {
   "type": "object"
  },
  "lines": {
   "type": "array"
  },
  "format": {
   "enum": [
    "en16931",
    "xrechnung",
    "peppol-bis3"
   ],
   "type": "string"
  },
  "seller": {
   "type": "object"
  },
  "issue_date": {
   "type": "string"
  },
  "invoice_number": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-e-invoice-generator-ubl-2-1-153736fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.wsystem.dev](https://www.zero.xyz/host/api.wsystem.dev/llms.txt)
