get_efactura_archive
Get the archive ANAF returned for an invoice's current e-Factura submission (the one behind its download index). format 'xml' (default): the invoice XML ANAF validated and ANAF's signature, as text, with embedded documents (the PDF copy) left out. 'zip': the whole archive, byte for byte, base64-encoded. 'pdf': the PDF ANAF rendered of the invoice, base64-encoded. If ANAF rejected the submission, the archive holds ANAF's error report instead of the invoice (anaf_status 'nok').
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_id": "<invoice_id>"
},
"name": "get_efactura_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'xml' (default), 'zip' or 'pdf' | |
| invoice_id | Yes | Invoice ID |