Create an e-invoice from JSON
generate_invoiceCreate a valid EN 16931 e-invoice (UBL or CII XML) from JSON.
Input: invoice is a JSON object keyed on EN 16931 Business Terms, the same
schema as POST /v1/generate, at most 4 MB. Main fields: syntax ("ubl"
default, or "cii"), flavor ("en16931" default, or "xrechnung", which
requires buyer_reference, the Leitweg-ID BT-10), invoice_number,
issue_date (YYYY-MM-DD), currency, seller, buyer, lines,
tax_breakdown, totals. invowerk writes your amounts as given. It does not
compute or correct them.
Returns xml, syntax, flavor and self_validation. invowerk checks the
XML before answering and never returns an invalid document. Invalid input, or
XML that fails the check, returns an error.
Credits: 5 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | The invoice as a JSON object keyed on EN 16931 Business Terms, the schema of POST /v1/generate and of parse_invoice's `model`: syntax, flavor, invoice_number, issue_date, currency, seller, buyer, lines, tax_breakdown, totals. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||