{"slug":"format-halowerk-com-v1-xrechnung-generate-4fed4a","title":"Generate a German XRechnung 3.0 e-invoice (UBL or CII) from structured JSON, val","host":"format.halowerk.com","method":"POST","resource":"https://format.halowerk.com/v1/xrechnung-generate","category":"market","description":"Generate a German XRechnung 3.0 e-invoice (UBL or CII) from structured JSON, validated by the official KoSIT validator before it is returned. Builds an EN 16931 / XRechnung 3.0 invoice in UBL 2.1 or UN/CEFACT CII syntax with seller and buyer electronic addresses, contact, payment means (SEPA credit ","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"buyer":{"city":"Münster","country":"DE","electronic_address":"991-33333TEST-33","electronic_scheme":"0204","name":"Beispielbehörde","postcode":"48143","street":"Amtsweg 2"},"buyer_reference":"991-33333TEST-33","delivery_date":"2026-10-28","due_date":"2026-11-13","issue_date":"2026-10-30","lines":[{"name":"Sensor maintenance","quantity":3,"unit_code":"HUR","unit_price":95,"vat_rate":19},{"name":"Technical handbook","quantity":1,"unit_code":"C62","unit_price":20,"vat_rate":7}],"number":"RE-2026-0042","payment":{"iban":"DE89370400440532013000","means_code":"58","terms":"Payable within 14 days without deduction."},"seller":{"city":"Gronau","contact_email":"rechnung@beispiel.example","contact_name":"Buchhaltung","contact_phone":"+49 2562 0000","country":"DE","electronic_address":"rechnung@beispiel.example","name":"Beispiel Manufaktur GmbH","postcode":"48599","street":"Musterweg 1","vat_id":"DE123456788"},"syntax":"ubl"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$defs":{"partei":{"additionalProperties":false,"properties":{"city":{"maxLength":100,"type":"string"},"contact_email":{"maxLength":200,"type":"string"},"contact_name":{"maxLength":100,"type":"string"},"contact_phone":{"maxLength":50,"type":"string"},"country":{"pattern":"^[A-Z]{2}$","type":"string"},"electronic_address":{"description":"BT-34/BT-49, e-mail address (scheme EM) or Leitweg-ID (scheme 0204).","maxLength":200,"minLength":3,"type":"string"},"electronic_scheme":{"default":"EM","enum":["EM","0204","9930","0088","0060"],"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postcode":{"maxLength":20,"type":"string"},"street":{"maxLength":200,"type":"string"},"tax_number":{"maxLength":30,"type":"string"},"vat_id":{"pattern":"^[A-Z]{2}[A-Za-z0-9]{2,13}$","type":"string"}},"required":["name","street","postcode","city","country","electronic_address"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"buyer":{"$ref":"#/$defs/partei"},"buyer_reference":{"description":"BT-10, for public buyers the Leitweg-ID.","maxLength":100,"minLength":1,"type":"string"},"currency":{"default":"EUR","pattern":"^[A-Z]{3}$","type":"string"},"delivery_date":{"format":"date","type":"string"},"due_date":{"format":"date","type":"string"},"issue_date":{"format":"date","type":"string"},"lines":{"items":{"additionalProperties":false,"properties":{"description":{"maxLength":2000,"type":"string"},"id":{"maxLength":50,"type":"string"},"name":{"maxLength":500,"minLength":1,"type":"string"},"quantity":{"type":"number"},"unit_code":{"description":"UN/ECE Rec 20, e.g. C62 (piece), HUR (hour), DAY, KGM, MTR, LS (lump sum).","pattern":"^[A-Z0-9]{2,3}$","type":"string"},"unit_price":{"minimum":0,"type":"number"},"vat_category":{"description":"Default S for rate > 0, else E (requires exemption reason).","enum":["S","Z","E","AE","K","G","O"],"type":"string"},"vat_exemption_reason":{"maxLength":300,"type":"string"},"vat_rate":{"maximum":100,"minimum":0,"type":"number"}},"required":["name","quantity","unit_code","unit_price","vat_rate"],"type":"object"},"maxItems":1000,"minItems":1,"type":"array"},"note":{"maxLength":2000,"type":"string"},"number":{"maxLength":100,"minLength":1,"type":"string"},"order_reference":{"maxLength":100,"type":"string"},"payment":{"additionalProperties":false,"properties":{"account_name":{"maxLength":140,"type":"string"},"bic":{"pattern":"^[A-Z0-9]{8}([A-Z0-9]{3})?$","type":"string"},"iban":{"pattern":"^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$","type":"string"},"means_code":{"enum":["58","59","30","31","42","48","49","57","1","10","97","ZZZ"],"type":"string"},"remittance":{"maxLength":140,"type":"string"},"terms":{"maxLength":500,"type":"string"}},"required":["means_code"],"type":"object"},"preceding_invoice":{"description":"BT-25, required for credit notes and corrections.","maxLength":100,"type":"string"},"seller":{"$ref":"#/$defs/partei"},"syntax":{"default":"ubl","enum":["ubl","cii"],"type":"string"},"type_code":{"default":"380","enum":["380","381","384","389","326","875","876","877"],"type":"string"}},"required":["number","issue_date","buyer_reference","seller","buyer","lines","payment"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Generate a German XRechnung 3.0 e-invoice (UBL or CII) from structured JSON, validated by the official KoSIT validator before it is returned. Builds an EN 16931 / XRechnung 3.0 invoice in UBL 2.1 or UN/CEFACT CII syntax with seller and buyer electronic addresses, contact, payment means (SEPA credit transfer with IBAN), VAT breakdown per category and rate, and totals rounded per EN 16931 rules (line net = quantity × price, VAT per category = base × rate).","last_updated":"2026-11-20T20:07:52.23Z","schemes":["exact"]}