facturx_convert
Converts an invoice to Factur-X/ZUGFeRD PDF and XML files after a successful dry run, returning paths, sizes and SHA-256 hashes. Use it to produce validated e-invoice files.
Instructions
Final conversion: COSTS 1 invoice of the account quota (refunded by the API when no file is produced). Call it only after facturx_dry_run returned ready=true. Writes factur-x.pdf and factur-x.xml into out_dir and returns their paths, sizes, sha256, the verified target and the idempotency_key. If the call fails without an answer, call again with the SAME idempotency_key: the API will not charge twice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice": "<invoice>",
"out_dir": "<out_dir>"
},
"name": "facturx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | facturx_pdfa3 | |
| invoice | Yes | ||
| out_dir | Yes | ||
| idempotency_key | No | ||
| validation_target | No | en16931 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||