Convert an e-invoice
convert_invoiceConverts an e-invoice to another format (for example UBL to XRechnung, or CII to a Factur-X PDF) and validates the result; only a valid file is returned. Costs 1 call per invoice from the account's API balance, or 1 credit once the API balance is empty, charged only on success. Needs an API key.
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": {
"target": "<target>"
},
"name": "convert_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | A format id that list_formats shows with convertTo, such as xrechnung or peppol-bis-billing. | |
| profile | No | The profile, for formats that have several. | |
| file_url | No | A public https address of the file. Private and local addresses are refused. | |
| filename | No | The file's name, which helps recognise its format. | |
| file_base64 | No | The file's bytes as base64. Give this or file_url. | |
| label_locale | No | The language of a rendered PDF's labels. | |
| idempotency_key | No | Any unique string. Calling again with the same key and arguments within 24 hours never charges again. |