generate_einvoice_xml
Invoice JSON → validated EN 16931 CII XML (1 credit; failures free).
profile: "en16931" (Factur-X/ZUGFeRD data, B2B) or "xrechnung" (German public sector; needs
invoice.buyer_reference = Leitweg-ID and seller contact_email/contact_phone).
Invoice schema: see https://einvoicewiz.com/openapi.json (required: invoice_number, issue_date,
currency, seller{name,country}, buyer{name,country}, lines[{name,qty,unit_price,vat_rate}]).
Returns {xml, validation, verify:{id,url}, credits_left}. On 422 the body lists the violated rules.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| invoice | Yes | ||
| profile | No | en16931 |