{"openapi":"3.1.0","info":{"title":"Invoiceer e-invoicing API","version":"1.0.0","description":"Free API, no key: validate and create XRechnung, ZUGFeRD / Factur-X and Peppol BIS 3.0 e-invoices with the official rules (KoSIT validator 1.6.3 · XRechnung 3.0.2 (config 2026-08-31) · EN 16931 rules 1.3.16 · Peppol BIS 3.0.21). Files are processed in memory and not stored. Fair use: 40 requests per hour per IP address. Docs: https://invoiceer.io/api","contact":{"url":"https://invoiceer.io/api"}},"servers":[{"url":"https://invoiceer.io"}],"paths":{"/api/validate":{"post":{"summary":"Validate an e-invoice","operationId":"validateEinvoice","parameters":[{"name":"france","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"Also check the French rules (BR-FR); automatic when the seller is in France"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"XML (UBL or CII) or ZUGFeRD / Factur-X PDF, max 5 MB"}}}}}},"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"format":{"type":["string","null"]},"source":{"type":"string","enum":["xml","pdf"]},"errors":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["fatal","error","warning","information"]},"code":{"type":"string","example":"BR-DE-15"},"text":{"type":"string"},"location":{"type":"string"},"fix":{"type":"object","description":"Exact corrected value for common calculation errors"}}}},"warnings":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["fatal","error","warning","information"]},"code":{"type":"string","example":"BR-DE-15"},"text":{"type":"string"},"location":{"type":"string"},"fix":{"type":"object","description":"Exact corrected value for common calculation errors"}}}},"rulesets":{"type":"string"},"ustg14":{"type":"object","description":"§14 UStG mandatory-details checklist (Germany)"},"france":{"type":"object","description":"French rules (BR-FR) result, only when that pass ran"}}}}}},"400":{"description":"Not an e-invoice / unreadable file"},"429":{"description":"Fair-use limit reached (40 requests per hour per IP address)"}}}},"/api/einvoice":{"post":{"summary":"Create a validated e-invoice from JSON","operationId":"createEinvoice","parameters":[{"name":"raw","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"Return the file itself instead of JSON"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["number","seller","buyer","lines"],"properties":{"format":{"type":"string","enum":["xrechnung-ubl","xrechnung-cii","zugferd","peppol"],"default":"xrechnung-ubl"},"number":{"type":"string"},"issue_date":{"type":"string","description":"YYYY-MM-DD, default today"},"due_date":{"type":"string","description":"YYYY-MM-DD, default issue + 14 days"},"currency":{"type":"string","default":"EUR"},"seller":{"type":"object","required":["name","country"],"properties":{"name":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"country":{"type":"string","description":"2-letter code, e.g. DE, BE"},"vat":{"type":"string","description":"VAT ID, e.g. DE123456789"},"legal_id":{"type":"string","description":"Company registration number"},"tax_number":{"type":"string","description":"Tax number (BT-32) if the seller has no VAT ID: German Steuernummer (Kleinunternehmer), French SIREN (franchise en base)"},"supplier_id":{"type":"string","description":"Seller identifier at the buyer (BT-29)"},"email":{"type":"string"},"contact":{"type":"string","description":"Contact person"},"phone":{"type":"string"},"peppol_id":{"type":"string","description":"e.g. 0208:0123456749 (needed for Peppol)"}}},"buyer":{"type":"object","required":["name","country"],"properties":{"name":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"country":{"type":"string","description":"2-letter code, e.g. DE, BE"},"vat":{"type":"string","description":"VAT ID, e.g. DE123456789"},"legal_id":{"type":"string","description":"Company registration number"},"email":{"type":"string"},"contact":{"type":"string","description":"Contact person"},"phone":{"type":"string"},"peppol_id":{"type":"string","description":"e.g. 0208:0123456749 (needed for Peppol)"}}},"lines":{"type":"array","minItems":1,"items":{"type":"object","required":["name","price"],"properties":{"name":{"type":"string"},"qty":{"type":"number","default":1},"unit":{"type":"string","enum":["C62","HUR","DAY","MON","KGM","MTR","LS"],"default":"C62"},"price":{"type":"number","description":"Net unit price"},"vat_category":{"type":"string","enum":["S","Z","E","AE","K","O","G"],"default":"S"},"vat_rate":{"type":"number","description":"Percent, e.g. 19 (for category S)"}}}},"buyer_reference":{"type":"string"},"order_reference":{"type":"string"},"payment_terms":{"type":"string"},"skonto_days":{"type":"integer","description":"Early-payment discount (Skonto): days; written into BT-20 in the XRechnung format (BR-DE-18)"},"skonto_percent":{"type":"number","description":"Skonto percentage, e.g. 2"},"skonto_base":{"type":"number","description":"Optional base amount if Skonto applies to part of the amount due"},"paid_amount":{"type":"number","description":"Already paid (BT-113), e.g. down payments"},"iban":{"type":"string"},"bic":{"type":"string"},"payment_reference":{"type":"string"},"note":{"type":"string"},"exempt_reason":{"type":"string","description":"BT-120 text for VAT-exempt (E) lines; default for DE/FR small businesses without VAT ID: § 19 UStG / art. 293 B CGI; for VATEX-EU-D: Sonderregelung für Reisebüros"},"exempt_reason_code":{"type":"string","description":"BT-121 VAT exemption reason code from the CEF VATEX list, e.g. VATEX-EU-D for the travel agency margin scheme (§ 25 UStG; lines use vat_category E, rate 0). VATEX-EU-G/O/IC/AE need category G/O/K/AE. VATEX-EU-306 is rejected (fails BR-CL-22)."},"credit_note":{"type":"boolean","default":false},"preceding_invoice":{"type":"string","description":"Original invoice number (credit notes)"},"preceding_invoice_date":{"type":"string","description":"YYYY-MM-DD, date of the original invoice (BT-26; required for French sellers)"},"delivery_date":{"type":"string","description":"YYYY-MM-DD delivery / service date (BT-72); default: issue date unless a period is given"},"period_start":{"type":"string"},"period_end":{"type":"string"}}}}}},"responses":{"200":{"description":"Valid e-invoice (XML as text or ZUGFeRD PDF as base64; the file itself with raw=1)"},"422":{"description":"The data doesn't produce a valid e-invoice; the rule errors are returned"},"400":{"description":"Invalid JSON or missing fields"},"429":{"description":"Fair-use limit reached (40 requests per hour per IP address)"}}}},"/api/leitweg":{"get":{"summary":"Check a German Leitweg-ID (check digits, structure)","operationId":"checkLeitwegId","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"example":"991-33333TEST-33"},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["en","de"]}}],"responses":{"200":{"description":"Check result","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"normalized":{"type":"string"},"expected_check":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}}}}}}}}}}}}