{"slug":"agent-data-tools-revmesh2074-workers-dev-einvoice-create-e52b92","title":"Create XRechnung, ZUGFeRD","host":"agent-data-tools.revmesh2074.workers.dev","method":"GET","resource":"https://agent-data-tools.revmesh2074.workers.dev/einvoice/create","category":"market","description":"Create XRechnung, ZUGFeRD. Create an EU e-invoice from plain JSON: seller, buyer, lines with quantity, price and VAT rate, bank account. Returns XRechnung 3.0 XML (CII or UBL), a ZUGFeRD / Factur-X PDF with the XML inside, its XML alone, or EN 16931 UBL. Totals and VAT breakdown are computed and che","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":31,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"invoice":"{\"number\":\"RE-2026-0042\",\"issueDate\":\"2026-11-14\",\"dueDate\":\"2026-12-14\",\"buyerReference\":\"04011000-12345-06\",\"seller\":{\"name\":\"Muster Software GmbH\",\"vatId\":\"DE123456789\",\"street\":\"Hauptstrasse 1\",\"postCode\":\"10115\",\"city\":\"Berlin\",\"country\":\"DE\",\"contactName\":\"Erika Muster\",\"phone\":\"+49 30 1234567\",\"email\":\"rechnung@muster-software.example\"},\"buyer\":{\"name\":\"Kunde AG\",\"street\":\"Marktplatz 5\",\"postCode\":\"20095\",\"city\":\"Hamburg\",\"country\":\"DE\",\"email\":\"einkauf@kunde.example\"},\"lines\":[{\"name\":\"Beratung\",\"quantity\":8,\"unit\":\"HUR\",\"unitPrice\":120,\"vatRate\":19},{\"name\":\"Softwarelizenz\",\"quantity\":1,\"unitPrice\":49.9,\"vatRate\":19}],\"payment\":{\"iban\":\"DE02120300000000202051\",\"terms\":\"Zahlbar innerhalb von 30 Tagen\"}}"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"format":{"description":"xrechnung (default: XRechnung 3.0, CII syntax), xrechnung-ubl, zugferd-pdf (a readable A4 invoice as PDF/A-3 with the factur-x.xml embedded, returned as pdfBase64), zugferd (that factur-x.xml alone, EN 16931 profile) or ubl (EN 16931 UBL)","enum":["xrechnung","xrechnung-ubl","zugferd","ubl","zugferd-pdf"],"examples":["xrechnung"],"type":"string"},"invoice":{"description":"The invoice as JSON: number, issueDate, dueDate, buyerReference (Leitweg-ID or order reference), seller and buyer {name, vatId, street, postCode, city, country, contactName, phone, email}, lines [{name, quantity, unit, unitPrice, vatRate}], payment {iban, bic, terms}. In a POST body send it as a JSON object. The flat fields /document/extract returns (invoice_number, seller_name, line_items…) are read too","examples":["{\"number\":\"RE-2026-0042\",\"issueDate\":\"2026-11-14\",\"dueDate\":\"2026-12-14\",\"buyerReference\":\"04011000-12345-06\",\"seller\":{\"name\":\"Muster Software GmbH\",\"vatId\":\"DE123456789\",\"street\":\"Hauptstrasse 1\",\"postCode\":\"10115\",\"city\":\"Berlin\",\"country\":\"DE\",\"contactName\":\"Erika Muster\",\"phone\":\"+49 30 1234567\",\"email\":\"rechnung@muster-software.example\"},\"buyer\":{\"name\":\"Kunde AG\",\"street\":\"Marktplatz 5\",\"postCode\":\"20095\",\"city\":\"Hamburg\",\"country\":\"DE\",\"email\":\"einkauf@kunde.example\"},\"lines\":[{\"name\":\"Beratung\",\"quantity\":8,\"unit\":\"HUR\",\"unitPrice\":120,\"vatRate\":19},{\"name\":\"Softwarelizenz\",\"quantity\":1,\"unitPrice\":49.9,\"vatRate\":19}],\"payment\":{\"iban\":\"DE02120300000000202051\",\"terms\":\"Zahlbar innerhalb von 30 Tagen\"}}"],"type":"string"},"language":{"description":"Language of the labels on a zugferd-pdf page: de or en (default: de when the seller is in Germany or Austria, otherwise en)","enum":["de","en"],"examples":["de"],"type":"string"}},"required":["invoice"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"filename":{"type":"string"},"format":{"type":"string"},"note":{"type":"string"},"specification":{"type":"string"},"syntax":{"type":"string"},"totals":{"properties":{"grand":{"type":"number"},"lineNet":{"type":"number"},"payable":{"type":"number"},"tax":{"type":"number"},"taxBasis":{"type":"number"}},"type":"object"},"valid":{"type":"boolean"},"warnings":{"items":{},"type":"array"},"xml":{"type":"string"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":363,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":342,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":79,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":24,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":26,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":31,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":21,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":21,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":26,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":30,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":27,"error":null}],"description_full":"Create XRechnung, ZUGFeRD. Create an EU e-invoice from plain JSON: seller, buyer, lines with quantity, price and VAT rate, bank account. Returns XRechnung 3.0 XML (CII or UBL), a ZUGFeRD / Factur-X PDF with the XML inside, its XML alone, or EN 16931 UBL. Totals and VAT breakdown are computed and checked against the business rules first; data that breaks a rule is refused uncharged with the rule numbers. Use to issue German B2B e-invoices from a shop, ERP or workflow.","last_updated":"2026-11-15T04:50:26.289Z","schemes":["exact"]}