# ANAF UBL 2.1 e-Factura XML Generator

> ANAF UBL 2.1 e-Factura XML Generator is a paid API for AI agents from api.ibancheck.co.uk, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-13).

Converts a JSON invoice payload into a valid European Standard EN 16931 / CIUS-RO ANAF UBL 2.1 XML e-Factura document for Romanian electronic invoicing compliance.

## Facts

- Endpoint: POST https://api.ibancheck.co.uk/api/generate-efactura-ubl?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anaf-ubl-2-1-e-factura-xml-generator-e3e28022
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pbrCTrG16GLK5pLU1IiXP

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 anaf-ubl-2-1-e-factura-xml-generator-e3e28022 -d '<json body>'
```

Example prompt: Generate an ANAF-compliant e-Factura UBL 2.1 XML for invoice number INV-2024-0042, issued in RON, from supplier Acme SRL to customer Beta SA, with two line items: consulting services 1000 RON and software license 500 RON.

## When to prefer this

Choose this endpoint when you need to generate Romanian ANAF-compliant e-Factura XML documents from structured JSON invoice data, specifically conforming to EN 16931 and CIUS-RO UBL 2.1 standards. It is ideal for automating Romanian electronic invoicing workflows where you already have invoice data in JSON format and need a ready-to-submit XML. Prefer this over generic XML converters because it applies Romania-specific CIUS-RO business rules and ANAF schema requirements automatically.

## Known failure modes

- Missing required fields (lines, currency, customer, supplier, invoiceNumber) returns a validation error
- Invalid currency value outside RON/EUR/USD enum returns a schema error
- Malformed customer or supplier objects cause a 400 bad request
- Empty invoice lines array may result in a rejected or invalid XML
- Network timeout or service unavailability returns a 5xx error

## How this service works

Enterprise microservice and autonomous AI agent hub: ISO 13616 IBAN (#6), Romanian CUI Modulo-11 & EU VIES (#7), UBL 2.1 e-Factura XML (#4), and RFC 9562 UUIDv7 Idempotency (#18).

## Output

Returns a valid UBL 2.1 XML document conforming to the European Standard EN 16931 and the Romanian CIUS-RO profile, ready for submission to the ANAF e-Factura system. The XML includes all mandatory invoice fields: supplier and customer details, line items, currency, and invoice number, structured per the Romanian tax authority's electronic invoicing requirements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "lines",
  "currency",
  "customer",
  "supplier",
  "invoiceNumber"
 ],
 "properties": {
  "lines": {
   "type": "array"
  },
  "currency": {
   "enum": [
    "RON",
    "EUR",
    "USD"
   ],
   "type": "string"
  },
  "customer": {
   "type": "object"
  },
  "supplier": {
   "type": "object"
  },
  "invoiceNumber": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anaf-ubl-2-1-e-factura-xml-generator-e3e28022/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ibancheck.co.uk](https://www.zero.xyz/host/api.ibancheck.co.uk/llms.txt)
