Render an invoice as ANAF's PDF
invoice_pdfHave ANAF render an invoice as its official PDF, attached to the answer as a file (this server keeps no copy). Give the UBL document as the XML text as xml, which the server hashes (answered in file: size, sha256). The document is validated first unless validate is false, and when it fails nothing is returned and findings say why. Returns saved, name, bytes, sha256 and md5 of the PDF, and the PDF itself attached. The PDF itself needs no grant.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | A UBL invoice or credit note, as the XML text itself (at most 1048576 characters). The server hashes the bytes it receives and answers their sha256 and size (file), so compare them with your source. | |
| validate | No | For a document only: validate before converting. |